SPECS: net-snmp.spec - dropped --enable-reentrant (broken, causes ...

qboosh qboosh at pld-linux.org
Sat Aug 6 02:02:32 CEST 2005


Author: qboosh                       Date: Sat Aug  6 00:02:32 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- dropped --enable-reentrant (broken, causes snmpd deadlock)

---- Files affected:
SPECS:
   net-snmp.spec (1.53 -> 1.54) 

---- Diffs:

================================================================
Index: SPECS/net-snmp.spec
diff -u SPECS/net-snmp.spec:1.53 SPECS/net-snmp.spec:1.54
--- SPECS/net-snmp.spec:1.53	Fri Jul  1 20:25:20 2005
+++ SPECS/net-snmp.spec	Sat Aug  6 02:02:26 2005
@@ -1,26 +1,5 @@
 # $Revision$, $Date$
 # TODO:
-# - doesn't work (snmpd deadlock on send - tries to lock the same mutex twice)
-#   #4  0xb760f54e in siglongjmp () from /lib/tls/libpthread.so.0
-#   #5  0xb7e5e0cf in snmp_res_lock (groupID=0, resourceID=1) at mt_support.c:103
-#   #6  0xb7e45698 in snmp_sess_pointer (session=0x80ff868) at snmp_api.c:6975
-#   #7  0xb7e41aca in snmp_async_send (session=0x80ff868, pdu=0x8141848, callback=0, cb_data=0x0)
-#       at snmp_api.c:4564
-#   #8  0xb7e41a6d in snmp_send (session=0x80ff868, pdu=0x8141848) at snmp_api.c:4551
-#   #9  0xb7ebf6fd in netsnmp_wrap_up_request (asp=0x812d828, status=0) at snmp_agent.c:1627
-#   #10 0xb7ec12e3 in netsnmp_handle_request (asp=0x812d828, status=0) at snmp_agent.c:2996
-#   #11 0xb7ebfa65 in handle_snmp_packet (op=1, session=0x80ff868, reqid=628270607, pdu=0x81419b8,
-#       magic=0x0) at snmp_agent.c:1792
-#   #12 0xb7e42b1c in _sess_process_packet (sessp=0x812c970, sp=0x80ff868, isp=0x812c698,
-#       transport=0x8142028, opaque=0x812c1a0, olength=16,
-#       packetptr=0x8145cb8 "0f\002\001\0030\021\002\004c [Ç\002\003", length=104) at snmp_api.c:5208
-#   #13 0xb7e434e6 in _sess_read (sessp=0x812c970, fdset=0xbfffe0e0) at snmp_api.c:5606
-#   #14 0xb7e43535 in snmp_sess_read (sessp=0x812c970, fdset=0xbfffe0e0) at snmp_api.c:5625
-#   #15 0xb7e42c44 in snmp_read (fdset=0xbfffe0e0) at snmp_api.c:5260
-#   #16 0x0804bbe5 in receive () at snmpd.c:1149
-#   #17 0x0804b53d in main (argc=5, argv=0xbffff344) at snmpd.c:993
-# [res mutex with groupID=0, resourceID=1 already locked in snmp_read() at snmp_api.c:5258]
-#
 # - init scripts (which, what?)
 # - default configs
 # - review ucd-snmp-ia64.patch patch
@@ -38,7 +17,7 @@
 Summary(uk):	îÁÂŚŇ ŐÔÉĚŚÔ ÄĚŃ ĐŇĎÔĎËĎĚŐ SNMP ×ŚÄ UC-Davis
 Name:		net-snmp
 Version:	5.2.1.2
-Release:	0.1
+Release:	0.2
 License:	BSD-like
 Group:		Networking/Daemons
 Source0:	http://dl.sourceforge.net/net-snmp/%{name}-%{version}.tar.gz
@@ -418,12 +397,33 @@
 	--disable-debugging \
 	--with-persistent-directory="/var/lib/net-snmp" \
 	--enable-ipv6 \
-	--enable-reentrant \
 	--with-sys-contact="root at localhost" \
 	--enable-ucd-snmp-compatibility \
 	--with-defaults \
 	--with-default-snmp-version=3 \
 	--enable-shared
+
+#	--enable-reentrant is broken - snmpd deadlocks on send (tries to lock the same mutex twice):
+#   #4  0xb760f54e in siglongjmp () from /lib/tls/libpthread.so.0
+#   #5  0xb7e5e0cf in snmp_res_lock (groupID=0, resourceID=1) at mt_support.c:103
+#   #6  0xb7e45698 in snmp_sess_pointer (session=0x80ff868) at snmp_api.c:6975
+#   #7  0xb7e41aca in snmp_async_send (session=0x80ff868, pdu=0x8141848, callback=0, cb_data=0x0)
+#       at snmp_api.c:4564
+#   #8  0xb7e41a6d in snmp_send (session=0x80ff868, pdu=0x8141848) at snmp_api.c:4551
+#   #9  0xb7ebf6fd in netsnmp_wrap_up_request (asp=0x812d828, status=0) at snmp_agent.c:1627
+#   #10 0xb7ec12e3 in netsnmp_handle_request (asp=0x812d828, status=0) at snmp_agent.c:2996
+#   #11 0xb7ebfa65 in handle_snmp_packet (op=1, session=0x80ff868, reqid=628270607, pdu=0x81419b8,
+#       magic=0x0) at snmp_agent.c:1792
+#   #12 0xb7e42b1c in _sess_process_packet (sessp=0x812c970, sp=0x80ff868, isp=0x812c698,
+#       transport=0x8142028, opaque=0x812c1a0, olength=16,
+#       packetptr=0x8145cb8 "0f\002\001\0030\021\002\004c [Ç\002\003", length=104) at snmp_api.c:5208
+#   #13 0xb7e434e6 in _sess_read (sessp=0x812c970, fdset=0xbfffe0e0) at snmp_api.c:5606
+#   #14 0xb7e43535 in snmp_sess_read (sessp=0x812c970, fdset=0xbfffe0e0) at snmp_api.c:5625
+#   #15 0xb7e42c44 in snmp_read (fdset=0xbfffe0e0) at snmp_api.c:5260
+#   #16 0x0804bbe5 in receive () at snmpd.c:1149
+#   #17 0x0804b53d in main (argc=5, argv=0xbffff344) at snmpd.c:993
+# [res mutex with groupID=0, resourceID=1 already locked in snmp_read() at snmp_api.c:5258]
+
 %{__make}
 
 TDIR="`pwd`"
@@ -680,6 +680,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.54  2005/08/06 00:02:26  qboosh
+- dropped --enable-reentrant (broken, causes snmpd deadlock)
+
 Revision 1.53  2005/07/01 18:25:20  qboosh
 - updated to 5.2.1.2 (NEWS say it fixes DoS vuln but... deadlock is unresolved)
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/net-snmp.spec?r1=1.53&r2=1.54&f=u




More information about the pld-cvs-commit mailing list