From: SourceForge.net <no...@so...> - 2003-07-03 13:36:35
|
Bugs item #761870, was opened at 2003-06-27 15:34 Message generated for change (Comment added) made by jbpn You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112694&aid=761870&group_id=12694 Category: agent Group: None Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: net-snmp-5.0.8 segfault on AIX 5.1 Initial Comment: I configured net-snmp with all the default options, compiling it with vacpp 6.0. The problem is that i get a seg fault when i try and run the snmpd agent. Here is the gdb output: This GDB was configured as "powerpc-ibm-aix5.1.0.0"... Core was generated by `snmpd'. Program terminated with signal 11, Segmentation fault. #0 0xd2a61230 in netsnmp_ds_set_boolean () (gdb) bt #0 0xd2a61230 in netsnmp_ds_set_boolean () #1 0xd2a64154 in init_agent (app=0x20000b6c) at snmp_vars.c:224 #2 0x10001308 in main (argc=5, argv=0x2ff22c2c) at snmpd.c:843 #3 0x100001dc in __start () (gdb) so, i added to the netsnmp_ds_set_boolean() method in default_store.c to print out the values of storeid, which, and value and got: #./snmpd -f the storerd is 1 the which is 3 the value is 0 the storerd is 1 the which is 1 the value is 0 Segmentation fault (core dumped) This occurs with every version of the code that i've tried, and it has occured on all 3 different aix 5.1 boxes that i have. Thanks, mark sullivan mar...@na... ---------------------------------------------------------------------- >Comment By: John Naylon (jbpn) Date: 2003-07-03 14:36 Message: Logged In: YES user_id=93926 Very strange and hard to understand, in particular it doesn't make much sense that a static build is okay and a shared build is not. I previously thought this may have been due to a namespace collision but I don't think this is the case any longer (since the potential collision has been solved). So I am out of ideas. Anyway, glad it worked for you. The nlist errors are simply snmpd looking for some symbols in the kernel symbol table and not finding them. This may mean that some MIB variables are missing or incorrectly reported. You could check this out and then, if there is a problem, you could try putting #define DONT_USE_NLIST 1 in include/net-snmp/system/aix.h -- but this may just make things worse. I'm afraid none of the core developers has access to an AIX machine, so support is a little patchy! John ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2003-07-01 16:13 Message: Logged In: NO that appears to have fixed the problem. It's strange though because i modified the code on my linux box in the same fashion, and it spits out exactly the same values of storeid, value, and which that the aix boxes do. Now, however, i get the following errors: nlist err: neither tcpstat nor _tcpstat found. nlist err: neither tcb nor _tcb found. nlist err: neither icmpstat nor _icmpstat found. nlist err: neither ipstat nor _ipstat found. nlist err: neither ipforwarding nor _ipforwarding found. nlist err: neither tcpDefaultTTL nor _tcpDefaultTTL found. nlist err: neither udpstat nor _udpstat found. nlist err: neither udb nor _udb found. nlist err: neither rt_table nor _rt_table found. nlist err: neither rthashsize nor _rthashsize found. nlist err: neither rthost nor _rthost found. nlist err: neither rtnet nor _rtnet found. Are those libraries it is looking for? i'm sure i have at least tcpstat installed. Thanks for the tip though! ---------------------------------------------------------------------- Comment By: John Naylon (jbpn) Date: 2003-07-01 11:13 Message: Logged In: YES user_id=93926 Hmmm. This is very puzzling. Can you try building the package statically? This has been rumoured to fix AIX builds before, and it would be interesting to verify it. Pass the following option to configure: ./configure --enable-shared=no ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112694&aid=761870&group_id=12694 |