[sr-dev] Crash (CANCEL)

Alex Balashov abalashov at evaristesys.com
Tue Oct 19 18:02:44 CEST 2010


Just got another crash, different line:

Program terminated with signal 11, Segmentation fault.
#0  0x00002b7bbda9d4e0 in build_uac_cancel (headers=0x0, 
body=0xa100000274,
     cancelledT=0x0, branch=<value optimized out>, len=<value 
optimized out>,
     dst=0x3609690000) at t_msgbuilder.c:1661
1661		memapp( p, cancelledT->to.s, cancelledT->to.len );


On 10/19/2010 11:47 AM, Alex Balashov wrote:

> Looking at it some more, this may not be related to a received CANCEL,
> but rather a locally generated CANCEL with the new reason header
> functionality. I am pleased that t_reply.h provides a #define to
> disable it.
>
> On 10/19/2010 11:33 AM, Alex Balashov wrote:
>
>> When first loading core dump in GDB, it does give me a line number:
>>
>> Program terminated with signal 11, Segmentation fault.
>> #0 0x00002b1a751554c8 in build_local_reparse (Trans=<value optimized
>> out>,
>> branch=<value optimized out>, len=0x7fff2944e4dc,
>> method=0x2b1a75173bc8 "CANCEL", method_len=6, to=0x2b1a790a0f48,
>> reason=0x7fff2944e568) at t_msgbuilder.c:476
>> 476 append_str(d, reason->u.text.s,
>>
>>
>> On 10/19/2010 11:29 AM, Alex Balashov wrote:
>>
>>> This seems to be related to some sort of CANCEL message, possibly from
>>> Freeswitch, but I don't have the message buffer handy and the issue is
>>> not easily reproducible.
>>>
>>> Any ideas?
>>>
>>> (gdb) where
>>> #0 0x00002b1a751554c8 in build_local_reparse (Trans=<value optimized
>>> out>,
>>> branch=<value optimized out>, len=0x7fff2944e4dc,
>>> method=0x2b1a75173bc8 "CANCEL", method_len=6, to=0x2b1a790a0f48,
>>> reason=0x7fff2944e568) at t_msgbuilder.c:476
>>> #1 0x00002b1a7512411e in cancel_branch (t=0x2b1a78f2aecb, branch=0,
>>> reason=0x7fff2944e568, flags=0) at t_cancel.c:285
>>> #2 0x00002b1a7513c361 in fake_reply (ticks=<value optimized out>,
>>> tl=<value optimized out>, p=<value optimized out>) at timer.c:320
>>> #3 final_response_handler (ticks=<value optimized out>,
>>> tl=<value optimized out>, p=<value optimized out>) at timer.c:489
>>> #4 retr_buf_handler (ticks=<value optimized out>, tl=<value optimized
>>> out>,
>>> p=<value optimized out>) at timer.c:546
>>> #5 0x000000000051b55a in timer_list_expire () at timer.c:894
>>> #6 timer_handler () at timer.c:957
>>> #7 timer_main () at timer.c:996
>>> #8 0x0000000000469fb4 in main_loop () at main.c:1618
>>> #9 0x000000000046be9f in main (argc=<value optimized out>,
>>> argv=0x7fff2944e898) at main.c:2398
>>>
>>
>>
>
>


-- 
Alex Balashov - Principal
Evariste Systems LLC
1170 Peachtree Street
12th Floor, Suite 1200
Atlanta, GA 30309
Tel: +1-678-954-0670
Fax: +1-404-961-1892
Web: http://www.evaristesys.com/



More information about the sr-dev mailing list