Subagent crash on ppc with linux kernel 2.6
Sachin Mishra <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
I am running my subagent as a agentx subagent and it gives core dump
inside init_snmp function. This happens only for ppc with kernel 2.6
Here is the call trace information for the crash:
265 init_agent("subagent");
(gdb)
270 init_sampleMIB(); ////my implementation
(gdb)
273 init_snmp("subagent");
(gdb)
Program received signal SIGSEGV, Segmentation fault.
read_module_internal (name=Variable "name" is not available.
) at parse.c:3769
3769 {
(gdb) bt
#0 read_module_internal (name=Variable "name" is not available.
) at parse.c:3769
#1 0x0fba6dd8 in parse_imports (fp=Variable "fp" is not available.
) at parse.c:3563
#2 0x0fba6258 in read_module_internal (name=Variable "name" is not
available.
) at parse.c:4228
#3 0x0fba6dd8 in parse_imports (fp=Variable "fp" is not available.
) at parse.c:3563
#4 0x0fba6258 in read_module_internal (name=Variable "name" is not
available.
) at parse.c:4228
#5 0x0fba6dd8 in parse_imports (fp=Variable "fp" is not available.
) at parse.c:3563
#6 0x0fba6258 in read_module_internal (name=Variable "name" is not
available.
) at parse.c:4228
#7 0x0fba6808 in netsnmp_read_module (name=Variable "name" is not
available.
) at parse.c:3891
#8 0x0fb98714 in init_mib () at mib.c:2643
#9 0x0fbaffb4 in init_snmp (type=Variable "type" is not available.
) at snmp_api.c:836
#10 0x1000396c in snmpMain () at clSnmpCompCfg.c:273
#11 0x1007e240 in cosPosixTaskWrapper (pArgument=0x100b5abc) at
posix/posix.c:958
#12 0x0fc4616c in start_thread () from /lib/tls/libpthread.so.0
#13 0x0ff51638 in clone () from /lib/tls/libc.so.6
(gdb) fr 9
#9 0x0fbaffb4 in init_snmp (type=Variable "type" is not available.
) at snmp_api.c:836
836 init_mib();
(gdb) fr 10
#10 0x1000396c in snmpMain () at clSnmpCompCfg.c:273
273 init_snmp("subagent");
Thanks,
Sachin
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users