Bug#370132: [Pkg-net-snmp-devel] Bug#370132: snmpd segfaults on ia64 upon first query

Aurelien Jarno aurelien at aurel32.net
Fri Dec 22 00:19:38 CET 2006


Jochen Friedrich a écrit :
> Hi Aurelien,
> 
>> using the libc6-dbg package, I have seen that the getmntent() function
>> is called with a NULL pointer. This may be due to the fact that on s390
>> there is in the build log:
>>   checking for mount table location... unknown
>>
>> whereas on architecture there is:
>>   checking for mount table location... /etc/mtab
> 
> Thanks for catching this!
> 
> The relevant part of configure.in looks like this:
> 
> #
> # Check for mount table location
> #
> 
> AC_CACHE_CHECK(for mount table location,ac_cv_ETC_MNTTAB,
> [ac_cv_ETC_MNTTAB="unknown"
> for i in /etc/mnttab /etc/mtab /etc/filesystems
>   do
>   if test -f $i; then
>     ac_cv_ETC_MNTTAB="$i"
>     break;
>   fi
> done
> ])
> 
> My *guess* is that the buildd server for s390 has no /etc/mtab or /etc/mtab might be a symlink.
> So maybe a fix could be to use -e instead of -f in the above test case. However, i'll ask this
> on s390 at buildd.debian.org.
> 
> Do you by any chance have the possibility to recompile net-snmp on s390 and check if the crash
> disappears when configure finds the correct mount table location?
> 

Yep, I confirm the problem is fixed with /etc/mtab being a file.


-- 
  .''`.  Aurelien Jarno	            | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   aurel32 at debian.org         | aurelien at aurel32.net
   `-    people.debian.org/~aurel32 | www.aurel32.net




More information about the Pkg-net-snmp-devel mailing list