Re: [SR-Users] Multi crashes in the same day

2017-10-23 Thread igor.potjevlesch
Hello Daniel,

 

Thank you for pinpoint.

Is this commit into branch 5 only?

 

Regards,

 

Igor.

 

De : Daniel-Constantin Mierla [mailto:mico...@gmail.com] 
Envoyé : mardi 3 octobre 2017 20:23
À : Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org>;
igor.potjevle...@gmail.com
Objet : Re: [SR-Users] Multi crashes in the same day

 

Hello,

likely you got hit by the issue fixed by:

  -
https://github.com/kamailio/kamailio/commit/25f2180999dafb807068313c4a329a16
3dd99f92

4.2 series is old and I expect this commit was not backported there.

Cheers,
Daniel

 

On 03.10.17 18:49, igor.potjevle...@gmail.com
<mailto:igor.potjevle...@gmail.com>  wrote:

Hello !

 

I have multi crashes on a Kamailio 4.2.8 instance.

Already 6 coredump today, same time with the same scenario. Below the output
of the last coredump:

 

(gdb) where

#0  0x003d6f6328a5 in raise () from /lib64/libc.so.6

#1  0x003d6f634085 in abort () from /lib64/libc.so.6

#2  0x0061aad2 in qm_debug_frag (qm=0x7f9a8a7aa010,
f=0x7f9a8aca5968) at mem/q_malloc.c:161

#3  0x0061bf1c in qm_malloc (qm=0x7f9a8a7aa010, size=24,
file=0x7131d0 ": re.c", func=0x71483e "subst_run", line=440) at
mem/q_malloc.c:388

#4  0x00505e2c in subst_run (se=0x7f9a8ac08b78, input=0x7f9a8aca5918
<sip:0123456789@customer.local> "sip:0123456789@customer.local",
msg=0x7f9a8abfef38, count=0x0) at re.c:440

#5  0x00506fff in subst_str (input=0x7f9a8aca5918
<sip:0123456789@customer.local> "sip:0123456789@customer.local",
msg=0x7f9a8abfef38, se=0x7f9a8ac08b78, count=0x0) at re.c:515

#6  0x7f9a87ff629d in subst_uri_f (msg=0x7f9a8abfef38,
subst=0x7f9a8ac08b78 "X\215\300\212\232\177", ignored=0x0) at textops.c:744

#7  0x0041d51b in do_action (h=0x7fffed0800d0, a=0x7f9a8ab64cc8,
msg=0x7f9a8abfef38) at action.c:1094

#8  0x00429ba3 in run_actions (h=0x7fffed0800d0, a=0x7f9a8ab64cc8,
msg=0x7f9a8abfef38) at action.c:1583

#9  0x0042a208 in run_actions_safe (h=0x7fffed081380,
a=0x7f9a8ab64cc8, msg=0x7f9a8abfef38) at action.c:1648

#10 0x00542994 in rval_get_int (h=0x7fffed081380,
msg=0x7f9a8abfef38, i=0x7fffed080890, rv=0x7f9a8ab64ef8, cache=0x0) at
rvalue.c:924

#11 0x00546bcc in rval_expr_eval_int (h=0x7fffed081380,
msg=0x7f9a8abfef38, res=0x7fffed080890, rve=0x7f9a8ab64ef0) at rvalue.c:1918

#12 0x0041cf77 in do_action (h=0x7fffed081380, a=0x7f9a8ab66a30,
msg=0x7f9a8abfef38) at action.c:1064

#13 0x00429ba3 in run_actions (h=0x7fffed081380, a=0x7f9a8ab66a30,
msg=0x7f9a8abfef38) at action.c:1583

#14 0x0041d3f6 in do_action (h=0x7fffed081380, a=0x7f9a8ab6b070,
msg=0x7f9a8abfef38) at action.c:1079

#15 0x00429ba3 in run_actions (h=0x7fffed081380, a=0x7f9a8ab607b8,
msg=0x7f9a8abfef38) at action.c:1583

#16 0x0042a2d0 in run_top_route (a=0x7f9a8ab607b8,
msg=0x7f9a8abfef38, c=0x7fffed081380) at action.c:1669

#17 0x7f9a891f6d0f in prepare_new_uac (t=0x7f9a6de86518,
i_req=0x7f9a8abfef38, branch=0, uri=0x7fffed0814d0, path=0x7fffed0814b0,
next_hop=0x7f9a8abff1a8, fsocket=0x0, 

snd_flags=..., fproto=0, flags=2, instance=0x7fffed0814a0,
ruid=0x7fffed081490, location_ua=0x7fffed081480) at t_fwd.c:410

#18 0x7f9a891faded in add_uac (t=0x7f9a6de86518, request=0x7f9a8abfef38,
uri=0x7f9a8abff1a8, next_hop=0x7f9a8abff1a8, path=0x7f9a8abff568, proxy=0x0,
fsocket=0x0, 

snd_flags=..., proto=0, flags=2, instance=0x7f9a8abff578,
ruid=0x7f9a8abff590, location_ua=0x7f9a8abff5a0) at t_fwd.c:855

#19 0x7f9a89201ddd in t_forward_nonack (t=0x7f9a6de86518,
p_msg=0x7f9a8abfef38, proxy=0x0, proto=0) at t_fwd.c:1723

#20 0x7f9a891ee374 in t_relay_to (p_msg=0x7f9a8abfef38, proxy=0x0,
proto=0, replicate=0) at t_funcs.c:355

#21 0x7f9a8922bd89 in _w_t_relay_to (p_msg=0x7f9a8abfef38, proxy=0x0,
force_proto=0) at tm.c:1517

#22 0x7f9a8922ceee in w_t_relay (p_msg=0x7f9a8abfef38, _foo=0x0,
_bar=0x0) at tm.c:1718

#23 0x0041d48d in do_action (h=0x7fffed082190, a=0x7f9a8a83e878,
msg=0x7f9a8abfef38) at action.c:1088

#24 0x00429ba3 in run_actions (h=0x7fffed082190, a=0x7f9a8a83e878,
msg=0x7f9a8abfef38) at action.c:1583

#25 0x0042a208 in run_actions_safe (h=0x7fffed0848f0,
a=0x7f9a8a83e878, msg=0x7f9a8abfef38) at action.c:1648

#26 0x00542994 in rval_get_int (h=0x7fffed0848f0,
msg=0x7f9a8abfef38, i=0x7fffed082668, rv=0x7f9a8a83eb60, cache=0x0) at
rvalue.c:924

#27 0x00546bcc in rval_expr_eval_int (h=0x7fffed0848f0,
msg=0x7f9a8abfef38, res=0x7fffed082668, rve=0x7f9a8a83eb58) at rvalue.c:1918

#28 0x00546fc2 in rval_expr_eval_int (h=0x7fffed0848f0,
msg=0x7f9a8abfef38, res=0x7fffed082af0, rve=0x7f9a8a83f280) at rvalue.c:1926

#29 0x0041cf77 in do_action (h=0x7fffed0848f0, a=0x7f9a8a83fbd0,
msg=0x7f9a8abfef38) at action.c:1064

#30 0x00429ba3 in run_actions (h=0x7fffed0848f0, a=0x7f9a8a838c88,
msg=0x7f9a8abfef3

Re: [SR-Users] Multi crashes in the same day

2017-10-03 Thread Daniel-Constantin Mierla
Hello,

likely you got hit by the issue fixed by:

  -
https://github.com/kamailio/kamailio/commit/25f2180999dafb807068313c4a329a163dd99f92

4.2 series is old and I expect this commit was not backported there.

Cheers,
Daniel


On 03.10.17 18:49, igor.potjevle...@gmail.com wrote:
>
> Hello !
>
>  
>
> I have multi crashes on a Kamailio 4.2.8 instance.
>
> Already 6 coredump today, same time with the same scenario. Below the
> output of the last coredump:
>
>  
>
> (gdb) where
>
> #0  0x003d6f6328a5 in raise () from /lib64/libc.so.6
>
> #1  0x003d6f634085 in abort () from /lib64/libc.so.6
>
> #2  0x0061aad2 in qm_debug_frag (qm=0x7f9a8a7aa010,
> f=0x7f9a8aca5968) at mem/q_malloc.c:161
>
> #3  0x0061bf1c in qm_malloc (qm=0x7f9a8a7aa010, size=24,
> file=0x7131d0 ": re.c", func=0x71483e "subst_run", line=440) at
> mem/q_malloc.c:388
>
> #4  0x00505e2c in subst_run (se=0x7f9a8ac08b78,
> input=0x7f9a8aca5918 "sip:0123456789@customer.local",
> msg=0x7f9a8abfef38, count=0x0) at re.c:440
>
> #5  0x00506fff in subst_str (input=0x7f9a8aca5918
> "sip:0123456789@customer.local", msg=0x7f9a8abfef38,
> se=0x7f9a8ac08b78, count=0x0) at re.c:515
>
> #6  0x7f9a87ff629d in subst_uri_f (msg=0x7f9a8abfef38,
> subst=0x7f9a8ac08b78 "X\215\300\212\232\177", ignored=0x0) at
> textops.c:744
>
> #7  0x0041d51b in do_action (h=0x7fffed0800d0,
> a=0x7f9a8ab64cc8, msg=0x7f9a8abfef38) at action.c:1094
>
> #8  0x00429ba3 in run_actions (h=0x7fffed0800d0,
> a=0x7f9a8ab64cc8, msg=0x7f9a8abfef38) at action.c:1583
>
> #9  0x0042a208 in run_actions_safe (h=0x7fffed081380,
> a=0x7f9a8ab64cc8, msg=0x7f9a8abfef38) at action.c:1648
>
> #10 0x00542994 in rval_get_int (h=0x7fffed081380,
> msg=0x7f9a8abfef38, i=0x7fffed080890, rv=0x7f9a8ab64ef8, cache=0x0) at
> rvalue.c:924
>
> #11 0x00546bcc in rval_expr_eval_int (h=0x7fffed081380,
> msg=0x7f9a8abfef38, res=0x7fffed080890, rve=0x7f9a8ab64ef0) at
> rvalue.c:1918
>
> #12 0x0041cf77 in do_action (h=0x7fffed081380,
> a=0x7f9a8ab66a30, msg=0x7f9a8abfef38) at action.c:1064
>
> #13 0x00429ba3 in run_actions (h=0x7fffed081380,
> a=0x7f9a8ab66a30, msg=0x7f9a8abfef38) at action.c:1583
>
> #14 0x0041d3f6 in do_action (h=0x7fffed081380,
> a=0x7f9a8ab6b070, msg=0x7f9a8abfef38) at action.c:1079
>
> #15 0x00429ba3 in run_actions (h=0x7fffed081380,
> a=0x7f9a8ab607b8, msg=0x7f9a8abfef38) at action.c:1583
>
> #16 0x0042a2d0 in run_top_route (a=0x7f9a8ab607b8,
> msg=0x7f9a8abfef38, c=0x7fffed081380) at action.c:1669
>
> #17 0x7f9a891f6d0f in prepare_new_uac (t=0x7f9a6de86518,
> i_req=0x7f9a8abfef38, branch=0, uri=0x7fffed0814d0,
> path=0x7fffed0814b0, next_hop=0x7f9a8abff1a8, fsocket=0x0,
>
> snd_flags=..., fproto=0, flags=2, instance=0x7fffed0814a0,
> ruid=0x7fffed081490, location_ua=0x7fffed081480) at t_fwd.c:410
>
> #18 0x7f9a891faded in add_uac (t=0x7f9a6de86518,
> request=0x7f9a8abfef38, uri=0x7f9a8abff1a8, next_hop=0x7f9a8abff1a8,
> path=0x7f9a8abff568, proxy=0x0, fsocket=0x0,
>
> snd_flags=..., proto=0, flags=2, instance=0x7f9a8abff578,
> ruid=0x7f9a8abff590, location_ua=0x7f9a8abff5a0) at t_fwd.c:855
>
> #19 0x7f9a89201ddd in t_forward_nonack (t=0x7f9a6de86518,
> p_msg=0x7f9a8abfef38, proxy=0x0, proto=0) at t_fwd.c:1723
>
> #20 0x7f9a891ee374 in t_relay_to (p_msg=0x7f9a8abfef38, proxy=0x0,
> proto=0, replicate=0) at t_funcs.c:355
>
> #21 0x7f9a8922bd89 in _w_t_relay_to (p_msg=0x7f9a8abfef38,
> proxy=0x0, force_proto=0) at tm.c:1517
>
> #22 0x7f9a8922ceee in w_t_relay (p_msg=0x7f9a8abfef38, _foo=0x0,
> _bar=0x0) at tm.c:1718
>
> #23 0x0041d48d in do_action (h=0x7fffed082190,
> a=0x7f9a8a83e878, msg=0x7f9a8abfef38) at action.c:1088
>
> #24 0x00429ba3 in run_actions (h=0x7fffed082190,
> a=0x7f9a8a83e878, msg=0x7f9a8abfef38) at action.c:1583
>
> #25 0x0042a208 in run_actions_safe (h=0x7fffed0848f0,
> a=0x7f9a8a83e878, msg=0x7f9a8abfef38) at action.c:1648
>
> #26 0x00542994 in rval_get_int (h=0x7fffed0848f0,
> msg=0x7f9a8abfef38, i=0x7fffed082668, rv=0x7f9a8a83eb60, cache=0x0) at
> rvalue.c:924
>
> #27 0x00546bcc in rval_expr_eval_int (h=0x7fffed0848f0,
> msg=0x7f9a8abfef38, res=0x7fffed082668, rve=0x7f9a8a83eb58) at
> rvalue.c:1918
>
> #28 0x00546fc2 in rval_expr_eval_int (h=0x7fffed0848f0,
> msg=0x7f9a8abfef38, res=0x7fffed082af0, rve=0x7f9a8a83f280) at
> rvalue.c:1926
>
> #29 0x0041cf77 in do_action (h=0x7fffed0848f0,
> a=0x7f9a8a83fbd0, msg=0x7f9a8abfef38) at action.c:1064
>
> #30 0x00429ba3 in run_actions (h=0x7fffed0848f0,
> a=0x7f9a8a838c88, msg=0x7f9a8abfef38) at action.c:1583
>
> #31 0x00419f13 in do_action (h=0x7fffed0848f0,
> a=0x7f9a8a996598, msg=0x7f9a8abfef38) at action.c:712
>
> #32 0x00429ba3 in run_actions (h=0x7fffed0848f0,
> a=0x7f9a8a9955b8, msg=0x7f9a8abfef38) at action.c:1583
>
> #33 0x0041d3f6 in do_action (h=0x7fffed0848f0,
> a=0x7f9a8a996a50, 

[SR-Users] Multi crashes in the same day

2017-10-03 Thread igor.potjevlesch
Hello !

 

I have multi crashes on a Kamailio 4.2.8 instance.

Already 6 coredump today, same time with the same scenario. Below the output
of the last coredump:

 

(gdb) where

#0  0x003d6f6328a5 in raise () from /lib64/libc.so.6

#1  0x003d6f634085 in abort () from /lib64/libc.so.6

#2  0x0061aad2 in qm_debug_frag (qm=0x7f9a8a7aa010,
f=0x7f9a8aca5968) at mem/q_malloc.c:161

#3  0x0061bf1c in qm_malloc (qm=0x7f9a8a7aa010, size=24,
file=0x7131d0 ": re.c", func=0x71483e "subst_run", line=440) at
mem/q_malloc.c:388

#4  0x00505e2c in subst_run (se=0x7f9a8ac08b78, input=0x7f9a8aca5918
"sip:0123456789@customer.local", msg=0x7f9a8abfef38, count=0x0) at re.c:440

#5  0x00506fff in subst_str (input=0x7f9a8aca5918
"sip:0123456789@customer.local", msg=0x7f9a8abfef38, se=0x7f9a8ac08b78,
count=0x0) at re.c:515

#6  0x7f9a87ff629d in subst_uri_f (msg=0x7f9a8abfef38,
subst=0x7f9a8ac08b78 "X\215\300\212\232\177", ignored=0x0) at textops.c:744

#7  0x0041d51b in do_action (h=0x7fffed0800d0, a=0x7f9a8ab64cc8,
msg=0x7f9a8abfef38) at action.c:1094

#8  0x00429ba3 in run_actions (h=0x7fffed0800d0, a=0x7f9a8ab64cc8,
msg=0x7f9a8abfef38) at action.c:1583

#9  0x0042a208 in run_actions_safe (h=0x7fffed081380,
a=0x7f9a8ab64cc8, msg=0x7f9a8abfef38) at action.c:1648

#10 0x00542994 in rval_get_int (h=0x7fffed081380,
msg=0x7f9a8abfef38, i=0x7fffed080890, rv=0x7f9a8ab64ef8, cache=0x0) at
rvalue.c:924

#11 0x00546bcc in rval_expr_eval_int (h=0x7fffed081380,
msg=0x7f9a8abfef38, res=0x7fffed080890, rve=0x7f9a8ab64ef0) at rvalue.c:1918

#12 0x0041cf77 in do_action (h=0x7fffed081380, a=0x7f9a8ab66a30,
msg=0x7f9a8abfef38) at action.c:1064

#13 0x00429ba3 in run_actions (h=0x7fffed081380, a=0x7f9a8ab66a30,
msg=0x7f9a8abfef38) at action.c:1583

#14 0x0041d3f6 in do_action (h=0x7fffed081380, a=0x7f9a8ab6b070,
msg=0x7f9a8abfef38) at action.c:1079

#15 0x00429ba3 in run_actions (h=0x7fffed081380, a=0x7f9a8ab607b8,
msg=0x7f9a8abfef38) at action.c:1583

#16 0x0042a2d0 in run_top_route (a=0x7f9a8ab607b8,
msg=0x7f9a8abfef38, c=0x7fffed081380) at action.c:1669

#17 0x7f9a891f6d0f in prepare_new_uac (t=0x7f9a6de86518,
i_req=0x7f9a8abfef38, branch=0, uri=0x7fffed0814d0, path=0x7fffed0814b0,
next_hop=0x7f9a8abff1a8, fsocket=0x0, 

snd_flags=..., fproto=0, flags=2, instance=0x7fffed0814a0,
ruid=0x7fffed081490, location_ua=0x7fffed081480) at t_fwd.c:410

#18 0x7f9a891faded in add_uac (t=0x7f9a6de86518, request=0x7f9a8abfef38,
uri=0x7f9a8abff1a8, next_hop=0x7f9a8abff1a8, path=0x7f9a8abff568, proxy=0x0,
fsocket=0x0, 

snd_flags=..., proto=0, flags=2, instance=0x7f9a8abff578,
ruid=0x7f9a8abff590, location_ua=0x7f9a8abff5a0) at t_fwd.c:855

#19 0x7f9a89201ddd in t_forward_nonack (t=0x7f9a6de86518,
p_msg=0x7f9a8abfef38, proxy=0x0, proto=0) at t_fwd.c:1723

#20 0x7f9a891ee374 in t_relay_to (p_msg=0x7f9a8abfef38, proxy=0x0,
proto=0, replicate=0) at t_funcs.c:355

#21 0x7f9a8922bd89 in _w_t_relay_to (p_msg=0x7f9a8abfef38, proxy=0x0,
force_proto=0) at tm.c:1517

#22 0x7f9a8922ceee in w_t_relay (p_msg=0x7f9a8abfef38, _foo=0x0,
_bar=0x0) at tm.c:1718

#23 0x0041d48d in do_action (h=0x7fffed082190, a=0x7f9a8a83e878,
msg=0x7f9a8abfef38) at action.c:1088

#24 0x00429ba3 in run_actions (h=0x7fffed082190, a=0x7f9a8a83e878,
msg=0x7f9a8abfef38) at action.c:1583

#25 0x0042a208 in run_actions_safe (h=0x7fffed0848f0,
a=0x7f9a8a83e878, msg=0x7f9a8abfef38) at action.c:1648

#26 0x00542994 in rval_get_int (h=0x7fffed0848f0,
msg=0x7f9a8abfef38, i=0x7fffed082668, rv=0x7f9a8a83eb60, cache=0x0) at
rvalue.c:924

#27 0x00546bcc in rval_expr_eval_int (h=0x7fffed0848f0,
msg=0x7f9a8abfef38, res=0x7fffed082668, rve=0x7f9a8a83eb58) at rvalue.c:1918

#28 0x00546fc2 in rval_expr_eval_int (h=0x7fffed0848f0,
msg=0x7f9a8abfef38, res=0x7fffed082af0, rve=0x7f9a8a83f280) at rvalue.c:1926

#29 0x0041cf77 in do_action (h=0x7fffed0848f0, a=0x7f9a8a83fbd0,
msg=0x7f9a8abfef38) at action.c:1064

#30 0x00429ba3 in run_actions (h=0x7fffed0848f0, a=0x7f9a8a838c88,
msg=0x7f9a8abfef38) at action.c:1583

#31 0x00419f13 in do_action (h=0x7fffed0848f0, a=0x7f9a8a996598,
msg=0x7f9a8abfef38) at action.c:712

#32 0x00429ba3 in run_actions (h=0x7fffed0848f0, a=0x7f9a8a9955b8,
msg=0x7f9a8abfef38) at action.c:1583

#33 0x0041d3f6 in do_action (h=0x7fffed0848f0, a=0x7f9a8a996a50,
msg=0x7f9a8abfef38) at action.c:1079

#34 0x00429ba3 in run_actions (h=0x7fffed0848f0, a=0x7f9a8a8fa068,
msg=0x7f9a8abfef38) at action.c:1583

#35 0x00419f13 in do_action (h=0x7fffed0848f0, a=0x7f9a8a830c70,
msg=0x7f9a8abfef38) at action.c:712

#36 0x00429ba3 in run_actions (h=0x7fffed0848f0, a=0x7f9a8a830c70,
msg=0x7f9a8abfef38) at action.c:1583

#37 0x0041d3f6 in do_action (h=0x7fffed0848f0, a=0x7f9a8a830db8,
msg=0x7f9a8abfef38) at action.c:1079

#38