$ gdb --args /usr/local/sbin/snmpd -f -Le GNU gdb 6.5 Copyright (C) 2006 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "armv5b-softfloat-linux"...Using host libthread_db library "/lib/libthread_db.so.1". (gdb) run Starting program: /usr/local/sbin/snmpd -f -Le /usr/local/share/snmp/snmpd.conf: line 32: Error: You must specify a default user name using the agentSecName token net-snmp: 1 error(s) in config file(s) NET-SNMP version 5.3.1 Program received signal SIGSEGV, Segmentation fault. snmp_set_var_value (vars=0x109828, value=0x54
, len=4) at snmp_client.c:796 796 snmp_client.c: No such file or directory. in snmp_client.c (gdb) list 791 in snmp_client.c (gdb) bt #0 snmp_set_var_value (vars=0x109828, value=0x54 , len=4) at snmp_client.c:796 #1 0x40451e64 in netStatsTable_handler (handler=0x109a40, reginfo=0x2, reqinfo=0x40454580, requests=0x40454588) at sdslcMIB.c:760 #2 0x4015cbc0 in netsnmp_call_handler (next_handler=0xd7578, reginfo=0xddb40, reqinfo=0x108f88, requests=0x10a368) at agent_handler.c:428 #3 0x40198818 in netsnmp_table_iterator_helper_handler (handler=0xd5dd0, reginfo=0xddb40, reqinfo=0x108f88, requests=0x10a368) at table_iterator.c:781 #4 0x4015cbc0 in netsnmp_call_handler (next_handler=0xd5dd0, reginfo=0xddb40, reqinfo=0x108f88, requests=0x10a368) at agent_handler.c:428 #5 0x4019d420 in table_helper_handler (handler=0xd1df8, reginfo=0xddb40, reqinfo=0x108f88, requests=0x10a368) at table.c:619 #6 0x4015cbc0 in netsnmp_call_handler (next_handler=0xd1df8, reginfo=0xddb40, reqinfo=0x108f88, requests=0x10a368) at agent_handler.c:428 #7 0x40153430 in handle_var_requests (asp=0x109f18) at snmp_agent.c:2474 #8 0x40154704 in handle_pdu (asp=0x109f18) at snmp_agent.c:3251 #9 0x401542bc in netsnmp_handle_request (asp=0x109f18, status=1089152) at snmp_agent.c:3047 #10 0x401520ec in handle_snmp_packet (op=1089304, session=0x109a40, reqid=4, pdu=0x109e80, magic=0x0) at snmp_agent.c:1833 #11 0x401e2388 in _sess_process_packet (sessp=0x109130, sp=0x109180, isp=0x109148, transport=0x109e80, opaque=0x108f28, olength=16, packetptr=0x10ee68 "0-\002\001", length=0) at snmp_api.c:5340 #12 0x401e30e4 in _sess_read (sessp=0x109130, fdset=0xbe8b2c30) at snmp_api.c:5753 #13 0x401e3730 in snmp_sess_read (sessp=0x109130, fdset=0x2) at snmp_api.c:5772 #14 0x401e27dc in snmp_read (fdset=0xbe8b2c30) at snmp_api.c:5392 #15 0x0000b358 in receive () at snmpd.c:1152 #16 0x0000aa00 in main (argc=3, argv=0xbe8b2dc4) at snmpd.c:1001 (gdb) up #1 0x40451e64 in netStatsTable_handler (handler=0x109a40, reginfo=0x2, reqinfo=0x40454580, requests=0x40454588) at sdslcMIB.c:760 760 sdslcMIB.c: No such file or directory. in sdslcMIB.c (gdb) down #0 snmp_set_var_value (vars=0x109828, value=0x54 , len=4) at snmp_client.c:796 796 snmp_client.c: No such file or directory. in snmp_client.c (gdb) chaos Undefined command: "chaos". Try "help". (gdb)