I found a strange problem. I create an MRCP client and then shut it down
and destroy the stack. When I start it again, and allow synthesis to
take place, I get the crash (gdb dump below).
I can create and destroy the stack, no problem, but it appears that as
soon as the SIP interactions take place (maybe when the SIP stack gets
initialised the second time), my app. segfault.
I'm using Nuance as the speech server and it works very nicely if I
don't unload/load my module before using the MRCP client the second
time.
Anyone seen this?
Kind regards,
Derik Thirion
#0 0x004ebb27 in initstate_r () from /lib/libc.so.6
(gdb) bt
#0 0x004ebb27 in initstate_r () from /lib/libc.so.6
#1 0x004eb6f2 in initstate () from /lib/libc.so.6
#2 0x086c6600 in init () at su_uniqueid.c:169
#3 0x086c68b5 in su_randmem (mem=0xaf1bbd50, siz=8) at
su_uniqueid.c:312
#4 0x086a0f63 in soa_init_sdp_origin (ss=0x8bde308, o=0xaf1bbd48,
buffer=0xaf1bbcac "��h\bp��\b\020") at soa.c:2189
#5 0x086a1587 in soa_base_set_capability_sdp (ss=0x8bde308,
_sdp=0x5533a64,
str0=0x8bd45a4 "v=0\r\no=Test 0 0 IN IP4 192.168.1.2\r\ns=-\r\nc=IN
IP4 192.168.1.2\r\nt=0 0\r\nm=application 9 TCP/MRCPv2 1\r
\na=setup:active\r\na=connection:new\r\na=resource:speechsynth\r
\na=cmid:1\r\nm=audio 4000 RTP/AVP 0 8 96\r\na"..., len0=298) at
soa.c:910
#6 0x086a4cc2 in soa_static_set_capability_sdp (ss=0x8bde308,
sdp=0xaf1bbddc,
sdp_str=0x8bd45a4 "v=0\r\no=Test 0 0 IN IP4 192.168.1.2\r\ns=-\r
\nc=IN IP4 192.168.1.2\r\nt=0 0\r\nm=application 9 TCP/MRCPv2 1\r
\na=setup:active\r\na=connection:new\r\na=resource:speechsynth\r
\na=cmid:1\r\nm=audio 4000 RTP/AVP 0 8 96\r\na"..., sdp_len=298) at
soa_static.c:245
#7 0x086a1ec0 in soa_set_sdp (ss=0x8bde308,
what=soa_capability_sdp_kind, sdp0=0x8bd45a4,
sdp_str=0x8bd45a4 "v=0\r\no=Test 0 0 IN IP4 192.168.1.2\r\ns=-\r
\nc=IN IP4 192.168.1.2\r\nt=0 0\r\nm=application 9 TCP/MRCPv2 1\r
\na=setup:active\r\na=connection:new\r\na=resource:speechsynth\r
\na=cmid:1\r\nm=audio 4000 RTP/AVP 0 8 96\r\na"..., str_len=298) at
soa.c:2066
#8 0x086a38fd in soa_base_set_params (ss=0x8bde308, tags=0xaf1bbf98) at
soa.c:516
#9 0x086a4f4f in soa_static_set_params (ss=0x8bde308, tags=0xaf1bbf98)
at soa_static.c:190
#10 0x086a06b0 in soa_set_params (ss=0x8bde308, tag=0x87180b0,
value=146621844) at soa.c:408
#11 0x0867526d in nua_stack_set_params (nua=0x8bd4b78, nh=0x8be5620,
e=nua_i_error, tags=0x8bd4594) at nua_params.c:549
#12 0x08667510 in nua_stack_init_handle (nua=0x5533a64, nh=0x8be5620,
tags=0x8bd4594) at nua_stack.c:1001
#13 0x0866b144 in nua_client_init_request (cr=0x8bd46d8) at
nua_stack.c:2315
#14 0x0866db3f in nua_client_create (nh=0x8be5620, event=31,
methods=0x8711b00, tags=0x8bd4594) at nua_stack.c:2052
#15 0x0867a9c5 in nua_stack_invite (nua=0x8bd4b78, nh=0x8be5620,
e=nua_r_invite, tags=0x8bd4594) at nua_session.c:706
#16 0x0866d948 in nua_stack_signal (nua=0x8bd4b78, msg=0xaf1bc308,
ee=0x8bd457c) at nua_stack.c:594
#17 0x086bd89c in su_base_port_execute_msgs (queue=<value optimized
out>) at su_base_port.c:276
#18 0x086bdfdd in su_base_port_run (self=0x8df1788) at
su_base_port.c:331
#19 0x086b6029 in su_root_run (self=0x8bddb30) at su_port.h:310
#20 0x086be9da in su_pthread_port_clone_main (varg=0xb05be204) at
su_pthread_port.c:321
#21 0x0063a5ab in start_thread () from /lib/libpthread.so.0
#22 0x00590cfe in clone () from /lib/libc.so.6
(gdb) frame 1
#1 0x004eb6f2 in initstate () from /lib/libc.so.6
(gdb) frame 2
#2 0x086c6600 in init () at su_uniqueid.c:169
169 initstate(seed[0] ^ seed[1], (char *)&seed, sizeof(seed));
(gdb) frame 3
#3 0x086c68b5 in su_randmem (mem=0xaf1bbd50, siz=8) at
su_uniqueid.c:312
312 if (!initialized) init();
(gdb) frame 4
#4 0x086a0f63 in soa_init_sdp_origin (ss=0x8bde308, o=0xaf1bbd48,
buffer=0xaf1bbcac "��h\bp��\b\020") at soa.c:2189
2189 su_randmem(&o->o_id, sizeof o->o_id);
(gdb) frame 5
#5 0x086a1587 in soa_base_set_capability_sdp (ss=0x8bde308,
_sdp=0x5533a64,
str0=0x8bd45a4 "v=0\r\no=Test 0 0 IN IP4 192.168.1.2\r\ns=-\r\nc=IN
IP4 192.168.1.2\r\nt=0 0\r\nm=application 9 TCP/MRCPv2 1\r
\na=setup:active\r\na=connection:new\r\na=resource:speechsynth\r
\na=cmid:1\r\nm=audio 4000 RTP/AVP 0 8 96\r\na"..., len0=298) at
soa.c:910
910 if (soa_init_sdp_origin(ss, o, c_address) < 0)
(gdb) frame 6
#6 0x086a4cc2 in soa_static_set_capability_sdp (ss=0x8bde308,
sdp=0xaf1bbddc,
sdp_str=0x8bd45a4 "v=0\r\no=Test 0 0 IN IP4 192.168.1.2\r\ns=-\r
\nc=IN IP4 192.168.1.2\r\nt=0 0\r\nm=application 9 TCP/MRCPv2 1\r
\na=setup:active\r\na=connection:new\r\na=resource:speechsynth\r
\na=cmid:1\r\nm=audio 4000 RTP/AVP 0 8 96\r\na"..., sdp_len=298) at
soa_static.c:245
245 return soa_base_set_capability_sdp(ss, sdp, sdp_str, sdp_len);