Hello Devs!

I can reproduce crash when generating a lot of /var/spool/asterisk/outgoing/ calls (max 5 simultaneous) which bridges SIP and Local channels. Crash is reproducable with 1.2.7.1 and SVN-branch-1.2-r47862. Both versions crashes at the same point (see backtrace which is from 1.2.7.1)

*This debug (before crash) is from 1.2.7.1*

Dec 8 17:32:27 test-zaloha asterisk[20583]: DEBUG[24579]: channel.c:2882 in ast_do_masquerade: Got clone lock for masquerade on 'SIP/test-4737' at 0x820c6dc Dec 8 17:32:27 test-zaloha asterisk[20583]: DEBUG[24579]: channel.c:3043 in ast_do_masquerade: Putting channel SIP/test-4737 in 64/64 formats Dec 8 17:32:27 test-zaloha asterisk[20583]: DEBUG[24579]: channel.c:3078 in ast_do_masquerade: Released clone lock on 'Local/[EMAIL PROTECTED],1<ZOMBIE>' Dec 8 17:32:27 test-zaloha asterisk[20583]: DEBUG[24579]: channel.c:3087 in ast_do_masquerade: Done Masquerading SIP/test-4737 (6) Dec 8 17:32:27 test-zaloha asterisk[20583]: DEBUG[24584]: channel.c:3266 in ast_generic_bridge: Didn't get a frame from channel: Local/[EMAIL PROTECTED],1<ZOMBIE> Dec 8 17:32:27 test-zaloha asterisk[20583]: DEBUG[24584]: channel.c:3541 in ast_channel_bridge: Bridge stops bridging channels Local/[EMAIL PROTECTED],2 and Local/s@
adialer-start-dc4c,1<ZOMBIE>
Dec 8 17:32:27 test-zaloha asterisk[20583]: DEBUG[24584]: app_dial.c:1605 in dial_exec_full: Exiting with DIALSTATUS=ANSWER. Dec 8 17:32:27 test-zaloha asterisk[20583]: VERBOSE[24584]: == Spawn extension (adialer-start, s, 4) exited non-zero on 'Local/[EMAIL PROTECTED],2' Dec 8 17:32:27 test-zaloha asterisk[20583]: DEBUG[24576]: channel.c:2882 in ast_do_masquerade: Got clone lock for masquerade on 'SIP/test-9917' at 0x8202f5c Dec 8 17:32:27 test-zaloha asterisk[20583]: DEBUG[24576]: channel.c:3043 in ast_do_masquerade: Putting channel SIP/test-9917 in 64/64 formats Dec 8 17:32:27 test-zaloha asterisk[20583]: DEBUG[24576]: channel.c:3078 in ast_do_masquerade: Released clone lock on 'Local/[EMAIL PROTECTED],1<ZOMBIE>' Dec 8 17:32:27 test-zaloha asterisk[20583]: DEBUG[24576]: channel.c:3087 in ast_do_masquerade: Done Masquerading SIP/test-9917 (6) Dec 8 17:32:27 test-zaloha asterisk[20583]: DEBUG[24588]: channel.c:3266 in ast_generic_bridge: Didn't get a frame from channel: Local/[EMAIL PROTECTED],1<ZOMBIE> Dec 8 17:32:27 test-zaloha asterisk[20583]: DEBUG[24588]: channel.c:3541 in ast_channel_bridge: Bridge stops bridging channels Local/[EMAIL PROTECTED],2 and Local/s@
adialer-start-63c5,1<ZOMBIE>
Dec 8 17:32:27 test-zaloha asterisk[20583]: DEBUG[24588]: app_dial.c:1605 in dial_exec_full: Exiting with DIALSTATUS=ANSWER. Dec 8 17:32:27 test-zaloha asterisk[20583]: VERBOSE[24588]: == Spawn extension (adialer-start, s, 4) exited non-zero on 'Local/[EMAIL PROTECTED],2' Dec 8 17:32:27 test-zaloha asterisk[20583]: DEBUG[24580]: channel.c:2882 in ast_do_masquerade: Got clone lock for masquerade on 'SIP/test-ac9d' at 0x820cae4 Dec 8 17:32:27 test-zaloha asterisk[20583]: DEBUG[24582]: channel.c:3266 in ast_generic_bridge: Didn't get a frame from channel: Local/[EMAIL PROTECTED],1<ZOMBIE> Dec 8 17:32:27 test-zaloha asterisk[20583]: DEBUG[24582]: channel.c:3541 in ast_channel_bridge: Bridge stops bridging channels Local/[EMAIL PROTECTED],2 and Local/s@
adialer-start-3e45,1<ZOMBIE>
Dec 8 17:32:27 test-zaloha asterisk[20583]: DEBUG[24582]: app_dial.c:1605 in dial_exec_full: Exiting with DIALSTATUS=ANSWER. Dec 8 17:32:27 test-zaloha asterisk[20583]: VERBOSE[24582]: == Spawn extension (adialer-start, s, 4) exited non-zero on 'Local/[EMAIL PROTECTED],2' Dec 8 17:32:27 test-zaloha asterisk[20583]: DEBUG[20597]: channel.c:778 in channel_find_locked: Avoiding initial deadlock for 'Local/[EMAIL PROTECTED],2'




*this backtrace is from 1.2.7.1*

#0  0xb7defd89 in free () from /lib/tls/libc.so.6
No symbol table info available.
#1  0x0805a67d in ast_frfree (fr=0xb7eaff40) at frame.c:277
No locals.
#2 0x080692c8 in ast_generic_bridge (c0=0xbbbefa4b, c1=0x820ca18, config=0xb7041eb0, fo=0xb7041978, rc=0xb704197c, bridge_end={tv_sec = 0, tv_usec = 0}) at channel.c:3310
       cs = {0x8202a88, 0x820ca18, 0x0}
       f = (struct ast_frame *) 0x824f208
       who = (struct ast_channel *) 0x8202a88
       res = AST_BRIDGE_COMPLETE
       o0nativeformats = 64
       o1nativeformats = 256
       watch_c0_dtmf = 0
       watch_c1_dtmf = 0
       pvt0 = (void *) 0x8240788
       pvt1 = (void *) 0x8249e30
       to = -1
#3 0x080655fd in ast_channel_bridge (c0=0x8202a88, c1=0x820ca18, config=0xb7041eb0, fo=0xb7041978, rc=0xb704197c) at channel.c:3525
       res = AST_BRIDGE_COMPLETE
       nativefailed = 0
       firstpass = 0
       o0nativeformats = 64
       o1nativeformats = 256
       time_left_ms = 0
       nexteventts = {tv_sec = 0, tv_usec = 0}
       caller_warning = 0 '\0'
       callee_warning = 0 '\0'
       to = -1
       t = {tv_sec = 0, tv_usec = 0}
       t = {tv_sec = 0, tv_usec = 0}
#4 0xb7b4bd29 in ast_bridge_call (chan=0x8202a88, peer=0x820ca18, config=0xb7041eb0) at res_features.c:1319 tmp = "$\032\004ˇPáEˇO˙Bˇ°HEˇĚ8%\b(\000\000\000śţBˇ\020U%\bx\000\000\000\030T%\b¸\235Aˇ\020U%\b\036\000\000\000\030T%\b [EMAIL PROTECTED]|\000\000\000\b\000\000\000 [EMAIL PROTECTED] [EMAIL PROTECTED]"...
       f = (struct ast_frame *) 0x0
       who = (struct ast_channel *) 0xb745e150
       chan_featurecode = '\0' <repeats 11 times>
       peer_featurecode = '\0' <repeats 11 times>
       res = 136366616
       hasfeatures = 0
       hadfeatures = 0
       aoh = (struct ast_option_header *) 0xb7eb08e4
       start = {tv_sec = 0, tv_usec = 0}
backup_config = {features_caller = {flags = 0}, features_callee = {flags = 0}, start_time = {tv_sec = 0, tv_usec = 0}, feature_timer = 0, timelimit = 0, play_warning = 0, warning_freq = 0, warning_sound = 0x0, end_sound = 0x0, start_sound = 0x0, firstpass = 0, flags = 0}
       monitor_exec = 0xbbbefa43 <Address 0xbbbefa43 out of bounds>
#5 0xb768b301 in dial_exec_full (chan=0x8202a88, data=0xb7041eb0, peerflags=0xb7042568) at app_dial.c:1577
       res2 = -1145111997
       loopcount = -1224466768
       res = 0
       u = (struct localuser *) 0x81b8f90
       number = 0x8202a88 "Local/[EMAIL PROTECTED],2"
       rest = 0x0
       cur = 0x0
privcid = '\0' <repeats 208 times>, "\001\000\000\000 %\004ˇ\0000\036\b\033\000\000\000%\000\000\000(\000\000\000\000\000\000\000\b\025\004ˇ36;40\000\004ˇÁ/\025\b\b\005\004ˇ"
       privintro = '\0' <repeats 1023 times>
       outgoing = (struct localuser *) 0x0
       tmp = (struct localuser *) 0x81e0948
       peer = (struct ast_channel *) 0x820ca18
       to = -1
       numbusy = 0
       numcongestion = 0
       numnochan = 0
       cause = 0
       numsubst = "test/738569792", '\0' <repeats 61 times>
       restofit = '\0' <repeats 79 times>
       cidname = '\0' <repeats 79 times>
       toast = '\0' <repeats 79 times>
       l = 0xb7041eb0 ""
       privdb_val = 0
       calldurationlimit = 0
config = {features_caller = {flags = 0}, features_callee = {flags = 0}, start_time = {tv_sec = 1165595547, tv_usec = 618304}, feature_timer = 0, timelimit = 0, play_warning = 0, warning_freq = 0, warning_sound = 0x0, end_sound = 0x0, start_sound = 0x0, firstpass = 0, flags = 0}
       timelimit = 0
       play_warning = 0
       warning_freq = 0
       warning_sound = 0x0
       end_sound = 0x0
       start_sound = 0x0
       dtmfcalled = 0x0
       dtmfcalling = 0x0
       var = 0xbbbefa43 <Address 0xbbbefa43 out of bounds>
       status = "ANSWER\000R", '\0' <repeats 247 times>
       play_to_caller = 0
       play_to_callee = 0
       sentringing = 0
       moh = 0
       outbound_group = 0x0
       macro_result = 0xb7041eb0 ""
       macro_transfer_dest = 0xb7041eb0 ""
       digit = 0
       result = 0
       start_time = 1165595546
       answer_time = 1165595547
       end_time = 0
       app = (struct ast_app *) 0xb7041eb0
       parse = 0xb7041b40 "SIP"
args = {argc = 2, argv = 0xb7041d94, peers = 0xb7041b40 "SIP", timeout = 0xb7041b57 "", options = 0x0, url = 0x0}
       opts = {flags = 0}
       opt_args = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}
       oo = (struct localuser *) 0xbbbefa43
#6 0xb7689dc5 in dial_exec (chan=0xbbbefa43, data=0xbbbefa43) at app_dial.c:1619
       peerflags = {flags = 0}
#7 0x0808e445 in pbx_extension_helper (c=0x8202a88, con=0xbbbefa43, context=0x8202bd8 "adialer-start", exten=0x8202ccc "s", priority=4, label=0x0, callerid=0x0, action=0)
   at pbx.c:553
       e = (struct ast_exten *) 0xb7689da0
       sw = (struct ast_switch *) 0x0
       data = 0x0
       foundcontext = 0x8202bd8 "adialer-start"
       newstack = 1
       res = 0
       status = 5
incstack = {0x3 <Address 0x3 out of bounds>, 0x0, 0x8114dc0 "\002", 0xb704877c "\002", 0x808fd11 "˙\215´&", 0x9 <Address 0x9 out of bounds>, 0x0, 0xb <Address 0xb out of bounds>, 0xb7f63158 "\030", 0x2 <Address 0x2 out of bounds>, 0x8114dc4 "¸\212ý˙Ôw", 0x1 <Address 0x1 out of bounds>, 0x80480b4 <Address 0x80480b4 out of bounds>, 0x80480f4 <Address 0x80480f4 out of bounds>, 0x21 <Address 0x21 out of bounds>, 0x2 <Address 0x2 out of bounds>, 0x811c574 "\024", 0xb7f5d7e4 "\201Ă\230c", 0x0, 0x0, 0x0, 0xb7f5d7e4 "\201Ă\230c", 0xb7048898 "", 0xb7048898 "", 0xb7048860 "`\211\004ˇÖ\aěś\001", 0xb7f85540 "", 0xb70487b0 "ô\207\004ˇĚxčˇhUřˇ\020", 0xb7f5da60 "]Ă\215\001čˇ*", 0xb70487f4 "0\210\004ˇ%\211čˇ\004\213\004ˇ\001", 0xb7e878cc "\213EĐ\203Ä0[^_]Ă\211ö\215ź'", 0xb7f85568 "", 0x10 <Address 0x10 out of bounds>, 0xb7048804 "[EMAIL PROTECTED]", 0x1 <Address 0x1 out of bounds>, 0xb7e878e0 "U\211ĺ\203ě\b\211]ü诞đ˙\201ĂR\206\002", 0x0, 0x0, 0x0, 0x0, 0xb7f81b1c "", 0x8048034 <Address 0x8048034 out of bounds>, 0xb7040008 "L\001\004ˇ\034\001\004ˇ\020pޡ\210Q\021\b\231×\017\b\v", 0xb7eaff40 "H\036\023", 0x808fd11 "˙\215´&", 0xb70489dc "", 0xb7048830 "\001", 0xb7e88925 "1Ň\205Ŕxˇ\213Uä\205Ňt°\213MŘ\211\017\213uÜ\211w\004\213Mŕ\211O\bë\235\215t&", 0xb7048b04 "|;öˇÜ˙˙˙ü\215\004ˇL\213\004ˇä\212\004ˇGťőˇ", 0x1 <Address 0x1 out of bounds>, 0xb7048818 "8\210\004ˇ\212fÚˇ\004\213\004ˇ\001", 0xb7da6701 "ëë", '\220' <repeats 13 times>, "U\211ĺWVS\201ě0\001", 0xb7048b04 "|;öˇÜ˙˙˙ü\215\004ˇL\213\004ˇä\212\004ˇGťőˇ", 0xb7048818 "8\210\004ˇ\212fÚˇ\004\213\004ˇ\001", 0xb7eaff40 "H\036\023", 0xb7048838 "`\210\004ˇˇ\002öˇ\004\213\004ˇ\001", 0xb7da668a "\215ś", 0xb7048b04 "|;öˇÜ˙˙˙ü\215\004ˇL\213\004ˇä\212\004ˇGťőˇ", 0x1 <Address 0x1 out of bounds>, 0x0, 0xb7f63b7c "xĘ", 0x1 <Address 0x1 out of bounds>, 0xb7048b04 "|;öˇÜ˙˙˙ü\215\004ˇL\213\004ˇä\212\004ˇGťőˇ", 0xb7048860 "`\211\004ˇÖ\aěś\001", 0xb7f602b7 "\211ö\215ź'", 0xb7048b04 "|;öˇÜ˙˙˙ü\215\004ˇL\213\004ˇä\212\004ˇGťőˇ", 0x1 <Address 0x1 out of bounds>, 0xb7048940 "0Ę \b", 0xb7f63115 "\f\004\004\210\001", 0x1 <Address 0x1 out of bounds>, 0xb6ec4914 "(\210", 0x5 <Address 0x5 out of bounds>, 0xb7048988 "l\212\004ˇ", 0xb7048960 "\210* \b", 0xb6ec07d6 "\203Ä \205Ŕus\203ţ\005tz\213Eŕ\205Ŕt-\203ě\bW\213\2254˙˙˙R\213\2254˙˙˙\213r\004V\213\nQj\nj\001˙Đ\203Ä \203ř\a\211ĆtK\203ř\bu:\213\225(˙˙˙\211řčMú˙˙\213\225(˙˙˙\211řčpó˙˙\205Ŕ\211Ćt\005\203ř\005u\025\203ţ\005¸\n", 0x1 <Address 0x1 out of bounds>, 0x1a <Address 0x1a out of bounds>, 0xb7048b04 "|;öˇÜ˙˙˙ü\215\004ˇL\213\004ˇä\212\004ˇGťőˇ", 0x0, 0xb7048dd0 "\004\213\004ˇ", 0xb7048988 "l\212\004ˇ", 0xb7048b04 "|;öˇÜ˙˙˙ü\215\004ˇL\213\004ˇä\212\004ˇGťőˇ", 0xb7048988 "l\212\004ˇ", 0xb7048898 "", 0xb7048b04 "|;öˇÜ˙˙˙ü\215\004ˇL\213\004ˇä\212\004ˇGťőˇ", 0xb7f601e0 "U\211ĺ\203ě \211]ô\211uř\211}üčć°˙˙\201Ă\2109", 0xb7048dd0 "\004\213\004ˇ", 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x820ca30 "", 0xb7048dfc "", 0x8202a88 "Local/[EMAIL PROTECTED],2", 0x809fdab "\205ö\017\204_\002", 0xb70488f1 "", 0x0, 0x4f <Address 0x4f out of bounds>, 0x0, 0xb7df0844 "\201Ăüö\v", 0x0, 0x0, 0xb7eb0d00 "ř\fëˇř\fëˇ", 0x0 <repeats 15 times>, 0x809f8ed "\213T$\030\213L$\034\211\223\200\002", 0xb7048948 "\232\223yE°\211\004ˇ\210* \bŘ+ \bĚ, \bęď\b\b\210* \b",
 0x0, 0x0, 0x0}
       passdata = "SIP/test/738569792||", '\0' <repeats 8167 times>
       stacklen = 0
       tmp = "\033[1;36;40mDial\033[0;37;40m", '\0' <repeats 55 times>
tmp2 = "\033[1;35;40mLocal/[EMAIL PROTECTED],2\033[0;37;40m", '\0' <repeats 31 times> tmp3 = "\033[1;35;40mSIP/test/738569792||\033[0;37;40m", '\0' <repeats 6892 times>, "[EMAIL PROTECTED]&áˇŰ\ręˇhĽ\022\b", '\0' <repeats 72 times>, "Ű\ręˇ", '\0' <repeats 16 times>, "@˙ęˇ`h\004ˇů\000\000\000`b\004ˇ\002\000\000\000\002\000\000\000Üc\004ˇĎŚáˇmg\004ˇĘc\004ˇ\002", '\0' <repeats 23 times>, "düéˇ", '\0' <repeats 16 times>, "ö˙˙˙", '\0' <repeats 108 times>...
       atmp = '\0' <repeats 79 times>
atmp2 = '\0' <repeats 5892 times>, "Ńßݡ\000\000\000\000˝E\004ˇm\000\000\000\024=\004ˇŃßݡv\207&\bPE\004ˇm\000\000\000\000\000\000\000ť\021\020\b\000\000\000\000\030C\004ˇËRܡ\020ě#\bť\021\020\b\000\000\000\000đB\004ˇ\000\000\000\000\2117ܡ\000\000\000\000\000\000\000\000\004C\004ˇ\000\000\000\000\2117ܡ", '\0' <repeats 148 times>, "Ńßݡ", '\0' <repeats 12 times>, "\035Ě\021\b]\000d ", '\0' <repeats 18 times>, "s \000\000\000\000˙˙˙˙\223˙˙˙", '\0' <repeats 36 times>, "Ŕ>\004ˇ\000\000\000\000\001\000\000\000(C\004ˇ\000\000\000\000Ô>\004ˇ"...
#8  0x0808efea in __ast_pbx_run (c=0x8202a88) at pbx.c:2227
       digit = 0
       exten = '\0' <repeats 255 times>
       pos = 0
       waittime = -1224439376
       res = 0
#9  0x0808fcdf in pbx_thread (data=0xbbbefa43) at pbx.c:2514
No locals.
#10 0xb7f5bb63 in start_thread () from /lib/tls/libpthread.so.0
No symbol table info available.
#11 0xb7e5618a in clone () from /lib/tls/libc.so.6
No symbol table info available.


Any ideas to fix this?

--
Martin Vít
LAM plus s.r.o.
http://www.lam.cz/
Tel.: 605 267 610

_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev

Reply via email to