[Home]

Summary:ASTERISK-17552: [patch] 'core show locks' should show Thread ID in HEX, then would match up with GDB's backtrace
Reporter:Alec Davis (alecdavis)Labels:
Date Opened:2011-03-13 22:30:59Date Closed:2011-03-14 20:36:27
Priority:MinorRegression?No
Status:Closed/CompleteComponents:General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) bug18968.diff.txt
Description:=== Thread ID: -1227080816 (tps_processing_function started at [  451] taskprocessor.c ast_taskprocessor_get())
=== ---> Lock #0 (pbx.c): MUTEX 9911 ast_rdlock_contexts &conlock 0x8217820 (1)
       /usr/sbin/asterisk(ast_bt_get_addresses+0x19) [0x811e716]


Thread 40 (Thread 0xb6dc3b90 (LWP 31215)):
#0  0xb77e3424 in __kernel_vsyscall ()
#1  0xb7396c99 in __lll_lock_wait () from /lib/i686/cmov/libpthread.so.0
#2  0xb73920d3 in _L_lock_291 () from /lib/i686/cmov/libpthread.so.0
#3  0xb7391b36 in pthread_mutex_lock () from /lib/i686/cmov/libpthread.so.0
#4  0xb75ceb36 in pthread_mutex_lock () from /lib/i686/cmov/libc.so.6
ASTERISK-1  0x08118112 in __ast_pthread_mutex_lock (filename=0xb67e4594 "chan_sip.c", lineno=13591, func=0xb67ecdaa "cb_extensionstate", mutex_name=0xb67e5ff9 "p",
   t=0xaf0a3458) at lock.c:230
ASTERISK-2  0x08085888 in __ao2_lock (user_data=0xaf0a3a90, file=0xb67e4594 "chan_sip.c", func=0xb67ecdaa "cb_extensionstate", line=13591, var=0xb67e5ff9 "p")
   at astobj2.c:157
ASTERISK-3  0xb678841a in cb_extensionstate (context=0x9221030 "trusted", exten=0x9260614 "8520", state=0, data=0xaf0a3a90) at chan_sip.c:13591
ASTERISK-4  0x0813fc29 in handle_statechange (datap=0xaebf4c00) at pbx.c:4289
ASTERISK-5  0x08183deb in tps_processing_function (data=0xb6e02558) at taskprocessor.c:310
ASTERISK-6 0x081950be in dummy_start (data=0xb6e00d90) at utils.c:970
ASTERISK-7 0xb73904c0 in start_thread () from /lib/i686/cmov/libpthread.so.0
ASTERISK-8 0xb75c084e in clone () from /lib/i686/cmov/libc.so.6

Comments:By: Digium Subversion (svnbot) 2011-03-14 19:26:11

Repository: asterisk
Revision: 310779

U   branches/1.4/main/utils.c

------------------------------------------------------------------------
r310779 | alecdavis | 2011-03-14 19:26:10 -0500 (Mon, 14 Mar 2011) | 10 lines

core show locks: display ThreadID in hexadecimal

Allow easier cross referencing of thread ID's with GDB backtraces

(closes issue ASTERISK-17552)
Reported by: alecdavis
Patches:
     bug18968.diff.txt uploaded by alecdavis (license 585)


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

http://svn.digium.com/view/asterisk?view=rev&revision=310779

By: Digium Subversion (svnbot) 2011-03-14 19:31:57

Repository: asterisk
Revision: 310780

_U  branches/1.6.2/
U   branches/1.6.2/main/utils.c

------------------------------------------------------------------------
r310780 | alecdavis | 2011-03-14 19:31:57 -0500 (Mon, 14 Mar 2011) | 16 lines

Merged revisions 310779 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
 r310779 | alecdavis | 2011-03-15 13:26:09 +1300 (Tue, 15 Mar 2011) | 10 lines
 
 core show locks: display ThreadID in hexadecimal
 
 Allow easier cross referencing of thread ID's with GDB backtraces
 
 (closes issue ASTERISK-17552)
 Reported by: alecdavis
 Patches:
       bug18968.diff.txt uploaded by alecdavis (license 585)
........

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

http://svn.digium.com/view/asterisk?view=rev&revision=310780

By: Digium Subversion (svnbot) 2011-03-14 20:00:56

Repository: asterisk
Revision: 310781

U   branches/1.8/main/utils.c

------------------------------------------------------------------------
r310781 | alecdavis | 2011-03-14 20:00:56 -0500 (Mon, 14 Mar 2011) | 10 lines

core show locks: display ThreadID in hexadecimal

Allow easier cross referencing of thread ID's with GDB backtraces

(closes issue ASTERISK-17552)
Reported by: alecdavis
Patches:
     bug18968.diff.txt uploaded by alecdavis (license 585)


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

http://svn.digium.com/view/asterisk?view=rev&revision=310781

By: Digium Subversion (svnbot) 2011-03-14 20:36:27

Repository: asterisk
Revision: 310833

_U  trunk/
U   trunk/main/utils.c

------------------------------------------------------------------------
r310833 | alecdavis | 2011-03-14 20:36:27 -0500 (Mon, 14 Mar 2011) | 16 lines

Merged revisions 310781 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
 r310781 | alecdavis | 2011-03-15 14:00:55 +1300 (Tue, 15 Mar 2011) | 10 lines
 
 core show locks: display ThreadID in hexadecimal
 
 Allow easier cross referencing of thread ID's with GDB backtraces
 
 (closes issue ASTERISK-17552)
 Reported by: alecdavis
 Patches:
       bug18968.diff.txt uploaded by alecdavis (license 585)
........

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

http://svn.digium.com/view/asterisk?view=rev&revision=310833