[Home]

Summary:ASTERISK-12571: crash after "Hard hangup called while fd is blocked"
Reporter:pj (pj)Labels:
Date Opened:2008-08-12 15:31:51Date Closed:2008-09-14 17:07:14
Priority:CriticalRegression?No
Status:Closed/CompleteComponents:Channels/chan_skinny
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) btfull.txt
( 1) cli.txt
( 2) gdb2.txt
Description:from time to time crash like this happen,
maybe it's due to lost skinny signaling connection from phone to chan_skinny during processing call? I don't know, it's only my idea, when looking at console log.


****** ADDITIONAL INFORMATION ******

phone 7920
SVN-trunk-r136787
Comments:By: pj (pj) 2008-09-12 02:41:58

another crash (probably during skinny call hangup),
bt/bt full in gdb2.txt
Asterisk SVN-trunk-r142475

By: pj (pj) 2008-09-12 08:08:25

maybe this can be related, cli after skinny hangup:
[Sep 12 15:07:06]     -- Skinny/687@PAM-8 answered SIP/ipbx-gw-0833d130
[Sep 12 15:07:06]     -- Packet2Packet bridging SIP/ipbx-gw-0833d130 and Skinny/687@PAM-8
[Sep 12 15:08:19]        > Killing only sub 8
ipbx*CLI>
Disconnected from Asterisk server


/var/log/asterisk/mmlog:

1221154956 - New session
WARNING: High fence violation at 0x8300490, in req_alloc of chan_skinny.c, line 1445
WARNING: Freeing unused memory at 0x83084b0, in skinny_hangup of chan_skinny.c, line 3553
WARNING: High fence violation at 0x8301b50, in req_alloc of chan_skinny.c, line 1445
WARNING: Freeing unused memory at 0x83049d0, in skinny_hangup of chan_skinny.c, line 3553
WARNING: High fence violation at 0x8263970, in req_alloc of chan_skinny.c, line 1445
WARNING: Freeing unused memory at 0x8314a58, in skinny_hangup of chan_skinny.c, line 3553
WARNING: Freeing unused memory at (nil), in ast_free_ptr of /root/src/asterisk142535/include/asterisk/utils.h, line 396
WARNING: Freeing unused memory at (nil), in ast_free_ptr of /root/src/asterisk142535/include/asterisk/utils.h, line 396
WARNING: Freeing unused memory at (nil), in ast_free_ptr of /root/src/asterisk142535/include/asterisk/utils.h, line 396

thread apply all bt:

Thread 1 (process 15327):
#0  0xb7ce526f in ?? () from /lib/i686/libc.so.6
#1  0xb7b979ab in _Unwind_Backtrace () from /lib/libgcc_s.so.1
#2  0xb7ce5428 in backtrace () from /lib/i686/libc.so.6
#3  0x080f79c6 in ast_bt_get_addresses (bt=0xe580983c) at logger.c:1190
#4  0xb7823743 in __ast_pthread_mutex_lock (filename=0xb7839dd4 "chan_skinny.c", lineno=3543, func=0xb783bc3a "skinny_hangup", mutex_name=0xb783a8b9 "&sub->lock", t=0x8336588)
   at /root/src/asterisk142535/include/asterisk/lock.h:501
ASTERISK-1  0xb782c72a in skinny_hangup (ast=0x8334890) at chan_skinny.c:3543
ASTERISK-2  0x0809554e in ast_hangup (chan=0x8334890) at channel.c:1623
ASTERISK-3  0xb774af7d in dial_exec_full (chan=0x832ff58, data=0xb73aee88, peerflags=0xb73accfc, continue_exec=0x0) at app_dial.c:1980
ASTERISK-4  0xb774bc2a in dial_exec (chan=0x832ff58, data=0xb73aee88) at app_dial.c:2014
ASTERISK-5  0x0810a017 in pbx_exec (c=0x832ff58, app=0x8249c70, data=0xb73aee88) at pbx.c:950
ASTERISK-6 0x08111a22 in pbx_extension_helper (c=0x832ff58, con=0x0, context=0x83307d6 "from-bill", exten=0x8330826 "sw-26-687", priority=10, label=0x0, callerid=0x8317ba8 "716", action=E_SPAWN, found=0xb73b12e0,
   combined_find_spawn=1) at pbx.c:3188
ASTERISK-7 0x08112ff2 in ast_spawn_extension (c=0x832ff58, context=0x83307d6 "from-bill", exten=0x8330826 "sw-26-687", priority=10, callerid=0x8317ba8 "716", found=0xb73b12e0, combined_find_spawn=1) at pbx.c:3622
ASTERISK-8 0x081136d4 in __ast_pbx_run (c=0x832ff58) at pbx.c:3710
ASTERISK-9 0x081153a9 in pbx_thread (data=0x832ff58) at pbx.c:3988
ASTERISK-10 0x0816cffc in dummy_start (data=0x8315d90) at utils.c:1024
ASTERISK-11 0xb7be3315 in start_thread () from /lib/i686/libpthread.so.0
ASTERISK-12 0xb7cd1dde in clone () from /lib/i686/libc.so.6

By: pj (pj) 2008-09-12 08:36:00

my last two crashdumps are from Asterisk SVN-trunk-r142475 +  memleak2.diff from bugreport ASTERISK-1336452

By: Digium Subversion (svnbot) 2008-09-14 17:07:11

Repository: asterisk
Revision: 143082

U   trunk/channels/chan_skinny.c

------------------------------------------------------------------------
r143082 | mvanbaak | 2008-09-14 17:07:05 -0500 (Sun, 14 Sep 2008) | 11 lines

plug a couple of memleaks in chan_skinny.

(closes issue ASTERISK-12705)
Reported by: pj
Patches:
     memleak5.diff uploaded by wedhorn (license 30)
Tested by: wedhorn, pj, mvanbaak

(closes issue ASTERISK-12571)
Reported by: pj

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

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