Hello all:I've created an application to receive traps (based on snmptrapd.c). When I compile it with C It works OK.
I've compiled it with C++ and when there is a trap I get the next core:
> ::stack libc.so.1`realfree+0x68(ffbfefa0, 4bc568e1, 9829c, 5e170, 0, 5dc20) libc.so.1`cleanfree+0x5c(0, 8, 979ec, 13858, feaee308, feaf65fc) libc.so.1`_malloc_unlocked+0xf4(18, 1084, 0, 0, fffffffc, 0) libc.so.1`malloc+0x4c(14, 1, 98998, 0, feaee308, feaf7870)libnetsnmp.so.15.1.2`netsnmp_udp_recv+0x68(59d50, b0340, 10000, ffbff59c, ffbff5a4, feaf7870)
libnetsnmp.so.15.1.2`_sess_read+0xb84(aeab0, ffbff858, 40, 0, 0, 0)libnetsnmp.so.15.1.2`snmp_sess_read+0x30(aeab0, ffbff858, ffbff758, 1, 40, 0) libnetsnmp.so.15.1.2`snmp_read+0x50(ffbff858, ffbff858, ffbff7d8, ffbff758, 0, 32f3c)
main+0x1918(4, ffbff9ec, ffbffa00, 32400, fe730740, fe730780) _start+0x108(0, 0, 0, 0, 0, 0)libnetsnmp was compiled with C. Is it necessary compile the library with C++ too?
My environment is sun4u sparc SUNW,Ultra-250 with Solaris 10. Thank's in advance
<<attachment: tejedo.vcf>>
------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev
_______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
