<div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Further to my previous email I also see a lot of failed request just before the crash </div><div>like</div><div>Oct 9 21:43:03 myopensips /usr/local/sbin/opensips[1449]: CRITICAL:db_mysql:wrapper_single_mysql_real_query: driver error (1213): Deadlock found when tryi<br>ng to get lock; try restarting transaction<br>Oct 9 21:43:03 myopensips /usr/local/sbin/opensips[1449]: ERROR:core:db_do_update: error while submitting query<br>Oct 9 21:43:03 myopensips /usr/local/sbin/opensips[1449]: ERROR:presence:update_presentity: updating published info in database<br>Oct 9 21:43:03 myopensips /usr/local/sbin/opensips[1449]: ERROR:presence:handle_publish: when updating presentity<br>Oct 9 21:43:03 myopensips /usr/local/sbin/opensips[1457]: CRITICAL:db_mysql:wrapper_single_mysql_stmt_execute: driver error (1213): Deadlock found when tr<br>ying to get lock; try restarting transaction<br>Oct 9 21:43:03 myopensips /usr/local/sbin/opensips[1457]: ERROR:presence:delete_db_subs: sql delete failed<br>Oct 9 21:43:03 myopensips /usr/local/sbin/opensips[1457]: ERROR:presence:update_subscription: deleting subscription record from database<br>Oct 9 21:43:03 myopensips /usr/local/sbin/opensips[1457]: ERROR:presence:handle_subscribe: in update_subscription</div><div><br></div><div>could this a cause of the crash? I have tried to read the core dump but cant find anything there. it is like </div><div><br></div><div> msg = 0x7efd794cf2a0<br> t = 0x0<br> _c = <optimized out><br> reply_c = 0x0<br> request_c = 0x0<br> st = 9106161<br> ret = <optimized out><br> requested_exp = 0<br> enforced_exp = 0<br> val = {n = 4, s = {s = 0x4 <Address 0x4 out of bounds>, len = 0}}<br> l = <optimized out><br> p = <optimized out><br> forced_binding_buf = "\000\000\000\000\000\000\000\000\066b69c11f2cbb12551371135d\000\000\000\000\000\000\000\000\240\362Ly\375~\000\000\020\220\025.<br> forced_binding = {s = 0x0, len = 0}<br> binding_uri = <optimized out><br> __FUNCTION__ = "save"<br>#12 0x000000000042da49 in do_action (a=a@entry=0x7efd794afdd8, msg=msg@entry=0x7efd794cf2a0) at action.c:1862<br> increment = <optimized out><br> decrement = <optimized out><br> val_number = <optimized out><br> j = <optimized out><br> val_s = {s = 0x7efd00000069 <Address 0x7efd00000069 out of bounds>, len = 3440}<br> cdb_reply = 0x7efd00000004<br> aux = {s = 0x20 <Address 0x20 out of bounds>, len = 0}<br> i = <optimized out><br> key_number = 0<br> it = <optimized out><br> avp_val = <optimized out><br> avp_name = {n = 105, s = {s = 0x7efd00000069 <Address 0x7efd00000069 out of bounds>, len = 3440}}<br> avp_type = 38183<br> ret = -5</div><div><br></div><div>I cant paste the whole dump here but let me know if any of the dev want to have a look please.</div><div><br></div><div>Thank you <br><br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Oct 10, 2018 at 11:57 AM J E H A N Z A I B <<a href="mailto:jehanzaib.kiani@gmail.com">jehanzaib.kiani@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hi team,</div><div><br></div><div>Opensips (2.3.1) crashed a few times now and I can not figure out the reason of it. </div><div>Can someone help me here please? </div><div>Here is what I see in the logs before it crashes.</div><div><br></div><div>Oct 9 21:43:10 myopensips kernel: opensips[1454]: segfault at 0 ip 00000000005319a2 sp 00007fffed157c70 error 6 in opensips[400000+27c000]<br>Oct 9 21:43:10 myopensips /usr/local/sbin/opensips[1471]: CRITICAL:core:receive_fd: EOF on 32<br>Oct 9 21:43:10 myopensips /usr/local/sbin/opensips[1313]: INFO:core:handle_sigs: child process 1454 exited by a signal 11<br>Oct 9 21:43:10 myopensips /usr/local/sbin/opensips[1313]: INFO:core:handle_sigs: core was generated<br>Oct 9 21:43:10 myopensips /usr/local/sbin/opensips[1313]: INFO:core:handle_sigs: terminating due to SIGCHLD</div><div><br></div><div>Thank you <br><br></div><div class="m_-5244276402210116789gmail_signature" dir="ltr"><div></div></div></div></div></div>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div>Regards,</div>
<div>Jehanzaib</div></div>