[Sofia-sip-devel] New client side nua assert

2007-02-15 Thread Michael Jerris
This one is when cr->cr_orq != NULL.  I don't have logs that go along
with this one.  Will try to capture them next time it happens.

Mike


#2  0x003490c27ae1 in __assert_fail () from /lib64/tls/libc.so.6
No symbol table info available.
#3  0x002a96f48ad7 in nua_client_request_sendmsg (cr=0x2a98177a50,
msg=0x2a98264b90, sip=0x2a98264c88) at nua_stack.c:2113
nh = (nua_handle_t *) 0x54ef60
ds = (nua_dialog_state_t *) 0x54efc8
method = sip_method_bye
name = 0x2a96fe62d4 "BYE"
url = (const url_string_t *) 0x0
leg = (nta_leg_t *) 0x0
__PRETTY_FUNCTION__ = "nua_client_request_sendmsg"
#4  0x002a96f489ea in nua_client_request_try (cr=0x2a98177a50) at
nua_stack.c:2079
error = -1
msg = (msg_t *) 0x2a98264b90
sip = (sip_t *) 0x2a98264c88
__PRETTY_FUNCTION__ = "nua_client_request_try"
#5  0x002a96f48213 in nua_client_init_request (cr=0x2a98177a50) at
nua_stack.c:1880
nh = (nua_handle_t *) 0x54ef60
nua = (nua_t *) 0x564630
ds = (nua_dialog_state_t *) 0x54efc8
msg = (msg_t *) 0x0
sip = (sip_t *) 0x349190d1c0
url = (const url_string_t *) 0x0
t = (const tagi_t *) 0x349190d1c0
has_contact = 0
error = 0
#6  0x002a96f4a56f in nua_client_init_requests (cr=0x2a98177a50,
cr0=0x2a982bb7b0, invite=0) at nua_stack.c:2664
No locals.
#7  0x002a96f4a194 in nua_base_client_response (cr=0x2a982bb7b0,
status=481, phrase=0x2a9831051c "No such response", sip=0x2a981dd388,
tags=0x0)
at nua_stack.c:2601
nh = (nua_handle_t *) 0x54ef60
method = sip_method_prack
#8  0x002a96f5a83c in nua_session_client_response (cr=0x2a982bb7b0,
status=481, phrase=0x2a9831051c "No such response", sip=0x2a981dd388)
at nua_session.c:822
nh = (nua_handle_t *) 0x54ef60
du = (nua_dialog_usage_t *) 0x2a98259110
ss = (nua_session_usage_t *) 0x2a98259148
sdp = 0x0
len = 0
received = 0x0
#9  0x002a96f5c196 in nua_prack_client_response (cr=0x2a982bb7b0,
status=481, phrase=0x2a9831051c "No such response", sip=0x2a981dd388)
at nua_session.c:1524
No locals.
#10 0x002a96f4968e in nua_client_response (cr=0x2a982bb7b0,
status=481, phrase=0x2a9831051c "No such response", sip=0x2a981dd388) at
nua_stack.c:2360
nh = (nua_handle_t *) 0x54ef60
du = (nua_dialog_usage_t *) 0x2a98259110
#11 0x002a96f493bc in nua_client_orq_response (cr=0x2a982bb7b0,
orq=0x2a981e8a20, sip=0x2a981dd388) at nua_stack.c:2261
status = 481
phrase = 0x2a9831051c "No such response"
#12 0x002a96f30dcf in outgoing_recv (orq=0x2a981e8a20, status=481,
msg=0x2a981dd290, sip=0x2a981dd388) at nta.c:8110
sa = (nta_agent_t *) 0x565fb0
orq_status = 0
__PRETTY_FUNCTION__ = "outgoing_recv"
#13 0x002a96f1f5ea in agent_recv_response (agent=0x565fb0,
msg=0x2a981dd290, sip=0x2a981dd388, tport_via=0x568d00, tport=0x568460)
at nta.c:2512
status = 481
errors = 0
phrase = 0x2a9831051c "No such response"
method = 0x2a96fe8417 "PRACK"
cseq = 79669706
orq = (nta_outgoing_t *) 0x2a981e8a20
#14 0x002a96f1d222 in agent_recv_message (agent=0x565fb0,
tport=0x568460, msg=0x2a981dd290, tport_via=0x568d00, now=
  {tv_sec = 3380564884, tv_usec = 301868}) at nta.c:2059
sip = (sip_t *) 0x2a981dd388
#15 0x002a96fb4dad in tport_base_deliver (self=0x568460,
msg=0x2a981dd290, now={tv_sec = 3380564884, tv_usec = 301868}) at
tport.c:2848
No locals.
#16 0x002a96fb4d35 in tport_deliver (self=0x568460,
msg=0x2a981dd290, next=0x0, sc=0x0, now={tv_sec = 3380564884, tv_usec =
301868}) at tport.c:2837
ref = (tport_t *) 0x568460
error = 0
d = (struct tport_delivery *) 0x568040
__PRETTY_FUNCTION__ = "tport_deliver"
__func__ = "tport_deliver"
#17 0x002a96fb47b5 in tport_parse (self=0x568460, complete=1,
now={tv_sec = 3380564884, tv_usec = 301868}) at tport.c:2755
msg = (msg_t *) 0x2a981dd290
next = (msg_t *) 0x0
n = 1
streaming = 0
stall = 0
__func__ = "tport_parse"
#18 0x002a96fb4440 in tport_recv_event (self=0x568460) at
tport.c:2702
now = {tv_sec = 3380564884, tv_usec = 301868}
again = 0
__func__ = "tport_recv_event"
#19 0x002a96fb4141 in tport_base_wakeup (self=0x568460, events=1) at
tport.c:2606
error = 0
#20 0x002a96fb3ee3 in tport_wakeup_pri (m=0x564630, w=0x565094,
self=0x568460) at tport.c:2569
pri = (tport_primary_t *) 0x568460
events = 1
__PRETTY_FUNCTION__ = "tport_wakeup_pri"
#21 0x002a96fa2fc2 in su_epoll_port_wait_events (self=0x564ae0,
tout=26) at su_epoll_port.c:508
ser = (struct su_epoll_register *) 0x565070
magic = (su_root_magic_t *) 0x564630
j = 0
n = 1
events = 0
index = 2
version = 277
M = 4
ev = {

Re: [Sofia-sip-devel] New client side nua assert

2007-02-26 Thread Pekka Pessi
2007/2/16, Michael Jerris <[EMAIL PROTECTED]>:
> This one is when cr->cr_orq != NULL.  I don't have logs that go along
> with this one.  Will try to capture them next time it happens.

I managed to find the problem, the stack tried to send BYE twice if
PRACK failed. I'll push a fix shortly.

--Pekka

>
> #2  0x003490c27ae1 in __assert_fail () from /lib64/tls/libc.so.6
> No symbol table info available.
> #3  0x002a96f48ad7 in nua_client_request_sendmsg (cr=0x2a98177a50,
> msg=0x2a98264b90, sip=0x2a98264c88) at nua_stack.c:2113
> nh = (nua_handle_t *) 0x54ef60
> ds = (nua_dialog_state_t *) 0x54efc8
> method = sip_method_bye
> name = 0x2a96fe62d4 "BYE"
> url = (const url_string_t *) 0x0
> leg = (nta_leg_t *) 0x0
> __PRETTY_FUNCTION__ = "nua_client_request_sendmsg"
> #4  0x002a96f489ea in nua_client_request_try (cr=0x2a98177a50) at
> nua_stack.c:2079
> error = -1
> msg = (msg_t *) 0x2a98264b90
> sip = (sip_t *) 0x2a98264c88
> __PRETTY_FUNCTION__ = "nua_client_request_try"
> #5  0x002a96f48213 in nua_client_init_request (cr=0x2a98177a50) at
> nua_stack.c:1880
> nh = (nua_handle_t *) 0x54ef60
> nua = (nua_t *) 0x564630
> ds = (nua_dialog_state_t *) 0x54efc8
> msg = (msg_t *) 0x0
> sip = (sip_t *) 0x349190d1c0
> url = (const url_string_t *) 0x0
> t = (const tagi_t *) 0x349190d1c0
> has_contact = 0
> error = 0
> #6  0x002a96f4a56f in nua_client_init_requests (cr=0x2a98177a50,
> cr0=0x2a982bb7b0, invite=0) at nua_stack.c:2664
> No locals.
> #7  0x002a96f4a194 in nua_base_client_response (cr=0x2a982bb7b0,
> status=481, phrase=0x2a9831051c "No such response", sip=0x2a981dd388,
> tags=0x0)
> at nua_stack.c:2601
> nh = (nua_handle_t *) 0x54ef60
> method = sip_method_prack
> #8  0x002a96f5a83c in nua_session_client_response (cr=0x2a982bb7b0,
> status=481, phrase=0x2a9831051c "No such response", sip=0x2a981dd388)
> at nua_session.c:822
> nh = (nua_handle_t *) 0x54ef60
> du = (nua_dialog_usage_t *) 0x2a98259110
> ss = (nua_session_usage_t *) 0x2a98259148
> sdp = 0x0
> len = 0
> received = 0x0
> #9  0x002a96f5c196 in nua_prack_client_response (cr=0x2a982bb7b0,
> status=481, phrase=0x2a9831051c "No such response", sip=0x2a981dd388)
> at nua_session.c:1524
> No locals.
> #10 0x002a96f4968e in nua_client_response (cr=0x2a982bb7b0,
> status=481, phrase=0x2a9831051c "No such response", sip=0x2a981dd388) at
> nua_stack.c:2360
> nh = (nua_handle_t *) 0x54ef60
> du = (nua_dialog_usage_t *) 0x2a98259110
> #11 0x002a96f493bc in nua_client_orq_response (cr=0x2a982bb7b0,
> orq=0x2a981e8a20, sip=0x2a981dd388) at nua_stack.c:2261
> status = 481
> phrase = 0x2a9831051c "No such response"
> #12 0x002a96f30dcf in outgoing_recv (orq=0x2a981e8a20, status=481,
> msg=0x2a981dd290, sip=0x2a981dd388) at nta.c:8110
> sa = (nta_agent_t *) 0x565fb0
> orq_status = 0
> __PRETTY_FUNCTION__ = "outgoing_recv"
> #13 0x002a96f1f5ea in agent_recv_response (agent=0x565fb0,
> msg=0x2a981dd290, sip=0x2a981dd388, tport_via=0x568d00, tport=0x568460)
> at nta.c:2512
> status = 481
> errors = 0
> phrase = 0x2a9831051c "No such response"
> method = 0x2a96fe8417 "PRACK"
> cseq = 79669706
> orq = (nta_outgoing_t *) 0x2a981e8a20
> #14 0x002a96f1d222 in agent_recv_message (agent=0x565fb0,
> tport=0x568460, msg=0x2a981dd290, tport_via=0x568d00, now=
>   {tv_sec = 3380564884, tv_usec = 301868}) at nta.c:2059
> sip = (sip_t *) 0x2a981dd388
> #15 0x002a96fb4dad in tport_base_deliver (self=0x568460,
> msg=0x2a981dd290, now={tv_sec = 3380564884, tv_usec = 301868}) at
> tport.c:2848
> No locals.
> #16 0x002a96fb4d35 in tport_deliver (self=0x568460,
> msg=0x2a981dd290, next=0x0, sc=0x0, now={tv_sec = 3380564884, tv_usec =
> 301868}) at tport.c:2837
> ref = (tport_t *) 0x568460
> error = 0
> d = (struct tport_delivery *) 0x568040
> __PRETTY_FUNCTION__ = "tport_deliver"
> __func__ = "tport_deliver"
> #17 0x002a96fb47b5 in tport_parse (self=0x568460, complete=1,
> now={tv_sec = 3380564884, tv_usec = 301868}) at tport.c:2755
> msg = (msg_t *) 0x2a981dd290
> next = (msg_t *) 0x0
> n = 1
> streaming = 0
> stall = 0
> __func__ = "tport_parse"
> #18 0x002a96fb4440 in tport_recv_event (self=0x568460) at
> tport.c:2702
> now = {tv_sec = 3380564884, tv_usec = 301868}
> again = 0
> __func__ = "tport_recv_event"
> #19 0x002a96fb4141 in tport_base_wakeup (self=0x568460, events=1) at
> tport.c:2606
> error = 0
> #20 0x002a96fb3ee3 in tport_wakeup_pri (m=0x564630, w=0x565094,
> self=0x568460) at tport.c:2569
> pri = (tport_primary_t *) 0x568460
>