[prev in list] [next in list] [prev in thread] [next in thread] 

List:       net-snmp-bugs
Subject:    [ net-snmp-Bugs-3535323 ] snmpd 5.4.2.1 crashes on var_hrstore walk on AIX 6.1 TL6 SP7
From:       SourceForge.net <noreply () sourceforge ! net>
Date:       2012-08-14 20:32:24
Message-ID: E1T1Nmr-0002g7-Pm () sfs-ml-3 ! v29 ! ch3 ! sourceforge ! com
[Download RAW message or body]

Bugs item #3535323, was opened at 2012-06-14 18:10
Message generated for change (Settings changed) made by nba
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=112694&aid=3535323&group_id=12694

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: agent
Group: aix
> Status: Closed
> Resolution: Out of Date
Priority: 5
Private: No
Submitted By: blentz (blentz)
Assigned to: Niels Baggesen (nba)
Summary: snmpd 5.4.2.1 crashes on var_hrstore walk on AIX 6.1 TL6 SP7

Initial Comment:
snmpd will drop core when .1.3.6.1.2.1.25.2.3.1 is accessed on AIX 6.1 TL6 SP7.

Here's the stack trace:
[blentz@optaixdbdma02dev /home/blentz]$ sudo dbx /opt/local/net-snmp/bin/snmpd /core
Type 'help' for help.
cannot read /opt/local/net-snmp/bin/snmpd
enter object file name (default is `a.out', ^D to exit): ^C[blentz@optaixdbdma02dev \
/home/blentz]$ sudo dbx /opt/local/net-snmp/sbin/snmpd /core Type 'help' for help.
[using memory image in /core]
reading symbolic information ...warning: no source compiled with -g


Segmentation fault in . at 0xd410 ($t1)
0x0000d410 warning: Unable to access address 0xd410 from core
(dbx) where
.() at 0xd410
hasmntopt(??, ??) at 0xd03e8570
var_hrstore(0x2ff1c248, 0x2ff1c45c, 0x2ff1c65c, 0x1, 0x2ff1c458, 0x2ff1c454) at \
0xd10f72f4 netsnmp_old_api_helper(0x20070bf8, 0x20070a78, 0x2013de18, 0x2013de38) at \
0xd0dc71a0 netsnmp_call_handler(0x20070bf8, 0x20070a78, 0x2013de18, 0x2013de38) at \
0xd113f69c netsnmp_call_handlers(0x20070a78, 0x2013de18, 0x2013de38) at 0xd113fa9c
handle_var_requests(0x2012cba8) at 0xd114dedc
handle_pdu(0x2012cba8) at 0xd114f834
netsnmp_handle_request(0x2012cba8, 0x0) at 0xd114f3e0
handle_snmp_packet(0x1, 0x2012cc88, 0x3dc4, 0x2013cdf8, 0x0) at 0xd114bef0
_sess_process_packet(0x2012cc28, 0x2012cc88, 0x2012cc48, 0x2012cad8, 0x2012cb28, \
0x14, 0x2012cde8, 0x3e) at 0xd11b389c _sess_read(0x2012cc28, 0x2ff1cb54) at \
0xd11b4fa0 snmp_sess_read(0x2012cc28, 0x2ff1cb54) at 0xd11b5044
snmp_read(0x2ff1cb54) at 0xd11b3a90
receive() at 0x10002c2c
main(0x8, 0x2ff22d30) at 0x100025f0
(dbx) 


Please help!!

----------------------------------------------------------------------

Comment By: Niels Baggesen (nba)
Date: 2012-06-19 14:40

Message:
Ah, this looks like bug 2712670 thas was fixed in 5.4.3.
Could you please try with a recent version of Net-SNMP?

----------------------------------------------------------------------

Comment By: blentz (blentz)
Date: 2012-06-15 12:53

Message:
One thing that's unique about this server is that several file systems are
mounted with the mount option "cio" for concurrent IO. Also, several file
systems were created with a JFS2 block size of 512 instead of the default
of 4096. 

Maybe the mount option or blocksize is being read from the /etc/filesystems
(e.g. /etc/fstab in AIX) and is causing snmpd to crash?

----------------------------------------------------------------------

Comment By: blentz (blentz)
Date: 2012-06-15 12:49

Message:
I just threw down a little export GCC=... -g ... and recompiled. Sure
enough, it crashed, but hopefully this dbx output means something to
someone.

root@optaixdbdma02dev:/ > /opt/local/net-snmp/sbin/snmpd -p
/opt/local/net-snmp/var/run/snmpd.pid -a -f 0.0.0.0:16161
Memory fault(coredump)
root@optaixdbdma02dev:/ > dbx /opt/local/net-snmp/sbin/snmpd /core
Type 'help' for help.
[using memory image in /core]
reading symbolic information ...internal error: unexpected value 120 at
line 5160 in file stabstring.c
internal error: expected char ',', found
's__LC_locale:,768,32;__meth_ptr:93,800,32;__data_ptr:93,832,32;;'
internal error: expected char ',', found
'__LC_locale:,768,32;__meth_ptr:93,800,32;__data_ptr:93,832,32;;'
internal error: expected char ';', found
'_LC_locale:,768,32;__meth_ptr:93,800,32;__data_ptr:93,832,32;;'
internal error: unexpected value 44 at line 5160 in file stabstring.c
internal error: expected char ',', found
'768,32;__meth_ptr:93,800,32;__data_ptr:93,832,32;;'
internal error: unexpected value 120 at line 5160 in file stabstring.c
internal error: unexpected value 120 at line 5160 in file stabstring.c
internal error: expected char ',', found 's_LC_locale_objhdl:,64,32;;'
internal error: expected char ',', found '_LC_locale_objhdl:,64,32;;'
internal error: expected char ';', found 'LC_locale_objhdl:,64,32;;'
internal error: unexpected value 44 at line 5160 in file stabstring.c
internal error: expected char ',', found '64,32;;'
internal error: unexpected value 120 at line 5160 in file stabstring.c
internal error: unexpected value 120 at line 5160 in file stabstring.c
internal error: unexpected value 120 at line 5160 in file stabstring.c
internal error: unexpected value 120 at line 5160 in file stabstring.c
internal error: unexpected value 120 at line 5160 in file stabstring.c
internal error: unexpected value 120 at line 5160 in file stabstring.c
internal error: unexpected value 120 at line 5160 in file stabstring.c
internal error: unexpected value 120 at line 5160 in file stabstring.c
internal error: expected char ',', found
'srtentry:,0,32;ro_dst:557,32,128;;'
internal error: expected char ',', found
'rtentry:,0,32;ro_dst:557,32,128;;'
internal error: expected char ';', found
'tentry:,0,32;ro_dst:557,32,128;;'
internal error: unexpected value 44 at line 5160 in file stabstring.c
internal error: expected char ',', found '0,32;ro_dst:557,32,128;;'
internal error: unexpected value 120 at line 5160 in file stabstring.c
internal error: expected char ',', found
'sradix_mask:,0,32;rn_p:623=*620,32,32;rn_b:-3,64,16;rn_bmask:-2,80,8;rn_flags:239,88, \
8;rn_u:624=u12rn_leaf:625=s12rn_Key:77,0,32;rn_Mask:77,32,32;rn_Dupedkey:623,64,32;;,0 \
,96;rn_node:626=s12rn_Off:-1,0,32;rn_L:623,32,32;rn_R:623,64,32;;,0,96;;,96,96;;' \
internal error: expected char ',', found \
'radix_mask:,0,32;rn_p:623=*620,32,32;rn_b:-3,64,16;rn_bmask:-2,80,8;rn_flags:239,88,8 \
;rn_u:624=u12rn_leaf:625=s12rn_Key:77,0,32;rn_Mask:77,32,32;rn_Dupedkey:623,64,32;;,0,96;rn_node:626=s12rn_Off:-1,0,32;rn_L:623,32,32;rn_R:623,64,32;;,0,96;;,96,96;;'
 internal error: expected char ';', found
'adix_mask:,0,32;rn_p:623=*620,32,32;rn_b:-3,64,16;rn_bmask:-2,80,8;rn_flags:239,88,8; \
rn_u:624=u12rn_leaf:625=s12rn_Key:77,0,32;rn_Mask:77,32,32;rn_Dupedkey:623,64,32;;,0,96;rn_node:626=s12rn_Off:-1,0,32;rn_L:623,32,32;rn_R:623,64,32;;,0,96;;,96,96;;'
 internal error: unexpected value 44 at line 5160 in file stabstring.c
internal error: expected char ',', found
'0,32;rn_p:623=*620,32,32;rn_b:-3,64,16;rn_bmask:-2,80,8;rn_flags:239,88,8;rn_u:624=u1 \
2rn_leaf:625=s12rn_Key:77,0,32;rn_Mask:77,32,32;rn_Dupedkey:623,64,32;;,0,96;rn_node:626=s12rn_Off:-1,0,32;rn_L:623,32,32;rn_R:623,64,32;;,0,96;;,96,96;;'
 internal error: unexpected value 120 at line 5160 in file stabstring.c
internal error: expected char ',', found
'sifnet:,64,32;cost:632=*42,96,32;policy:-1,128,32;weight:-1,160,32;;'
internal error: expected char ',', found
'ifnet:,64,32;cost:632=*42,96,32;policy:-1,128,32;weight:-1,160,32;;'
internal error: expected char ';', found
'fnet:,64,32;cost:632=*42,96,32;policy:-1,128,32;weight:-1,160,32;;'
internal error: unexpected value 44 at line 5160 in file stabstring.c
internal error: expected char ',', found
'64,32;cost:632=*42,96,32;policy:-1,128,32;weight:-1,160,32;;'
internal error: unexpected value 120 at line 5160 in file stabstring.c
internal error: expected char ',', found
'sifaddr:,512,32;rt_genmask:652,544,32;rt_llinfo:77,576,32;rt_rmx:611,608,320;rt_gwrou \
te:605,928,32;rt_idle:-3,960,16;ipRouteAge:-1,992,32;rt_proto:77,1024,32;rt_gidlist:62 \
9,1056,32;rt_lock:-4,1088,32;rt_intr:-1,1120,32;rt_duplist:605,1152,32;policyinfo:655= \
*618,1184,32;rt_timer:-1,1216,32;rt_cost_config:-1,1248,32;rt_pmtuisr:609,1280,128;rt_ip6expireisr:607,1408,64;rt_ip6sleepword:109,1472,32;rt_weight:-1,1504,32;;'
 internal error: expected char ',', found
'ifaddr:,512,32;rt_genmask:652,544,32;rt_llinfo:77,576,32;rt_rmx:611,608,320;rt_gwrout \
e:605,928,32;rt_idle:-3,960,16;ipRouteAge:-1,992,32;rt_proto:77,1024,32;rt_gidlist:629 \
,1056,32;rt_lock:-4,1088,32;rt_intr:-1,1120,32;rt_duplist:605,1152,32;policyinfo:655=* \
618,1184,32;rt_timer:-1,1216,32;rt_cost_config:-1,1248,32;rt_pmtuisr:609,1280,128;rt_ip6expireisr:607,1408,64;rt_ip6sleepword:109,1472,32;rt_weight:-1,1504,32;;'
 internal error: expected char ';', found
'faddr:,512,32;rt_genmask:652,544,32;rt_llinfo:77,576,32;rt_rmx:611,608,320;rt_gwroute \
:605,928,32;rt_idle:-3,960,16;ipRouteAge:-1,992,32;rt_proto:77,1024,32;rt_gidlist:629, \
1056,32;rt_lock:-4,1088,32;rt_intr:-1,1120,32;rt_duplist:605,1152,32;policyinfo:655=*6 \
18,1184,32;rt_timer:-1,1216,32;rt_cost_config:-1,1248,32;rt_pmtuisr:609,1280,128;rt_ip6expireisr:607,1408,64;rt_ip6sleepword:109,1472,32;rt_weight:-1,1504,32;;'
 internal error: unexpected value 44 at line 5160 in file stabstring.c
internal error: expected char ',', found
'512,32;rt_genmask:652,544,32;rt_llinfo:77,576,32;rt_rmx:611,608,320;rt_gwroute:605,92 \
8,32;rt_idle:-3,960,16;ipRouteAge:-1,992,32;rt_proto:77,1024,32;rt_gidlist:629,1056,32 \
;rt_lock:-4,1088,32;rt_intr:-1,1120,32;rt_duplist:605,1152,32;policyinfo:655=*618,1184 \
,32;rt_timer:-1,1216,32;rt_cost_config:-1,1248,32;rt_pmtuisr:609,1280,128;rt_ip6expireisr:607,1408,64;rt_ip6sleepword:109,1472,32;rt_weight:-1,1504,32;;'
 internal error: unexpected value 120 at line 5160 in file stabstring.c
internal error: expected char ',', found
'smbuf:,0,32;ifq_tail:671,32,32;ifq_len:-4,64,32;ifq_maxlen:-4,96,32;ifq_drops:-1,128,32;ifq_slock:-4,160,32;;'
 internal error: expected char ',', found
'mbuf:,0,32;ifq_tail:671,32,32;ifq_len:-4,64,32;ifq_maxlen:-4,96,32;ifq_drops:-1,128,32;ifq_slock:-4,160,32;;'
 internal error: expected char ';', found
'buf:,0,32;ifq_tail:671,32,32;ifq_len:-4,64,32;ifq_maxlen:-4,96,32;ifq_drops:-1,128,32;ifq_slock:-4,160,32;;'
 internal error: unexpected value 44 at line 5160 in file stabstring.c
internal error: expected char ',', found
'0,32;ifq_tail:671,32,32;ifq_len:-4,64,32;ifq_maxlen:-4,96,32;ifq_drops:-1,128,32;ifq_slock:-4,160,32;;'
 internal error: unexpected value 120 at line 5160 in file stabstring.c
internal error: expected char ',', found 'sin6_multi:,0,32;;'
internal error: expected char ',', found 'in6_multi:,0,32;;'
internal error: expected char ';', found 'n6_multi:,0,32;;'
internal error: unexpected value 44 at line 5160 in file stabstring.c
internal error: expected char ',', found '0,32;;'
internal error: unexpected value 120 at line 5160 in file stabstring.c
internal error: expected char ',', found
'sin_multi:,1312,32;if_tap:676,1344,32;if_tapctl:77,1376,32;if_arpres:676,1408,32;if_a \
rprev:676,1440,32;if_arpinput:676,1472,32;if_snd:670,1504,192;if_slock:-4,1696,32;if_m \
ulti_lock:-4,1728,32;if6_multi_lock:-4,1760,32;if_addrlist_lock:-4,1792,32;if_gidlist: \
629,1824,32;if_ip6tomcast:676,1856,32;if_ndp_bcopy:676,1888,32;if_ndp_bcmp:676,1920,32 \
;if_ndtype:241,1952,32;if_multiaddrs6:673,1984,32;if_desired_mtu:242,2016,32;if_vipaxf \
ace:630,2048,32;tran_netif:682=ar112;0;3;-31,2112,256;if_htoken:233,2368,32;if_offload_info:683=u4offload_flags:242,0,32;offload_ptr:77,0,32;;,2400,32;;'
 internal error: expected char ',', found
'in_multi:,1312,32;if_tap:676,1344,32;if_tapctl:77,1376,32;if_arpres:676,1408,32;if_ar \
prev:676,1440,32;if_arpinput:676,1472,32;if_snd:670,1504,192;if_slock:-4,1696,32;if_mu \
lti_lock:-4,1728,32;if6_multi_lock:-4,1760,32;if_addrlist_lock:-4,1792,32;if_gidlist:6 \
29,1824,32;if_ip6tomcast:676,1856,32;if_ndp_bcopy:676,1888,32;if_ndp_bcmp:676,1920,32; \
if_ndtype:241,1952,32;if_multiaddrs6:673,1984,32;if_desired_mtu:242,2016,32;if_vipaxfa \
ce:630,2048,32;tran_netif:682=ar112;0;3;-31,2112,256;if_htoken:233,2368,32;if_offload_info:683=u4offload_flags:242,0,32;offload_ptr:77,0,32;;,2400,32;;'
 internal error: expected char ';', found
'n_multi:,1312,32;if_tap:676,1344,32;if_tapctl:77,1376,32;if_arpres:676,1408,32;if_arp \
rev:676,1440,32;if_arpinput:676,1472,32;if_snd:670,1504,192;if_slock:-4,1696,32;if_mul \
ti_lock:-4,1728,32;if6_multi_lock:-4,1760,32;if_addrlist_lock:-4,1792,32;if_gidlist:62 \
9,1824,32;if_ip6tomcast:676,1856,32;if_ndp_bcopy:676,1888,32;if_ndp_bcmp:676,1920,32;i \
f_ndtype:241,1952,32;if_multiaddrs6:673,1984,32;if_desired_mtu:242,2016,32;if_vipaxfac \
e:630,2048,32;tran_netif:682=ar112;0;3;-31,2112,256;if_htoken:233,2368,32;if_offload_info:683=u4offload_flags:242,0,32;offload_ptr:77,0,32;;,2400,32;;'
 internal error: unexpected value 44 at line 5160 in file stabstring.c
internal error: expected char ',', found
'1312,32;if_tap:676,1344,32;if_tapctl:77,1376,32;if_arpres:676,1408,32;if_arprev:676,1 \
440,32;if_arpinput:676,1472,32;if_snd:670,1504,192;if_slock:-4,1696,32;if_multi_lock:- \
4,1728,32;if6_multi_lock:-4,1760,32;if_addrlist_lock:-4,1792,32;if_gidlist:629,1824,32 \
;if_ip6tomcast:676,1856,32;if_ndp_bcopy:676,1888,32;if_ndp_bcmp:676,1920,32;if_ndtype: \
241,1952,32;if_multiaddrs6:673,1984,32;if_desired_mtu:242,2016,32;if_vipaxface:630,204 \
8,32;tran_netif:682=ar112;0;3;-31,2112,256;if_htoken:233,2368,32;if_offload_info:683=u4offload_flags:242,0,32;offload_ptr:77,0,32;;,2400,32;;'
 internal error: unexpected value 120 at line 5160 in file stabstring.c
internal error: expected char ',', found
'sarptab:,256,32;if_ifdependent:720=*721=f-1,288,32;;'
internal error: expected char ',', found
'arptab:,256,32;if_ifdependent:720=*721=f-1,288,32;;'
internal error: expected char ';', found
'rptab:,256,32;if_ifdependent:720=*721=f-1,288,32;;'
internal error: unexpected value 44 at line 5160 in file stabstring.c
internal error: expected char ',', found
'256,32;if_ifdependent:720=*721=f-1,288,32;;'
internal error: unexpected value 120 at line 5160 in file stabstring.c
internal error: expected char ',', found
'sdriver_multi:,2624,32;ac_multi_lock:-4,2656,32;ac_llip6:510,2688,128;;'
internal error: expected char ',', found
'driver_multi:,2624,32;ac_multi_lock:-4,2656,32;ac_llip6:510,2688,128;;'
internal error: expected char ';', found
'river_multi:,2624,32;ac_multi_lock:-4,2656,32;ac_llip6:510,2688,128;;'
internal error: unexpected value 44 at line 5160 in file stabstring.c
internal error: expected char ',', found
'2624,32;ac_multi_lock:-4,2656,32;ac_llip6:510,2688,128;;'
internal error: unexpected value 120 at line 5160 in file stabstring.c
internal error: expected char ',', found 'sndd:,2816,32;;'
internal error: expected char ',', found 'ndd:,2816,32;;'
internal error: expected char ';', found 'dd:,2816,32;;'
internal error: unexpected value 44 at line 5160 in file stabstring.c
internal error: expected char ',', found '2816,32;;'
internal error: unexpected value 120 at line 5160 in file stabstring.c
internal error: unexpected value 120 at line 5160 in file stabstring.c
internal error: unexpected value 120 at line 5160 in file stabstring.c
internal error: expected char ',', found
'scounter64:,0,32;floatVal:823=*-12,0,32;doubleVal:824=*-13,0,32;;'
internal error: expected char ',', found
'counter64:,0,32;floatVal:823=*-12,0,32;doubleVal:824=*-13,0,32;;'
internal error: expected char ';', found
'ounter64:,0,32;floatVal:823=*-12,0,32;doubleVal:824=*-13,0,32;;'
internal error: unexpected value 44 at line 5160 in file stabstring.c
internal error: expected char ',', found
'0,32;floatVal:823=*-12,0,32;doubleVal:824=*-13,0,32;;'
internal error: unexpected value 120 at line 5160 in file stabstring.c
internal error: unexpected value 120 at line 5160 in file stabstring.c
internal error: unexpected value 120 at line 5160 in file stabstring.c
internal error: expected char ',', found
'sconfig_line:,32,32;next:1009=*1006,64,32;;'
internal error: expected char ',', found
'config_line:,32,32;next:1009=*1006,64,32;;'
internal error: expected char ';', found
'onfig_line:,32,32;next:1009=*1006,64,32;;'
internal error: unexpected value 44 at line 5160 in file stabstring.c
internal error: expected char ',', found '32,32;next:1009=*1006,64,32;;'
internal error: unexpected value 120 at line 5160 in file stabstring.c
internal error: expected char ',', found
'snetsnmp_agent_request_info_s:,64,32;range_end:805,96,32;range_end_len:67,128,32;dele \
gated:-1,160,32;processed:-1,192,32;inclusive:-1,224,32;status:-1,256,32;index:-1,288, \
32;repeat:-1,320,32;orig_repeat:-1,352,32;requestvb_start:804,384,32;next:1068=*1065,416,32;prev:1068,448,32;subtree:1069=*1070=xsnetsnmp_subtree_s:,480,32;;'
 internal error: expected char ',', found
'netsnmp_agent_request_info_s:,64,32;range_end:805,96,32;range_end_len:67,128,32;deleg \
ated:-1,160,32;processed:-1,192,32;inclusive:-1,224,32;status:-1,256,32;index:-1,288,3 \
2;repeat:-1,320,32;orig_repeat:-1,352,32;requestvb_start:804,384,32;next:1068=*1065,416,32;prev:1068,448,32;subtree:1069=*1070=xsnetsnmp_subtree_s:,480,32;;'
 internal error: expected char ';', found
'etsnmp_agent_request_info_s:,64,32;range_end:805,96,32;range_end_len:67,128,32;delega \
ted:-1,160,32;processed:-1,192,32;inclusive:-1,224,32;status:-1,256,32;index:-1,288,32 \
;repeat:-1,320,32;orig_repeat:-1,352,32;requestvb_start:804,384,32;next:1068=*1065,416,32;prev:1068,448,32;subtree:1069=*1070=xsnetsnmp_subtree_s:,480,32;;'
 internal error: unexpected value 44 at line 5160 in file stabstring.c
internal error: expected char ',', found
'64,32;range_end:805,96,32;range_end_len:67,128,32;delegated:-1,160,32;processed:-1,19 \
2,32;inclusive:-1,224,32;status:-1,256,32;index:-1,288,32;repeat:-1,320,32;orig_repeat \
:-1,352,32;requestvb_start:804,384,32;next:1068=*1065,416,32;prev:1068,448,32;subtree:1069=*1070=xsnetsnmp_subtree_s:,480,32;;'
 internal error: unexpected value 120 at line 5160 in file stabstring.c
internal error: expected char ',', found 'snetsnmp_subtree_s:,480,32;;'
internal error: expected char ',', found 'netsnmp_subtree_s:,480,32;;'
internal error: expected char ';', found 'etsnmp_subtree_s:,480,32;;'
internal error: unexpected value 44 at line 5160 in file stabstring.c
internal error: expected char ',', found '480,32;;'
internal error: unexpected value 120 at line 5160 in file stabstring.c
internal error: expected char ',', found
'snetsnmp_agent_session_s:,32,32;agent_data:869,64,32;;'
internal error: expected char ',', found
'netsnmp_agent_session_s:,32,32;agent_data:869,64,32;;'
internal error: expected char ';', found
'etsnmp_agent_session_s:,32,32;agent_data:869,64,32;;'
internal error: unexpected value 44 at line 5160 in file stabstring.c
internal error: expected char ',', found '32,32;agent_data:869,64,32;;'
internal error: unexpected value 120 at line 5160 in file stabstring.c


Segmentation fault in . at 0xd410 ($t1)
0x0000d410 warning: Unable to access address 0xd410 from core
(dbx) where
.() at 0xd410
hasmntopt(??, ??) at 0xd03e8570
var_hrstore(0x2ff1c1d8, 0x2ff1c3ec, 0x2ff1c5ec, 0x0, 0x2ff1c3e8,
0x2ff1c3e4) at 0xd10f72f4
netsnmp_old_api_helper(0x20070ea8, 0x20070d28, 0x2013fe68, 0x2013fe88) at
0xd0dc71a0
netsnmp_call_handler(0x20070ea8, 0x20070d28, 0x2013fe68, 0x2013fe88) at
0xd113f69c
netsnmp_call_handlers(0x20070d28, 0x2013fe68, 0x2013fe88) at 0xd113fa9c
handle_var_requests(0x2013f7f8) at 0xd114dedc
handle_pdu(0x2013f7f8) at 0xd114f914
netsnmp_handle_request(0x2013f7f8, 0x0) at 0xd114f3e0
handle_snmp_packet(0x1, 0x2012cf38, 0x49c22d8, 0x2013f4f8, 0x0) at
0xd114bef0
_sess_process_packet(0x2012ced8, 0x2012cf38, 0x2012cef8, 0x2012cd88,
0x2012ce88, 0x14, 0x2012f4b8, 0x2f) at 0xd11b389c
_sess_read(0x2012ced8, 0x2ff1cae4) at 0xd11b4fa0
snmp_sess_read(0x2012ced8, 0x2ff1cae4) at 0xd11b5044
snmp_read(0x2ff1cae4) at 0xd11b3a90
receive(), line 1199 in "snmpd.c"
main(argc = 6, argv = 0x2ff22cc4), line 1038 in "snmpd.c"
(dbx)

----------------------------------------------------------------------

Comment By: blentz (blentz)
Date: 2012-06-15 12:27

Message:
I get slightly different results using those environment variables. Below
is the output.

$ sudo rm -f /core
$ ulimit -a
time(seconds)        unlimited
file(blocks)         unlimited
data(kbytes)         unlimited
stack(kbytes)        unlimited
memory(kbytes)       unlimited
coredump(blocks)     unlimited
nofiles(descriptors) unlimited
threads(per process) unlimited
processes(per user)  unlimited
$ export MALLOCTYPE=debug
$ export MALLOCDEBUG=catch_overflow,postfree_checking
$ /opt/local/net-snmp/sbin/snmpd -p /opt/local/net-snmp/var/run/snmpd.pid
-a -f 0.0.0.0:16161
Memory fault(coredump)
$ dbx /opt/local/net-snmp/sbin/snmpd /core
Type 'help' for help.
[using memory image in /core]
reading symbolic information ...warning: no source compiled with -g


Segmentation fault in extend_brk at 0xd0128c78 ($t1)
0xd0128c78 (extend_brk+0x238) 90040004         stw   r0,0x4(r4)
(dbx) where
libdebug assertion "(framep->getGpr(STKP, &addr) == DB_SUCCESS &&
*nextStkpp == addr)" failed at line 1299 in file
../../../../../../../../../../../src/bos/usr/ccs/lib/libdbx/libdebug/modules/stackdebug/POWER/stackdb_FrameProgress.C
 extend_brk(internal error: assertion failed at line 3550 in file frame.c
??, internal error: assertion failed at line 3550 in file frame.c
??, internal error: assertion failed at line 3550 in file frame.c
??) at 0xd0128c78
(dbx)

----------------------------------------------------------------------

Comment By: Niels Baggesen (nba)
Date: 2012-06-14 23:55

Message:
This looks like some memory corruption problem. Could you try running this
with a malloc debugger?
I do not know anything about AIX, but a quick google turned up some
environment settings that might help: 

MALLOCTYPE=debug MALLOCDEBUG=catch_overflow,postfree_checking snmpd .....

----------------------------------------------------------------------

Comment By: blentz (blentz)
Date: 2012-06-14 18:12

Message:
Here's another stacktrace from a system with fullcore set to true on sys0.

[blentz@optaixdbdma02dev /home/blentz]$ sudo dbx
/opt/local/net-snmp/sbin/snmpd /core
Type 'help' for help.
[using memory image in /core]
reading symbolic information ...warning: no source compiled with -g


Segmentation fault in . at 0xd410 ($t1)
0x0000d410 warning: Unable to access address 0xd410 from core
(dbx) where
.() at 0xd410
hasmntopt(??, ??) at 0xd03e8570
var_hrstore(0x2ff1c248, 0x2ff1c45c, 0x2ff1c65c, 0x0, 0x2ff1c458,
0x2ff1c454) at 0xd10f72f4
netsnmp_old_api_helper(0x20070bf8, 0x20070a78, 0x2013d6f8, 0x2013d718) at
0xd0dc71a0
netsnmp_call_handler(0x20070bf8, 0x20070a78, 0x2013d6f8, 0x2013d718) at
0xd113f69c
netsnmp_call_handlers(0x20070a78, 0x2013d6f8, 0x2013d718) at 0xd113fa9c
handle_var_requests(0x2012cba8) at 0xd114dedc
handle_pdu(0x2012cba8) at 0xd114f914
netsnmp_handle_request(0x2012cba8, 0x0) at 0xd114f3e0
handle_snmp_packet(0x1, 0x2012cc88, 0xdeb70d4, 0x2013cdf8, 0x0) at
0xd114bef0
_sess_process_packet(0x2012cc28, 0x2012cc88, 0x2012cc48, 0x2012cad8,
0x2012cb28, 0x14, 0x2012cde8, 0x2f) at 0xd11b389c
_sess_read(0x2012cc28, 0x2ff1cb54) at 0xd11b4fa0
snmp_sess_read(0x2012cc28, 0x2ff1cb54) at 0xd11b5044
snmp_read(0x2ff1cb54) at 0xd11b3a90
receive() at 0x10002c2c
main(0x8, 0x2ff22d30) at 0x100025f0
(dbx) 

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=112694&aid=3535323&group_id=12694

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Net-snmp-bugs mailing list
Net-snmp-bugs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-bugs


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic