Hey All,<div>I'm running opensips 1.8.2 svnrevision: 2:9628M</div><div><br></div><div>I'm getting some random crashes. Load isn't terribly high on these boxes and I can't figure out what specifically is causing the crash. </div>
<div><br></div><div>I'm seeing this in the logs:</div><div><div>/usr/sbin/opensips[9875]: ERROR:db_mysql:db_mysql_val2str: destination buffer too short</div><div>/usr/sbin/opensips[9875]: ERROR:core:db_print_values: Error while converting value to string</div>
<div>/usr/sbin/opensips[9875]: ERROR:core:db_do_insert: error while preparing insert operation</div><div>/usr/sbin/opensips[9875]: ERROR:core:ql_timer_routine: failed to insert rows to DB</div><div>/usr/sbin/opensips[9848]: CRITICAL:core:sig_alarm_abort: BUG - shutdown timeout triggered, dying...</div>
</div><div><br></div><div>And I have a bunch of core files. I think this is the one associated to the above log files from the looks of the timestamp:</div><div><div>#0 0x00007f850eb4a8a5 in raise () from /lib64/libc.so.6</div>
<div>No symbol table info available.</div><div>#1 0x00007f850eb4c085 in abort () from /lib64/libc.so.6</div><div>No symbol table info available.</div><div>#2 0x000000000042c245 in sig_alarm_abort (signo=<value optimized out>) at main.c:439</div>
<div> __FUNCTION__ = "sig_alarm_abort"</div><div>#3 <signal handler called></div><div>No symbol table info available.</div><div>#4 0x00000000004d2bfe in fm_status (qm=<value optimized out>) at mem/f_malloc.c:612</div>
<div> f = 0x7f7f2f789ec0</div><div> i = 189540279</div><div> j = <value optimized out></div><div> h = <value optimized out></div><div> unused = 0</div><div> size = 31059075021264</div>
<div> __FUNCTION__ = "fm_status"</div><div>#5 0x000000000042c42f in cleanup (show_status=<value optimized out>) at main.c:380</div><div> __FUNCTION__ = "cleanup"</div><div>#6 0x000000000042cd8b in handle_sigs () at main.c:549</div>
<div> chld = <value optimized out></div><div> chld_status = 139</div><div> overall_status = 139</div><div> i = <value optimized out></div><div> do_exit = 1</div><div> __FUNCTION__ = "handle_sigs"</div>
<div>#7 0x0000000000430bd5 in main_loop (argc=<value optimized out>, argv=<value optimized out>) at main.c:1008</div><div> i = <value optimized out></div><div> pid = <value optimized out></div>
<div> si = <value optimized out></div><div> startup_done = <value optimized out></div><div> chd_rank = 32</div><div> rc = <value optimized out></div><div> load_p = 0x7f7f244bdb08</div>
<div>#8 main (argc=<value optimized out>, argv=<value optimized out>) at main.c:1541</div><div> cfg_log_stderr = <value optimized out></div><div> cfg_stream = <value optimized out></div>
<div> c = <value optimized out></div><div> r = <value optimized out></div><div> tmp = 0x7fffbd27e8f0 ""</div></div><div><br></div><div><div><br></div><div><br></div><div>I'm also seeing these associated to db_mysql.so:</div>
<div>#0 0x00000000004d3e84 in fm_remove_free (qm=0x7f7f241d8000, size=1304) at mem/f_malloc.c:172</div><div> pf = 0x0</div><div> hash = 163</div><div>#1 fm_malloc (qm=0x7f7f241d8000, size=1304) at mem/f_malloc.c:383</div>
<div> frag = 0x7f7f2f737180</div><div> n = <value optimized out></div><div> hash = <value optimized out></div><div> __FUNCTION__ = "fm_malloc"</div><div>#2 0x0000000000517d86 in shm_malloc (entry=0x7f7f29b44a00, row=0x7f8501d1a860, ins_rows=0x7fffbd27bf98) at db/../evi/../mem/shm_mem.h:202</div>
<div> p = <value optimized out></div><div>#3 ql_row_add (entry=0x7f7f29b44a00, row=0x7f8501d1a860, ins_rows=0x7fffbd27bf98) at db/db_insertq.c:257</div><div> val_size = 1298</div><div> i = <value optimized out></div>
<div> len = <value optimized out></div><div> no_rows = 0</div><div> pos = <value optimized out></div><div> shm_row = <value optimized out></div><div> __FUNCTION__ = "ql_row_add"</div>
<div>#4 0x00007f85066e5c8e in db_mysql_do_prepared_query (conn=0x7f8506c666c0, v=0x7f8501d1a860, n=33, uv=<value optimized out>, un=0, query=0x7f85069007b0) at dbase.c:554</div><div> i = <value optimized out></div>
<div> j = <value optimized out></div><div> code = <value optimized out></div><div> cols = <value optimized out></div></div><div><br></div><div><br></div><div><br></div><div>Please let me know if you have any ideas as to what may be causing these or if you need any further debug info?</div>
<div><br></div><div>Thanks,</div><div>Brett</div><div><br></div>