Replying to Paul P Komkoff Jr:
> Nope. It doesn't work as r4493 of trunk. The symptoms are as I said -
> 3-4 seconds of media, then silence, and livelock somewhere.

(gdb) bt
#0  0x00110402 in __kernel_vsyscall ()
#1  0x0087f119 in __lll_lock_wait () from /lib/libpthread.so.0
#2  0x0087a8bd in _L_lock_728 () from /lib/libpthread.so.0
#3  0x0087a768 in pthread_mutex_lock () from /lib/libpthread.so.0
#4  0x002faa74 in iax2_send (pvt=0x9aaa538, f=0x9aa7c1c, ts=<value optimized 
out>, seqno=-1, now=0, transfer=0, final=0) at 
../../include/callweaver/lock.h:585
#5  0x003071e6 in iax2_write (c=0x9a77ba0, f=0x9aa7c1c) at chan_iax2.c:3885
#6  0x08065b0b in opbx_write (chan=0x9a77ba0, fr=0x9aa7c1c) at channel.c:2185
#7  0x08068d51 in opbx_channel_bridge (c0=0x9a781d8, c1=0xfffffe00, 
config=0xb6ebc128, fo=0xb6ebba9c, rc=0xb6ebba98) at channel.c:3388
#8  0x002a5fb6 in __opbx_bridge_call (chan=0x9a781d8, peer=0x9a77ba0, 
config=0xb6ebc128) at res_features.c:1394
#9  0x006382c9 in dial_exec_full (chan=0x9a781d8, argc=1, argv=0xb6ebcddc, 
peerflags=0xb6ebcd74) at app_dial.c:1624
#10 0x00639801 in dial_exec (chan=0x9a781d8, argc=1, argv=0xb6ebcddc, 
result=0x0, result_max=4294967295) at app_dial.c:1664
#11 0x080775d4 in opbx_function_exec (chan=0x9a781d8, hash=266659568, 
name=0x9a6c955 "Dial", argc=1, argv=0xb6ebcddc, out=0x0, outlen=4294967295) at 
function.c:172
#12 0x08077726 in opbx_function_exec_str (chan=0x9a781d8, hash=266659568, 
name=0x9a6c955 "Dial", args=0xb6ebd1d8 "IAX2", out=0x0, outlen=4294967295) at 
function.c:216
#13 0x08074d6c in pbx_extension_helper (c=0x9a781d8, con=<value optimized out>, 
context=<value optimized out>, exten=0x9a78408 "9210604", priority=1, label=0x0,
    callerid=0x9a54d88 "stingray", action=1) at pbx.c:1360
#14 0x08075b54 in __opbx_pbx_run (c=0x9a781d8) at pbx.c:1981
#15 0x08076fbc in pbx_thread (data=0x9a781d8) at pbx.c:2264
#16 0x080977ac in opbx_pthread_wrapper (data=0x9a740f8) at utils.c:536
#17 0x0087850b in start_thread () from /lib/libpthread.so.0
#18 0x007b9b2e in clone () from /lib/libc.so.6


this is the original livelock

(gdb) bt
#0  0x00110402 in __kernel_vsyscall ()
#1  0x0087f119 in __lll_lock_wait () from /lib/libpthread.so.0
#2  0x0087a8bd in _L_lock_728 () from /lib/libpthread.so.0
#3  0x0087a768 in pthread_mutex_lock () from /lib/libpthread.so.0
#4  0x002f1d76 in find_callno (callno=0, dcallno=0, sin=0xb6e6cb58, new=2, 
lockpeer=1, sockfd=16) at ../../include/callweaver/lock.h:585
#5  0x002f7099 in iax2_request (type=0xb6e6e1d8 "IAX2", format=512, 
data=0xb6e6dcbc, cause=0xb6e6d174) at chan_iax2.c:7079
#6  0x08063834 in opbx_request (type=0xb6e6e1d8 "IAX2", format=512, 
data=0xb6e6dcbc, cause=0xb6e6d174) at channel.c:2462
#7  0x00634e17 in dial_exec_full (chan=0x8f96cd0, argc=1, argv=0xb6e6dddc, 
peerflags=0xb6e6dd74) at app_dial.c:1081
#8  0x00639801 in dial_exec (chan=0x8f96cd0, argc=1, argv=0xb6e6dddc, 
result=0x0, result_max=4294967295) at app_dial.c:1664
#9  0x080775d4 in opbx_function_exec (chan=0x8f96cd0, hash=266659568, 
name=0x8f4f8dd "Dial", argc=1, argv=0xb6e6dddc, out=0x0, outlen=4294967295) at 
function.c:172
#10 0x08077726 in opbx_function_exec_str (chan=0x8f96cd0, hash=266659568, 
name=0x8f4f8dd "Dial", args=0xb6e6e1d8 "IAX2", out=0x0, outlen=4294967295) at 
function.c:216
#11 0x08074d6c in pbx_extension_helper (c=0x8f96cd0, con=<value optimized out>, 
context=<value optimized out>, exten=0x8f96f00 "9210604", priority=1, label=0x0,
    callerid=0x8f37728 "stingray", action=1) at pbx.c:1360
#12 0x08075b54 in __opbx_pbx_run (c=0x8f96cd0) at pbx.c:1981
#13 0x08076fbc in pbx_thread (data=0x8f96cd0) at pbx.c:2264
#14 0x080977ac in opbx_pthread_wrapper (data=0x8f37958) at utils.c:536
#15 0x0087850b in start_thread () from /lib/libpthread.so.0
#16 0x007b9b2e in clone () from /lib/libc.so.6

this is the further livelocks

P.S. Inline functions suck for debugging like this...

-- 
Paul P 'Stingray' Komkoff Jr // http://stingr.net/key <- my pgp key
 This message represents the official view of the voices in my head
_______________________________________________
Callweaver-dev mailing list
[email protected]
http://lists.callweaver.org/mailman/listinfo/callweaver-dev

Reply via email to