[OpenSIPS-Users] Core dump when enabling CDR generation in OpenSIPS 1.6.4 on Solaris SPARC 64 bits.

Sergio Gutierrez saguti at gmail.com
Mon Feb 7 17:49:45 CET 2011


Hi Bogdan.

I recompiled sources to get source lines:

#0  0xffffffff7be0cf9c in prebuild_string (value_str=0xffffffff7bf18a78,
dlg=0xffffffff78ab54c8, core_s=0xffffffff7fffd250,
extra_s=0xffffffff7fffd230, leg_s=0xffffffff7fffd240,
leg_idx=0xffffffff7fffd22a,
    leg_values=0xffffffff7fffd22c, nr_legs=0xffffffff7fffd22e,
created=0xffffffff7fffd270, start=0xffffffff7fffd268) at acc.c:1297
1297            *start = *time_val;
(gdb) bt
#0  0xffffffff7be0cf9c in prebuild_string (value_str=0xffffffff7bf18a78,
dlg=0xffffffff78ab54c8, core_s=0xffffffff7fffd250,
extra_s=0xffffffff7fffd230, leg_s=0xffffffff7fffd240,
leg_idx=0xffffffff7fffd22a,
    leg_values=0xffffffff7fffd22c, nr_legs=0xffffffff7fffd22e,
created=0xffffffff7fffd270, start=0xffffffff7fffd268) at acc.c:1297
#1  0xffffffff7be04c54 in acc_log_cdrs_request (dlg=0xffffffff78ab54c8) at
acc.c:237
#2  0xffffffff7be113b4 in acc_dlg_callback (dlg=0xffffffff78ab54c8, type=32,
_params=0xffffffff7b946250) at acc_logic.c:457
#3  0xffffffff7b81166c in run_dlg_callbacks (type=32,
dlg=0xffffffff78ab54c8, msg=0x10034bf18, dir=2, dlg_data=0x0) at
dlg_cb.c:253
#4  0xffffffff7b81e8b4 in dlg_onroute (req=0x10034bf18,
route_params=0xffffffff7fffd8c0, param=0x0) at dlg_handlers.c:893
#5  0xffffffff7c60dd00 in run_rr_callbacks (req=0x10034bf18,
rr_params=0xffffffff7c712968) at rr_cb.c:99
#6  0xffffffff7c6082cc in after_loose (_m=0x10034bf18, preloaded=0) at
loose.c:934
#7  0xffffffff7c603c54 in loose_route (_m=0x10034bf18, _s1=0x0, _s2=0x0) at
loose.c:973
#8  0x00000001000153b4 in do_action (a=0x10033f668, msg=0x10034bf18) at
action.c:1195
#9  0x000000010000cda0 in run_action_list (a=0x10033f668, msg=0x10034bf18)
at action.c:140
#10 0x00000001000a308c in eval_elem (e=0x10033f740, msg=0x10034bf18,
val=0x0) at route.c:1354
#11 0x00000001000aaa08 in eval_expr (e=0x10033f740, msg=0x10034bf18,
val=0x0) at route.c:1696
#12 0x00000001000aabc4 in eval_expr (e=0x10033f790, msg=0x10034bf18,
val=0x0) at route.c:1717
#13 0x0000000100011ce4 in do_action (a=0x100340f00, msg=0x10034bf18) at
action.c:802
#14 0x000000010000cda0 in run_action_list (a=0x100340f00, msg=0x10034bf18)
at action.c:140
#15 0x0000000100011f80 in do_action (a=0x1003410b0, msg=0x10034bf18) at
action.c:819
#16 0x000000010000cda0 in run_action_list (a=0x10033e680, msg=0x10034bf18)
at action.c:140
#17 0x000000010000d3e4 in run_actions (a=0x10033e680, msg=0x10034bf18) at
action.c:120
#18 0x000000010000d630 in run_top_route (a=0x10033e680, msg=0x10034bf18) at
action.c:181
#19 0x0000000100090300 in receive_msg (
    buf=0x10030f1a8 "BYE
sip:3828096.iIiIiI.0a010705. at 200.13.234.200SIP/2.0\r\nVia: SIP/2.0/UDP
200.13.234.200:5060;branch=z9hG4bK.iIiIiI.0a010705.ab077e43\r\nTo:
\"3828096\" <sip:3828096 at italtel.com;user=phone>;tag=1638d459\r"...,
len=429, rcv_info=0xffffffff7ffff700) at receive.c:162
#20 0x000000010010f950 in udp_rcv_loop () at udp_server.c:492
#21 0x000000010003ab18 in main_loop () at main.c:712
#22 0x0000000100040e00 in main (argc=6, argv=0xffffffff7ffffa88) at
main.c:1393
(gdb) frame 0
#0  0xffffffff7be0cf9c in prebuild_string (value_str=0xffffffff7bf18a78,
dlg=0xffffffff78ab54c8, core_s=0xffffffff7fffd250,
extra_s=0xffffffff7fffd230, leg_s=0xffffffff7fffd240,
leg_idx=0xffffffff7fffd22a,
    leg_values=0xffffffff7fffd22c, nr_legs=0xffffffff7fffd22e,
created=0xffffffff7fffd270, start=0xffffffff7fffd268) at acc.c:1297
1297            *start = *time_val;


On Fri, Feb 4, 2011 at 12:35 AM, Bogdan-Andrei Iancu <bogdan at opensips.org>wrote:

> Hi Sergio,
>
> Can you get from the corefile the line of crash in prebuild_string() ?
>
> Regards,
> Bogdan
>
> Sergio Gutierrez wrote:
>
>>
>> Hello all users.
>>
>> When enabling the CDR generation (cdr flag of acc module) OpenSIPS fails
>> and generates core when receiving the BYE.
>>
>> This is the backtrace:
>> Core was generated by `/dsa/1.6.4/sbin/opensips -D -ddd -E -f
>> /dsa/1.6.4/etc/opensips/mvno.cfg'.
>> Program terminated with signal 10, Bus error.
>> [New process 86541    ]
>> #0  0xffffffff7be0acfc in prebuild_string () from
>> /dsa/1.6.4/lib64/opensips/modules/acc.so
>> (gdb) bt
>> #0  0xffffffff7be0acfc in prebuild_string () from
>> /dsa/1.6.4/lib64/opensips/modules/acc.so
>> #1  0xffffffff7be049d0 in acc_log_cdrs_request () from
>> /dsa/1.6.4/lib64/opensips/modules/acc.so
>> #2  0xffffffff7be0e2ac in acc_dlg_callback () from
>> /dsa/1.6.4/lib64/opensips/modules/acc.so
>> #3  0xffffffff7b80f9a8 in run_dlg_callbacks () from
>> /dsa/1.6.4/lib64/opensips/modules/dialog.so
>> #4  0xffffffff7b819d28 in dlg_onroute () from
>> /dsa/1.6.4/lib64/opensips/modules/dialog.so
>> #5  0xffffffff7c60d5dc in run_rr_callbacks () from
>> /dsa/1.6.4/lib64/opensips/modules/rr.so
>> #6  0xffffffff7c608430 in after_loose () from
>> /dsa/1.6.4/lib64/opensips/modules/rr.so
>> #7  0xffffffff7c603c90 in loose_route () from
>> /dsa/1.6.4/lib64/opensips/modules/rr.so
>> #8  0x0000000100014280 in do_action ()
>> #9  0x000000010000ceb0 in run_action_list ()
>> #10 0x0000000100084d64 in eval_elem ()
>> #11 0x000000010008d67c in eval_expr ()
>> #12 0x000000010008d764 in eval_expr ()
>> #13 0x0000000100011538 in do_action ()
>> #14 0x000000010000ceb0 in run_action_list ()
>> #15 0x0000000100011714 in do_action ()
>> #16 0x000000010000ceb0 in run_action_list ()
>> #17 0x000000010000d5a0 in run_top_route ()
>> #18 0x0000000100075f0c in receive_msg ()
>> #19 0x00000001000e0640 in udp_rcv_loop ()
>> #20 0x00000001000316bc in main_loop ()
>> #21 0x0000000100037440 in main ()
>>
>>
>> I am doing the setflag related to modparam at INVITE processing.
>>
>> Please let me know whether more information is needed.
>>
>>
>> Best regards.
>>
>>
>> --
>> Sergio Gutiérrez
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>
>
>
> --
> Bogdan-Andrei Iancu
> OpenSIPS Event - expo, conf, social, bootcamp
> 2 - 4 February 2011, ITExpo, Miami,  USA
> OpenSIPS solutions and "know-how"
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>



-- 
Sergio Gutiérrez
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20110207/342aa9b5/attachment.htm>


More information about the Users mailing list