GNU gdb 6.8-debian Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". (gdb) handle SIG33 pass nostop noprint Signal Stop Print Pass to program Description SIG33 No No Yes Real-time event 33 (gdb) set pagination 0 (gdb) attach 8532 Attaching to process 8532 Reading symbols from /usr/sbin/snmpd...Reading symbols from /usr/lib/debug/usr/sbin/snmpd...done. done. Reading symbols from /usr/lib/libnetsnmpagent.so.15...Reading symbols from /usr/lib/debug/usr/lib/libnetsnmpagent.so.15.1.0...done. done. Loaded symbols for /usr/lib/libnetsnmpagent.so.15 Reading symbols from /usr/lib/libnetsnmphelpers.so.15...Reading symbols from /usr/lib/debug/usr/lib/libnetsnmphelpers.so.15.1.0...done. done. Loaded symbols for /usr/lib/libnetsnmphelpers.so.15 Reading symbols from /usr/lib/libnetsnmpmibs.so.15...Reading symbols from /usr/lib/debug/usr/lib/libnetsnmpmibs.so.15.1.0...done. done. Loaded symbols for /usr/lib/libnetsnmpmibs.so.15 Reading symbols from /usr/lib/libnetsnmp.so.15...Reading symbols from /usr/lib/debug/usr/lib/libnetsnmp.so.15.1.0...done. done. Loaded symbols for /usr/lib/libnetsnmp.so.15 Reading symbols from /lib/libc.so.6...done. Loaded symbols for /lib/libc.so.6 Reading symbols from /lib/libwrap.so.0...done. Loaded symbols for /lib/libwrap.so.0 Reading symbols from /usr/lib/libperl.so.5.8...done. Loaded symbols for /usr/lib/libperl.so.5.8 Reading symbols from /lib/libdl.so.2...done. Loaded symbols for /lib/libdl.so.2 Reading symbols from /lib/libm.so.6...done. Loaded symbols for /lib/libm.so.6 Reading symbols from /lib/libpthread.so.0...done. [Thread debugging using libthread_db enabled] [New Thread 0x2ac26ea06e80 (LWP 8532)] Loaded symbols for /lib/libpthread.so.0 Reading symbols from /lib/libcrypt.so.1...done. Loaded symbols for /lib/libcrypt.so.1 Reading symbols from /usr/lib/libsensors.so.3...done. Loaded symbols for /usr/lib/libsensors.so.3 Reading symbols from /usr/lib/libcrypto.so.0.9.8...done. Loaded symbols for /usr/lib/libcrypto.so.0.9.8 Reading symbols from /lib/ld-linux-x86-64.so.2...done. Loaded symbols for /lib64/ld-linux-x86-64.so.2 Reading symbols from /lib/libnsl.so.1...done. Loaded symbols for /lib/libnsl.so.1 Reading symbols from /lib/libsysfs.so.2...done. Loaded symbols for /lib/libsysfs.so.2 Reading symbols from /usr/lib/libz.so.1...done. Loaded symbols for /usr/lib/libz.so.1 0x00002ac26cd3ed53 in select () from /lib/libc.so.6 (gdb) continue Continuing. Program received signal SIGFPE, Arithmetic exception. [Switching to Thread 0x2ac26ea06e80 (LWP 8532)] 0x00002ac26c68ec2c in var_hrproc (vp=0x7fff3eacb3a0, name=, length=, exact=, var_len=0x7fff3eacbbc0, write_method=) at host/hr_proc.c:183 183 host/hr_proc.c: No such file or directory. in host/hr_proc.c (gdb) backtrace full #0 0x00002ac26c68ec2c in var_hrproc (vp=0x7fff3eacb3a0, name=, length=, exact=, var_len=0x7fff3eacbbc0, write_method=) at host/hr_proc.c:183 proc_idx = cpu = __FUNCTION__ = "var_hrproc" #1 0x00002ac26c44cbbf in netsnmp_old_api_helper (handler=, reginfo=0x624fe0, reqinfo=0x7ba650, requests=0x7f06f0) at old_api.c:281 save = {1, 3, 6, 1, 2, 1, 25, 3, 3, 1, 2, 769, 140734244896016, 8283680, 8283704, 47014534257712, 140734244896016, 47014534613712, 140734244895864, 140734244894832, 140734244895872, 8214435, 1, 3, 6, 1, 2, 1, 25, 3, 3, 1, 2, 769, 7956574619765309439, 7239535, 0 , 8101252744909684736, 100, 0 , 1, 0, 31093567915781749, 0, 0, 47014534365225, 140734244895296, 140734244895248, 0, 0, 0, 47014534367971, 7554112, 0, 7854382669413572357, 47014534316083, 56545080468229, 0, 1, 18377501229438730240, 1, 8279936, 8137552, 140734244895456, 6445088, 0, 1, 47014526199113, 8044294, 11, 0, 8137376, 8137410, 140734244895456, 0, 0, 140734244894928, 0, 0, 18377501229438730240, 7885080995474597640, 140734244895648, 12, 1, 1, 12, 1, 47014526199521, 6343056, 47014534434244, 140734244895648, 6444832, 1, 7852368, 1, 0, 8309040, 47014526115617, 8279936, 6445088, 11, 1828501984} savelen = 12 compat_var = {magic = 2 '\002', type = 2 '\002', acl = 1, findVar = 0x2ac26c68eb90 , namelen = 11 '\v', name = {1, 3, 6, 1, 2, 1, 25, 3, 3, 1, 2, 5346474520, 95, 42949672960, 0, 0, 0, 1, 0, 140734244895008, 0, 8430749020812476417, 47014538200464, 140734244895352, 140734244895344, 47014537394272, 6320400, 206158430208, 0, 206158430224, 140734244894352, 140734244894160, 140734244894656, 140734244894464, 47014534613724, 140734244895504, 21474836575, 42949672960, 0, 0, 0, 0, 18446744073709551615, 111669150752, 47014534613718, 0, 140734244895192, 4294967552, 95, 42949672960, 140734244894112, 140734244894496, 140734244895519, 140734244894496, 140734244894496, 140734244895600, 6320400, 6320288, 6, 47014526267166, 8197568, 140734244894496, 47014537313848, 206158430240, 140734244894352, 140734244894160, 140734244894539, 140734244895519, 140734244894496, 140734244894352, 140734244894496, 2676586395008836901, 9295712209692852480, 0, 0, 0, 0, 0, 0, 1051506624, 47014528533481, 0, 0, 0, 5, 4294967295, 0, 6320400, 47014537400874, 6320400, 47014534399339, 0, 47014540515168, 0, 47014534443377, 140734244894448, 140734244894432, 47014540524000, 18377501229438730240, 8214417, 47014534327564, 43, 16, 140734244894727, 48, 47014534588331, 8283696, 140734244894832, 47014534327814, 47014540524000, 0, 1152, 47014537472290, 8214415, 47014534327564, 65, 309237645330, 1184, 18377501229438730240, 8214421, 18377501229438730240, 8214433, 47014534327564, 12, 0, 8214433, 140734244894712, 140734244896016}} exact = 0 status = 1816447600 vp = (struct variable *) 0x625040 write_method = (WriteMethod *) 0 len = 8 access = (u_char *) 0x2ac26c44ca70 "AWAVAUI\211ÕATI\211ÌUSH\201ìx\b" cacheptr = oldasp = __FUNCTION__ = "netsnmp_old_api_helper" #2 0x00002ac26c215e9b in netsnmp_call_handlers (reginfo=0x624fe0, reqinfo=0x7ba650, requests=0x7f06f0) at agent_handler.c:435 request = status = __FUNCTION__ = "netsnmp_call_handlers" #3 0x00002ac26c207c21 in handle_var_requests (asp=0x77d150) at snmp_agent.c:2528 i = 0 retstatus = status = 5 final_status = 0 #4 0x00002ac26c2096b5 in handle_pdu (asp=0x77d150) at snmp_agent.c:3324 status = 0 inclusives = 0 v = __FUNCTION__ = "handle_pdu" #5 0x00002ac26c20b818 in netsnmp_handle_request (asp=0x77d150, status=) at snmp_agent.c:3120 __FUNCTION__ = "netsnmp_handle_request" #6 0x00002ac26c20bc69 in handle_snmp_packet (op=, session=, reqid=, pdu=, magic=) at snmp_agent.c:1852 asp = (netsnmp_agent_session *) 0x77d150 status = 0 access_ret = 0 rc = __FUNCTION__ = "handle_snmp_packet" #7 0x00002ac26c9dd5d0 in _sess_process_packet (sessp=0x795860, sp=0x7d15c0, isp=0x791550, transport=, opaque=, olength=, packetptr=0x7d5770 "01\002\001\001\004\ndbc_server¡ \002\004<\216Ê`\002\001", length=) at snmp_api.c:5356 slp = pdu = (netsnmp_pdu *) 0x7ede00 rp = orp = sptr = ret = 0 handled = 1 __FUNCTION__ = "_sess_process_packet" #8 0x00002ac26c9df204 in _sess_read (sessp=0x795860, fdset=) at snmp_api.c:5772 sp = (netsnmp_session *) 0x7d15c0 isp = (struct snmp_internal_session *) 0x791550 transport = (netsnmp_transport *) 0x7ad0b0 pdulen = rxbuf = (u_char *) 0x7d5770 "01\002\001\001\004\ndbc_server¡ \002\004<\216Ê`\002\001" length = 0 olength = 20 rc = opaque = (void *) 0x7b75f0 __FUNCTION__ = "_sess_read" #9 0x00002ac26c9dfcf9 in snmp_sess_read (sessp=0x0, fdset=0x2ac26c43f390) at snmp_api.c:5791 pss = rc = 8201200 #10 0x00002ac26c9dfd43 in snmp_read (fdset=0x7fff3eacc050) at snmp_api.c:5408 slp = (struct session_list *) 0x795860 #11 0x0000000000404c41 in main (argc=, argv=) at snmpd.c:1180 options = "aAc:CdD::fhHI:l:L:m:M:n:p:P:qrsS:UvV-:Y:g:u:x:X", '\0' arg = i = ret = dont_fork = 0 do_help = uid = gid = 0 agent_mode = -1 cptr = argvptr = pid_file = 0x7fff3eacda36 "/var/run/snmpd.pid" option_compatability = "-Le" fd = PID = __FUNCTION__ = "main" (gdb) info registers rax 0x0 0 rbx 0x7fff3eacbbc0 140734244895680 rcx 0x7d23f0 8201200 rdx 0x0 0 rsi 0x2ac26c43f390 47014528414608 rdi 0x0 0 rbp 0x7fff3eacb3a0 0x7fff3eacb3a0 rsp 0x7fff3eacb340 0x7fff3eacb340 r8 0x1 1 r9 0x2 2 r10 0x302 770 r11 0x0 0 r12 0x7f06f0 8324848 r13 0x7ba650 8103504 r14 0x60 96 r15 0x625040 6443072 rip 0x2ac26c68ec2c 0x2ac26c68ec2c eflags 0x10246 [ PF ZF IF RF ] cs 0x33 51 ss 0x2b 43 ds 0x0 0 es 0x0 0 fs 0x0 0 gs 0x0 0 fctrl 0x37f 895 fstat 0x0 0 ftag 0xffff 65535 fiseg 0x0 0 fioff 0x0 0 foseg 0x0 0 fooff 0x0 0 fop 0x0 0 mxcsr 0x1f80 [ IM DM ZM OM UM PM ] (gdb) thread apply all backtrace Thread 1 (Thread 0x2ac26ea06e80 (LWP 8532)): #0 0x00002ac26c68ec2c in var_hrproc (vp=0x7fff3eacb3a0, name=, length=, exact=, var_len=0x7fff3eacbbc0, write_method=) at host/hr_proc.c:183 #1 0x00002ac26c44cbbf in netsnmp_old_api_helper (handler=, reginfo=0x624fe0, reqinfo=0x7ba650, requests=0x7f06f0) at old_api.c:281 #2 0x00002ac26c215e9b in netsnmp_call_handlers (reginfo=0x624fe0, reqinfo=0x7ba650, requests=0x7f06f0) at agent_handler.c:435 #3 0x00002ac26c207c21 in handle_var_requests (asp=0x77d150) at snmp_agent.c:2528 #4 0x00002ac26c2096b5 in handle_pdu (asp=0x77d150) at snmp_agent.c:3324 #5 0x00002ac26c20b818 in netsnmp_handle_request (asp=0x77d150, status=) at snmp_agent.c:3120 #6 0x00002ac26c20bc69 in handle_snmp_packet (op=, session=, reqid=, pdu=, magic=) at snmp_agent.c:1852 #7 0x00002ac26c9dd5d0 in _sess_process_packet (sessp=0x795860, sp=0x7d15c0, isp=0x791550, transport=, opaque=, olength=, packetptr=0x7d5770 "01\002\001\001\004\ndbc_server¡ \002\004<\216Ê`\002\001", length=) at snmp_api.c:5356 #8 0x00002ac26c9df204 in _sess_read (sessp=0x795860, fdset=) at snmp_api.c:5772 #9 0x00002ac26c9dfcf9 in snmp_sess_read (sessp=0x0, fdset=0x2ac26c43f390) at snmp_api.c:5791 #10 0x00002ac26c9dfd43 in snmp_read (fdset=0x7fff3eacc050) at snmp_api.c:5408 #11 0x0000000000404c41 in main (argc=, argv=) at snmpd.c:1180 (gdb) quit The program is running. Quit anyway (and detach it)? (y or n) Detaching from program: /usr/sbin/snmpd, process 8532