[OpenSIPS-Users] libmariadbclient crashes opensips 2.4
Bogdan-Andrei Iancu
bogdan at opensips.org
Tue May 15 03:43:58 EDT 2018
Hi Schneur,
Let me know if after fixing your compiling you still experience this crash.
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
OpenSIPS Summit 2018
http://www.opensips.org/events/Summit-2018Amsterdam
On 05/06/2018 06:53 PM, Schneur Rosenberg wrote:
> I opened a ticket on Github with a new BT, please see if you can take
> care of it, because my system crashes every few minutes
>
> https://github.com/OpenSIPS/opensips/issues/1351
>
> thank you
> Scot (Schneur)
>
> On Sun, May 6, 2018 at 12:23 AM, Schneur Rosenberg
> <rosenberg11219 at gmail.com> wrote:
>> Bogdan, I downloaded the latest copy from gihub as you suggested, but
>> I'm still getting the same segfault.
>>
>>
>> Scot
>>
>> On Sat, May 5, 2018 at 11:53 AM, Schneur Rosenberg
>> <rosenberg11219 at gmail.com> wrote:
>>> Opensips keeps on crashing with the following error
>>>
>>> kernel: [64912.190539] opensips[3377]: segfault at 4 ip
>>> 00007fdb8054f2ae sp 00007ffc78fd45f0 error 4 in
>>> libmariadbclient.so.18.0.0[7fdb80524000+37c000]
>>>
>>> Below is a bt from the dump file
>>>
>>> [New LWP 3377]
>>> [Thread debugging using libthread_db enabled]
>>> Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
>>> Core was generated by `/usr/local/sbin/opensips -P
>>> /var/run/opensips/opensips.pid -m 128 -M 4 -u opens'.
>>> Program terminated with signal SIGSEGV, Segmentation fault.
>>> #0 0x00007fdb8054f2ae in ?? () from
>>> /usr/lib/x86_64-linux-gnu/libmariadbclient.so.18
>>> #0 0x00007fdb8054f2ae in ?? () from
>>> /usr/lib/x86_64-linux-gnu/libmariadbclient.so.18
>>> No symbol table info available.
>>> #1 0x00007fdb805512ba in mysql_stmt_execute () from
>>> /usr/lib/x86_64-linux-gnu/libmariadbclient.so.18
>>> No symbol table info available.
>>> #2 0x00007fdb80b30b59 in wrapper_single_mysql_stmt_execute
>>> (conn=0x7fdb89247990, stmt=0x55f7f23e6778) at dbase.c:148
>>> code = <optimized out>
>>> error = <optimized out>
>>> #3 db_mysql_do_prepared_query (conn=conn at entry=0x7fdb89247990,
>>> v=v at entry=0x7ffc78fd4990, n=n at entry=1, uv=uv at entry=0x0, un=un at entry=0,
>>> query=0x7fdb80d4e5e0 <query_hold$
>>> i = <optimized out>
>>> j = <optimized out>
>>> pq_ptr = 0x7fdb89247c90
>>> ctx = 0x7fdb89247bf0
>>> mysql_bind = 0x7fdb89247cd0
>>> start = {tv_sec = 94523385831424, tv_usec = 140580733817260}
>>> buffered_rows = 0x0
>>> #4 0x00007fdb80b37cd8 in db_mysql_delete (_h=0x7fdb89247990,
>>> _k=0x7ffc78fd48a0, _o=0x7ffc78fd4890, _v=0x7ffc78fd4990, _n=1) at
>>> dbase.c:1316
>>> ret = <optimized out>
>>> #5 0x00007fdb7ad459c3 in update_db_subs (db=0x7fdb89247990,
>>> dbf=dbf at entry=0x7fdb7af7bbe0 <pa_dbf>, hash_table=<optimized out>,
>>> htable_size=<optimized out>, no_lock=no$
>>> my_ps_delete = 0x7fdb89247c90
>>> my_ps_update = 0x0
>>> my_ps_insert = 0x0
>>> query_cols = {0x7fdb7af7ae60 <str_presentity_uri_col>,
>>> 0x7fdb7af7af20 <str_callid_col>, 0x7fdb7af7af30 <str_to_tag_col>,
>>> 0x7fdb7af7af40 <str_from_tag_col>, 0x7$
>>> update_cols = {0x7fdb7af7aed0 <str_expires_col>,
>>> 0x7fdb7af7aec0 <str_status_col>, 0x7fdb7af7aeb0 <str_reason_col>,
>>> 0x7fdb7af7af00 <str_remote_cseq_col>, 0x7fdb$
>>> query_vals = {{type = DB_STR, nul = 0, free = 65448, val =
>>> {int_val = 2063050128, bigint_val = 140580637615504, double_val =
>>> 6.9456063516278221e-310, time_val $
>>> update_vals = {{type = DB_INT, nul = 0, free = -230745857, val
>>> = {int_val = 1525508903, bigint_val = 140580100074279, double_val =
>>> 6.9455797935625725e-310, tim$
>>> update_ops = {0x7fdb7ad6e0d1 "<"}
>>> del_s = <optimized out>
>>> i = <optimized out>
>>> s = <optimized out>
>>> prev_s = <optimized out>
>>> n_query_cols = 20
>>> n_update_cols = 7
>>> buffered_rows = 0x0
>>> #4 0x00007fdb80b37cd8 in db_mysql_delete (_h=0x7fdb89247990,
>>> _k=0x7ffc78fd48a0, _o=0x7ffc78fd4890, _v=0x7ffc78fd4990, _n=1) at
>>> dbase.c:1316
>>> ret = <optimized out>
>>> #5 0x00007fdb7ad459c3 in update_db_subs (db=0x7fdb89247990,
>>> dbf=dbf at entry=0x7fdb7af7bbe0 <pa_dbf>, hash_table=<optimized out>,
>>> htable_size=<optimized out>, no_lock=no$
>>> my_ps_delete = 0x7fdb89247c90
>>> my_ps_update = 0x0
>>> my_ps_insert = 0x0
>>> query_cols = {0x7fdb7af7ae60 <str_presentity_uri_col>,
>>> 0x7fdb7af7af20 <str_callid_col>, 0x7fdb7af7af30 <str_to_tag_col>,
>>> 0x7fdb7af7af40 <str_from_tag_col>, 0x7$
>>> update_cols = {0x7fdb7af7aed0 <str_expires_col>,
>>> 0x7fdb7af7aec0 <str_status_col>, 0x7fdb7af7aeb0 <str_reason_col>,
>>> 0x7fdb7af7af00 <str_remote_cseq_col>, 0x7fdb$
>>> query_vals = {{type = DB_STR, nul = 0, free = 65448, val =
>>> {int_val = 2063050128, bigint_val = 140580637615504, double_val =
>>> 6.9456063516278221e-310, time_val $
>>> update_vals = {{type = DB_INT, nul = 0, free = -230745857, val
>>> = {int_val = 1525508903, bigint_val = 140580100074279, double_val =
>>> 6.9455797935625725e-310, tim$
>>> update_ops = {0x7fdb7ad6e0d1 "<"}
>>> del_s = <optimized out>
>>> i = <optimized out>
>>> s = <optimized out>
>>> prev_s = <optimized out>
>>> n_query_cols = 20
>>> n_update_cols = 7
>>> __FUNCTION__ = "update_db_subs"
>>> #6 0x00007fdb7ad46337 in timer_db_update (ticks=<optimized out>,
>>> param=<optimized out>) at subscribe.c:1341
>>> no_lock = <optimized out>
>>> __FUNCTION__ = "timer_db_update"
>>> #7 0x000055f7f094093c in handle_timer_job () at timer.c:730
>>> t = 0x7fdb81531488
>>> l = <optimized out>
>>> __FUNCTION__ = "handle_timer_job"
>>> #8 0x000055f7f0a72d03 in handle_io (idx=<optimized out>,
>>> event_type=<optimized out>, fm=<optimized out>) at net/net_udp.c:265
>>> n = <optimized out>
>>> read = -1
>>> #9 io_wait_loop_epoll (h=<optimized out>, t=<optimized out>,
>>> repeat=<optimized out>) at net/../io_wait_loop.h:284
>>> ep_event = {events = 4040413608, data = {ptr =
>>> 0xf093fa5f000055f7, fd = 22007, u32 = 22007, u64 =
>>> 17335474676608030199}}
>>> ret = <optimized out>
>>> n = 1
>>> r = 3
>>> e = 0x7fdb8923a428
>>> fd = <optimized out>
>>> i = <optimized out>
>>> #10 udp_start_processes (chd_rank=<optimized out>,
>>> startup_done=<optimized out>) at net/net_udp.c:389
>>>
>>> no_lock = <optimized out>
>>> __FUNCTION__ = "timer_db_update"
>>> #7 0x000055f7f094093c in handle_timer_job () at timer.c:730
>>> t = 0x7fdb81531488
>>> l = <optimized out>
>>> __FUNCTION__ = "handle_timer_job"
>>> #8 0x000055f7f0a72d03 in handle_io (idx=<optimized out>,
>>> event_type=<optimized out>, fm=<optimized out>) at net/net_udp.c:265
>>> n = <optimized out>
>>> read = -1
>>> #9 io_wait_loop_epoll (h=<optimized out>, t=<optimized out>,
>>> repeat=<optimized out>) at net/../io_wait_loop.h:284
>>> ep_event = {events = 4040413608, data = {ptr =
>>> 0xf093fa5f000055f7, fd = 22007, u32 = 22007, u64 =
>>> 17335474676608030199}}
>>> ret = <optimized out>
>>> n = 1
>>> r = 3
>>> e = 0x7fdb8923a428
>>> fd = <optimized out>
>>> i = <optimized out>
>>> #10 udp_start_processes (chd_rank=<optimized out>,
>>> startup_done=<optimized out>) at net/net_udp.c:389
>>> si = <optimized out>
>>> pid = <optimized out>
>>> i = <optimized out>
>>> __FUNCTION__ = "udp_start_processes"
>>> #11 0x000055f7f08a290c in main_loop () at main.c:767
>>> startup_done = 0x0
>>> chd_rank = 20
>>> chd_rank = 20
>>> #12 main (argc=<optimized out>, argv=<optimized out>) at main.c:1413
>>> cfg_stream = <optimized out>
>>> c = -1
>>> r = <optimized out>
>>> tmp = 0x7ffc78fd5f05 ""
>>> tmp_len = <optimized out>
>>> port = <optimized out>
>>> proto = <optimized out>
>>> protos_no = <optimized out>
>>> options = 0x55f7f0ac3b18 "f:cCm:M:b:l:n:N:rRvdDFEVhw:t:u:g:P:G:W:o:"
>>> ret = -1
>>> seed = 1329389680
>>>
>>> i = <optimized out>
>>> __FUNCTION__ = "udp_start_processes"
>>> #11 0x000055f7f08a290c in main_loop () at main.c:767
>>> startup_done = 0x0
>>> chd_rank = 20
>>> chd_rank = 20
>>> #12 main (argc=<optimized out>, argv=<optimized out>) at main.c:1413
>>> cfg_stream = <optimized out>
>>> c = -1
>>> r = <optimized out>
>>> tmp = 0x7ffc78fd5f05 ""
>>> tmp_len = <optimized out>
>>> port = <optimized out>
>>> proto = <optimized out>
>>> protos_no = <optimized out>
>>> options = 0x55f7f0ac3b18 "f:cCm:M:b:l:n:N:rRvdDFEVhw:t:u:g:P:G:W:o:"
>>> ret = -1
>>> seed = 1329389680
>>> rfd = <optimized out>
>>> __FUNCTION__ = "main"
>>>
>>> Thread 1 (Thread 0x7fdb8a7b4700 (LWP 3377)):
>>> #0 0x00007fdb8054f2ae in ?? () from
>>> /usr/lib/x86_64-linux-gnu/libmariadbclient.so.18
>>> #1 0x00007fdb805512ba in mysql_stmt_execute () from
>>> /usr/lib/x86_64-linux-gnu/libmariadbclient.so.18
>>> #2 0x00007fdb80b30b59 in wrapper_single_mysql_stmt_execute
>>> (conn=0x7fdb89247990, stmt=0x55f7f23e6778) at dbase.c:148
>>> #3 db_mysql_do_prepared_query (conn=conn at entry=0x7fdb89247990,
>>> v=v at entry=0x7ffc78fd4990, n=n at entry=1, uv=uv at entry=0x0, un=un at entry=0,
>>> query=0x7fdb80d4e5e0 <query_hold$
>>> #4 0x00007fdb80b37cd8 in db_mysql_delete (_h=0x7fdb89247990,
>>> _k=0x7ffc78fd48a0, _o=0x7ffc78fd4890, _v=0x7ffc78fd4990, _n=1) at
>>> dbase.c:1316
>>> #5 0x00007fdb7ad459c3 in update_db_subs (db=0x7fdb89247990,
>>> dbf=dbf at entry=0x7fdb7af7bbe0 <pa_dbf>, hash_table=<optimized out>,
>>> htable_size=<optimized out>, no_lock=no$
>>> #6 0x00007fdb7ad46337 in timer_db_update (ticks=<optimized out>,
>>> param=<optimized out>) at subscribe.c:1341
>>> #7 0x000055f7f094093c in handle_timer_job () at timer.c:730
>>> #8 0x000055f7f0a72d03 in handle_io (idx=<optimized out>,
>>> event_type=<optimized out>, fm=<optimized out>) at net/net_udp.c:265
>>> #9 io_wait_loop_epoll (h=<optimized out>, t=<optimized out>,
>>> repeat=<optimized out>) at net/../io_wait_loop.h:284
>>> #10 udp_start_processes (chd_rank=<optimized out>,
>>> startup_done=<optimized out>) at net/net_udp.c:389
>>> #11 0x000055f7f08a290c in main_loop () at main.c:767
>>> #12 main (argc=<optimized out>, argv=<optimized out>) at main.c:1413
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
More information about the Users
mailing list