Hi,
I am working with Sofia stack in its stateless mode by using the nta api.
Wile running the load stack thread is giving core with the following console
message.
sipng: nta.c:5438: incoming_queue: Assertion `*queue->q_tail == ((void *)0)'
failed.
Aborted (core dumped)
the following is the full stack trace of the core file
(gdb) bt full
#0 0x001be7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
No symbol table info available.
#1 0x002037a5 in raise () from /lib/tls/libc.so.6
No symbol table info available.
#2 0x00205209 in abort () from /lib/tls/libc.so.6
No symbol table info available.
#3 0x001fcd91 in __assert_fail () from /lib/tls/libc.so.6
No symbol table info available.
#4 0x00d01b30 in incoming_create (agent=0x95c1b10, msg=0xa41fe480,
sip=0xa41fe51c, tport=0x95c24d8, tag=0x0) at nta.c:5049
use_rport = (int *) 0x42fd
retry_without_rport = 0
home = (su_home_t *) 0xa3eb0ad8
queue = (incoming_queue_t *) 0x95c1d30
method = 157031728
irq = (nta_incoming_t *) 0xa3eb0ad8
__func__ = "incoming_create"
#5 0x00d11412 in leg_recv (leg=0x95c20c8, msg=0xa41fe480, sip=0xa41fe51c,
tport=0x95c24d8) at nta.c:4659
agent = (nta_agent_t *) 0x95c1b10
irq = (nta_incoming_t *) 0xdae7f4
method = sip_method_invite
method_name = 0xd96a06 "INVITE"
tag = 0x6 ""
status = -1541413604
#6 0x00d1283d in agent_recv_request (agent=0x95c1b10, msg=0xa41fe480,
sip=0xa41fe51c, tport=0x95c24d8) at nta.c:2955
leg = (nta_leg_t *) 0x95c20c8
irq = (nta_incoming_t *) 0x95c20c8
merge = (nta_incoming_t *) 0x0
ack = (nta_incoming_t *) 0x0
cancel = (nta_incoming_t *) 0x0
method = sip_method_invite
method_name = 0xd96a06 "INVITE"
url = {{url_pad = "\000", url_type = 1 '\001', url_root = 0 '\0',
url_scheme = 0xa411de2b "sip", url_user = 0xa411de2f "1001GW2",
url_password = 0x0, url_host = 0xd8ede0 "%", url_port = 0x95c2ae4
"1222", url_path = 0x0, url_params = 0x0, url_headers = 0x0,
url_fragment = 0x0}}
cseq = 1
insane = 157032648
errors = 0
stream = 0
#7 0x00d12fee in agent_recv_message (agent=0x95c1b10, tport=0x95c24d8,
msg=0xa41fe480, tport_via=0x95c2a90, now=
{tv_sec = 274877907, tv_usec = 699611}) at nta.c:2722
sip = (sip_t *) 0xa41fe51c
#8 0x00d68984 in tport_base_deliver (self=0x0, msg=0xa41fe480, now={tv_sec
= 3506155837, tv_usec = 699611}) at tport.c:3013
No locals.
#9 0x00d6f031 in tport_deliver (self=0x95c24d8, msg=0xa41fe480, next=0x0,
sc=0x0, now={tv_sec = 3506155837, tv_usec = 699611})
at tport.c:3002
ref = (tport_t *) 0x95c24d8
error = 0
---Type <return> to continue, or q <return> to quit---
d = (struct tport_delivery *) 0x95c229c
__PRETTY_FUNCTION__ = "tport_deliver"
__func__ = "tport_deliver"
#10 0x00d6f2ab in tport_parse (self=0x95c24d8, complete=1, now={tv_sec =
3506155837, tv_usec = 699611}) at tport.c:2919
msg = (msg_t *) 0xa41fe480
next = (msg_t *) 0x0
n = 1
streaming = 0
stall = 0
__func__ = "tport_parse"
#11 0x00d6f42d in tport_recv_event (self=0x95c24d8) at tport.c:2861
again = 0
__func__ = "tport_recv_event"
#12 0x00d6f6d1 in tport_base_wakeup (self=0x95c24d8, events=1) at
tport.c:2763
error = 0
#13 0x00d5fdac in su_epoll_port_wait_events (self=0x95c1630, tout=44) at
su_epoll_port.c:506
ser = (struct su_epoll_register *) 0x95c192c
magic = (su_root_magic_t *) 0x6
j = 0
n = 1
events = 0
index = 6
version = 3
ev = 0xa9989350
__PRETTY_FUNCTION__ = "su_epoll_port_wait_events"
#14 0x00d5d624 in su_base_port_run (self=0x95c1630) at su_base_port.c:342
tout = 44
__PRETTY_FUNCTION__ = "su_base_port_run"
#15 0x00d59d75 in su_root_run (self=0x0) at su_port.h:310
__PRETTY_FUNCTION__ = "su_root_run"
#16 0x00d5dfee in su_pthread_port_clone_main (varg=0xbffa8dd0) at
su_pthread_port.c:321
arg = (struct clone_args *) 0x0
task = {{sut_port = 0x95c1630, sut_root = 0x95c1ab8}}
zap = 1
#17 0x0042a371 in start_thread () from /lib/tls/libpthread.so.0
No symbol table info available.
#18 0x002a3ffe in clone () from /lib/tls/libc.so.6
No symbol table info available.
The following is the local variable information of queue tail.
(gdb) f 4
#4 0x00d01b30 in incoming_create (agent=0x95c1b10, msg=0xa41fe480,
sip=0xa41fe51c, tport=0x95c24d8, tag=0x0) at nta.c:5049
5049 nta.c: No such file or directory.
in nta.c
Current language: auto; currently c
(gdb) p queue->q_tail
$1 = (nta_incoming_t **) 0xa40433c8
(gdb) p *queue->q_tail
$2 = (nta_incoming_t *) 0xa3e64e18
(gdb) p **queue->q_tail
$3 = {irq_home = 0xa40794e0, irq_hash = 708879791, irq_agent = 0x95c1b10,
irq_callback = 0, irq_magic = 0x0, irq_prev = 0xa40433c8,
irq_next = 0x0, irq_queue = 0x95c1d50, irq_rprev = 0x0, irq_rnext = 0x0,
irq_method = sip_method_bye, irq_rq = 0xa40372b8,
irq_from = 0xa395d8f8, irq_to = 0xa39d1c20, irq_tag = 0xa404367d
"08879v0XD3Sjm", irq_cseq = 0xa3939030, irq_call_id = 0xa3e64ec0,
irq_via = 0xa39a92b0, irq_record_route = 0x0, irq_branch = 0xa3e90b35
"z9hG4bK-13478-8307-7", irq_rseq = 0, irq_timestamp = 0x0,
irq_received = {tv_sec = 3506155837, tv_usec = 693503}, irq_timeout =
1462556160, irq_retry = 0, irq_interval = 0, irq_status = 200,
irq_retries = 0, irq_default = 0, irq_canceled = 0, irq_completed = 1,
irq_confirmed = 1, irq_terminated = 0, irq_final_failed = 0,
irq_destroyed = 1, irq_in_callback = 0, irq_reliable_tp = 0,
irq_sigcomp_zap = 0, irq_must_100rel = 0, irq_tag_set = 0, irq_tpn = {{
tpn_proto = 0xa3e90b14 "UDP", tpn_canon = 0xa3e90b18
"192.168.149.196", tpn_host = 0xa3e90b18 "192.168.149.196",
tpn_port = 0xa3e90b28 "35094", tpn_comp = 0x0, tpn_ident = 0x0}},
irq_tport = 0x0, irq_cc = 0x0, irq_request = 0xa40794e0,
irq_request2 = 0x0, irq_response = 0x96d7e88, irq_reliable = 0x0}
(gdb)
Kindly help me to get out of this problem.
Thanks in advance,
Regards,
Kiran.
------------------------------------------------------------------------------
The modern datacenter depends on network connectivity to access resources
and provide services. The best practices for maximizing a physical server's
connectivity to a physical network are well understood - see how these
rules translate into the virtual world?
http://p.sf.net/sfu/oracle-sfdevnlfb
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel