Hi - I wrote a MIB module that spawns a pthread. When I dynamically
load this module into snmpd via dlmod in snmpd.conf, it loads and runs
great. However, when I try to dynamically load it into an AgentX
subagent instead of snmpd, it segfaults on a call to
pthread_cond_wait(). When I step through its core file using gdb, it
doesn't tell me much other than:
Program terminated with signal 11, Segmentation fault.
#0 0xffffe410 in ?? ()
(gdb) bt
#0 0xffffe410 in ?? ()
#1 0x40600a98 in ?? ()
#2 0x00000000 in ?? ()
#3 0x00000000 in ?? ()
#4 0x402bd73b in pthread_cond_wait@@GLIBC_2.3.2 ()
from /lib/tls/libpthread.so.0
#5 0x40252ae5 in update_thread (arg=0x0) at module.c:310
#6 0x402bb9ed in start_thread () from /lib/tls/libpthread.so.0
#7 0x403809ca in clone () from /lib/tls/libc.so.6
Any ideas on why loading it into an AgentX subagent vs. snmpd would make
it bomb?
Thanks,
Kellena
--
_________________________________________________________________
____ ____ ___| |___ Kellena Page
/ __// / // \_ | Sun Microsystems Inc.
_\_ \/ / // / / \ *_) 5300 Riata Park Court, Bldg. 9
\___/\__//_/_/ \_( Austin, Texas 78727
_________________________________________________________________
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders