Hi James,

Thanks for raising this. I've added an issue to cover this at 
https://github.com/Metaswitch/sprout/issues/384.



There was a problem in the multipart_clone_data function in pjsip, meaning that 
in sip_multipart.c (204) it attempted to insert items into an uninitialized 
list.

I've put in a fix for this now, and you can pull the sprout package containing 
the fix from the 'latest' repo. This hasn't gone through our full end of 
release QA however; our next stable release that contains this fix will be 
released in the next few weeks.

Ellie

From: [email protected] 
[mailto:[email protected]] On Behalf Of James 
Coleman
Sent: 04 February 2014 15:57
To: [email protected]
Subject: [Clearwater] SIP OPTIONS to MAS success. SIP INVITE causing bono to 
dump core.

Hello,

We are using latest clearwater . . .
RCS client registration through to RCS AS is working.
OPTIONS from client to RCS AS working also.
RCS clients can see each other.

An OPTIONS issue we had before (November last) is fixed.
Thanks very much for that!
 reference:
 > *To:* Matt Williams > *Cc:* clearwater at 
 > lists.projectclearwater.org<http://lists.projectclearwater.org> > *Subject:* 
 > Re: [Clearwater] RCS question
http://lists.projectclearwater.org/pipermail/clearwater/2013-November/000312.html

Now . . .
When attempting to start a chat the INVITE comes into bono.
And bono dumps core.
We have built bono/sprout and are debugging this.
We will hopefully manage to find what is wrong and fix but maybe someone more 
familiar with clearwater would find where the issue is faster and come up with 
a good fix.

I'm including the stack dump and INVITE from bono log below.
I appreciate any help or advice :-)

Thanks.

James.





>From bono log: (with some munging of host and phone numbers)



04-02-2014 12:45:17.017 Verbose pjsip: tcps0x7f73b40d TCP connection closed

04-02-2014 12:45:17.017 Verbose pjsip: tcps0x7f73b40d TCP transport destroyed 
with reason 70016: End of file (PJ_EEOF)

04-02-2014 12:45:26.726 Verbose stack.cpp:200: RX 2169 bytes Request msg 
INVITE/cseq=1 (rdata0x7f73b4092a98) from UDP 88.888.888.888:16399:

--start msg--



INVITE sip:[email protected];user=phone SIP/2.0^M

Call-ID: [email protected]^M

CSeq: 1 INVITE^M

From: <sip:[email protected]>;tag=Bsn78PUSzC^M

To: <sip:[email protected];user=phone>^M

Via: SIP/2.0/UDP 
888.888.888.888:5060;branch=z9hG4bK89c6df1ba8b54f300f0400b952d16259353036;rport^M

Max-Forwards: 70^M

Contact: 
<sip:[email protected]:5060;transport=udp>;+sip.instance="<urn:uuid:ee388fc4-f9e1-3dd6-90d8-48c2947787fb>";+g.oma.sip-im;+g.3gpp.iari-ref="urn%3Aurn-7%3A3gpp-application.ims.iari.rcs.geopush"^M

Accept-Contact: 
*;+g.oma.sip-im;+g.3gpp.iari-ref="urn%3Aurn-7%3A3gpp-application.ims.iari.rcs.geopush"^M

Allow: INVITE,UPDATE,ACK,CANCEL,BYE,NOTIFY,OPTIONS,MESSAGE,REFER^M

Route: 
<sip:888.88.88.88:5060;transport=udp;lr>,<sip:888-88-88-88:5054;transport=tcp;lr;orig>^M

P-Preferred-Identity: <sip:[email protected]>^M

User-Agent: IM-client/OMA1.0 Neusoft-Silta-RCSe-client/2.0.1344.33_TR^M

Content-Type: multipart/mixed;boundary=boundary1^M

Subject: Amazeballs or ?^M

Contribution-ID: d9d5ea4a46d8e0180393a3e7cd0cdda2^M

Proxy-Authorization: Digest 
username="[email protected]",uri="sip:[email protected];user=phone",algorithm=MD5,realm="openims.test",nc=00000002,nonce="6728054437e0f19d",response="f7b30628a50eff6cfff1cbf4441b25cb",cnonce="1391517852372",qop=auth^M

Content-Length: 791^M

^M

--boundary1^M

Content-Type: application/sdp^M

Content-Length: 343^M

^M

v=0^M

o=- 3600506724 3600506724 IN IP4 888.888.888.888^M

s=-^M

c=IN IP4 888.888.888.888^M

t=0 0^M

m=message 9 TCP/MSRP *^M

a=path:msrp://888.888.888.888:7777/1391517924073;tcp^M

a=setup:active^M

a=accept-types:message/cpim application/im-iscomposing+xml^M

a=accept-wrapped-types:text/plain message/imdn+xml 
application/rcspushlocation+xml^M

a=sendrecv^M

^M

--boundary1^M

Content-Type: message/cpim^M

Content-Length: 300^M

^M

From: <sip:[email protected]>^M

To: <sip:[email protected]>^M

NS: imdn <urn:ietf:params:imdn>^M

imdn.Message-ID: Msg6rn78PUQzC^M

DateTime: 2014-02-04T12:45:24.000Z^M

imdn.Disposition-Notification: positive-delivery, display^M

^M

Content-type: text/plain; charset=utf-8^M

^M

Amazeballs or ?^M

--boundary1--

--end msg--



Signal 11 caught





Thread 2 (Thread 0x7f73baffd700 (LWP 21629)):

#0  0x00007f73d6a9fccd in __libc_waitpid (pid=<optimized out>, 
stat_loc=<optimized out>, options=<optimized out>) at 
../sysdeps/unix/sysv/linux/waitpid.c:41

#1  0x00007f73d6a2529e in do_system (line=0x7f73baff9d40 "/usr/bin/gdb -nx 
--batch /proc/21602/exe 21602 -ex 'thread apply all bt'") at 
../sysdeps/posix/system.c:149

#2  0x00007f73d6a256b0 in __libc_system (line=<optimized out>) at 
../sysdeps/posix/system.c:190

#3  0x0000000000421e43 in Logger::backtrace (this=0xec0010, data=<optimized 
out>) at 
/var/lib/jenkins/workspace/sprout-ubuntu-master/modules/cpp-common/src/logger.cpp:267

#4  0x0000000000498bcf in Log::backtrace (fmt=<optimized out>) at 
/var/lib/jenkins/workspace/sprout-ubuntu-master/modules/cpp-common/src/log.cpp:141

#5  0x00000000004b2379 in exception_handler (sig=11) at main.cpp:641

#6  <signal handler called>

#7  0x00000000005073ac in pj_list_insert_after (pos=0x0, node=0x7f73b40d1570) 
at ../include/pj/list_i.h:32

#8  0x00000000005073fb in pj_list_insert_before (pos=0x7f73b40d1508, 
node=0x7f73b40d1570) at ../include/pj/list_i.h:40

#9  0x00000000004c2593 in pj_list_push_back (list=0x7f73b40d1508, 
node=0x7f73b40d1570) at ../../pjlib/include/pj/list.h:128

#10 0x00000000004c2cf6 in multipart_clone_data (pool=0x7f73b40d0830, 
data=0xffd8e8, len=0) at ../src/pjsip/sip_multipart.c:204

#11 0x00000000004c8b53 in pjsip_msg_body_copy (pool=0x7f73b40d0830, 
dst_body=0x7f73b40d1428, src_body=0xffd818) at ../src/pjsip/sip_msg.c:2267

#12 0x00000000004c8c0e in pjsip_msg_body_clone (pool=0x7f73b40d0830, 
body=0xffd818) at ../src/pjsip/sip_msg.c:2290

#13 0x00000000004c47f1 in pjsip_msg_clone (pool=0x7f73b40d0830, 
src=0x7f73b4094d38) at ../src/pjsip/sip_msg.c:334

#14 0x00000000004d8dce in pjsip_rx_data_clone (src=0x7f73b4092a98, flags=0, 
p_rdata=0x7f73baffc7b0) at ../src/pjsip/sip_transport.c:657

#15 0x0000000000425289 in on_rx_msg (rdata=0x7f73b4092a98) at stack.cpp:367

#16 0x00000000004d14c7 in pjsip_endpt_process_rx_data (endpt=0x7f73cec300b8, 
rdata=0x7f73b4092a98, p=0x7f73baffc8a0, p_handled=0x7f73baffc8dc) at 
../src/pjsip/sip_endpoint.c:885

#17 0x00000000004d17e5 in endpt_on_rx_msg (endpt=0x7f73cec300b8, status=0, 
rdata=0x7f73b4092a98) at ../src/pjsip/sip_endpoint.c:1032

#18 0x00000000004db126 in pjsip_tpmgr_receive_packet (mgr=0x7f73cdc89550, 
rdata=0x7f73b4092a98) at ../src/pjsip/sip_transport.c:1742

#19 0x00000000004dbffd in udp_on_read_complete (key=0x7f73cec39d78, 
op_key=0x7f73b4092ab0, bytes_read=2169) at ../src/pjsip/sip_transport_udp.c:173

#20 0x00000000004fcbf2 in ioqueue_dispatch_read_event (ioqueue=0x7f73cec394b8, 
h=0x7f73cec39d78) at ../src/pj/ioqueue_common_abs.c:589

#21 0x00000000004fedea in pj_ioqueue_poll (ioqueue=0x7f73cec394b8, 
timeout=0x7f73baffce00) at ../src/pj/ioqueue_epoll.c:810

#22 0x00000000004d118d in pjsip_endpt_handle_events2 (endpt=0x7f73cec300b8, 
max_timeout=0x7f73baffce50, p_count=0x0) at ../src/pjsip/sip_endpoint.c:740

#23 0x00000000004d123a in pjsip_endpt_handle_events (endpt=0x7f73cec300b8, 
max_timeout=0x7f73baffce50) at ../src/pjsip/sip_endpoint.c:768

#24 0x0000000000422eef in pjsip_thread (p=<optimized out>) at stack.cpp:135

#25 0x00000000004ff678 in thread_main (param=0xec2d98) at 
../src/pj/os_core_unix.c:523

#26 0x00007f73d7817e9a in start_thread (arg=0x7f73baffd700) at 
pthread_create.c:308

#27 0x00007f73d6ad43fd in clone () at 
../sysdeps/unix/sysv/linux/x86_64/clone.S:112

#28 0x0000000000000000 in ?? ()

[Image removed by sender.]<http://openmindnetworks.com/mobile-operators>

[Image removed by sender.]<http://www.linkedin.com/company/76647?trk=fc_badge>

openmindnetworks.com<http://openmindnetworks.com>

<<inline: ~WRD000.jpg>>

_______________________________________________
Clearwater mailing list
[email protected]
http://lists.projectclearwater.org/listinfo/clearwater

Reply via email to