Hi,
I just recently ported 32-bit application to 64-bit. But now I'm
experiencing core dump issue relating to net-snmp. Refer to below crash
dump.
bt
#0 0x0000003df3c70454 in malloc_consolidate () from /lib64/libc.so.6
#1 0x0000003df3c72a6c in _int_malloc () from /lib64/libc.so.6
#2 0x0000003df3c74cde in malloc () from /lib64/libc.so.6
#3 0x00002af98b66b330 in _copy_varlist (var=0x41c33440, errindex=0,
copy_count=10000) at snmp_client.c:428
#4 0x00002af98be21a1a in netsnmp_send_traps (trap=6, specific=4,
enterprise=0x2af98be53020, enterprise_length=10, vars=0x41c33440,
context=0x0, flags=0) at agent_trap.c:647
#5 0x00002af98be22063 in send_enterprise_trap_vars (trap=-202036768,
specific=1136, enterprise=0x3df3f52a38, enterprise_length=1768709989,
vars=0x697328636f6c6c61) at agent_trap.c:866
#6 0x00002af98b92958f in snmpgxosendtrap (sender=0x8d17980 "daemon1",
severity=0x41c33ad0 "high", module=0x41c33a60 "Imd", component=0x41c339f0
"instance1", event=0x41c33980 "GXO abnormal exit", detail=0x41c33910 "The
instance 'instance1' doesn't respond. Restarting it.") at snmpgxo.c:1742
#7 0x00002af98a1c882c in CSNMPMonitorManager::OnNotification
(this=0x8d178a0, p_messageType=<value optimized out>, p_body=...,
p_notification=<value optimized out>) at
/gxocenter/home/gxobuild/DGZ_BUILD/CALVA_EV52_Doc-Change/SERVICES/src/monitor/CSNMPMonitorManager.cpp:380
#8 0x00002af98a3ed122 in CMessageListener::processMessage (this=0x8d178a0,
message=...) at
/gxocenter/home/gxobuild/DGZ_BUILD/CALVA_EV52_Doc-Change/SERVICES/src/message/CMessageListener.cpp:93
#9 0x00002af98a3edf23 in CMessageManager::distributeNotification
(this=0x8d04a40, message=<value optimized out>, pListener=0x8d178a
I look on the snmp_client.c:428, I found the below code.
/*
* clone the next variable. Cleanup if alloc fails
*/
newvar = (netsnmp_variable_list *)
malloc(sizeof(netsnmp_variable_list));
if (snmp_clone_var(var, newvar)) {
if (newvar)
free((char *) newvar);
snmp_free_varbind(newhead);
return NULL;
}
It actually fails at malloc(sizeof(netsnmp_variable_list)), did anyone
experienced this kind of problem in 64-bit platform ? What can I do resolve
this issue ?
Regards,
Erwin
------------------------------------------------------------------------------
Got Input? Slashdot Needs You.
Take our quick survey online. Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
_______________________________________________
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