Hi all,<div><br></div><div>i am experiencing random segfaults on different asterisk 1.6.2.x (9-10) versions - always 64bit plattform - mostly centos 5.5 - one debian version.</div><div><br></div><div>the backtrace does look like this</div>
<div><br></div><div><div>#0 0x000072656c6c6143 in ?? ()</div><div>#1 0x00002aaaaaf22a91 in ?? () from /usr/lib64/mysql/libmysqlclient.so.15</div><div>#2 0x00002aaaaaf22e09 in my_net_read () from /usr/lib64/mysql/libmysqlclient.so.15</div>
<div>#3 0x00002aaaaaf1c6e2 in cli_safe_read () from /usr/lib64/mysql/libmysqlclient.so.15</div><div>#4 0x00002aaaaaf1d7d9 in ?? () from /usr/lib64/mysql/libmysqlclient.so.15</div><div>#5 0x00002aaaaaf1bd1e in mysql_real_query () from /usr/lib64/mysql/libmysqlclient.so.15</div>
<div>#6 0x00002aaab104397f in mysql_init () from /usr/lib/asterisk/modules/app_addon_sql_mysql.so</div><div>#7 0x00000000004b288d in pbx_exec (c=0x2aaaac074570, app=0x2aaab443d180, data=0x4062f990) at pbx.c:1348</div><div>
#8 0x00000000004bdcdc in pbx_extension_helper (c=0x2aaaac074570, con=<value optimized out>, context=0x2aaaac074930 "enterPICA", exten=0x2aaaac074980 "118899", priority=15, label=0x0, </div><div>
callerid=0x2aaaac07f210 "00436763621526", action=E_SPAWN, found=0x4063200c, combined_find_spawn=1) at pbx.c:3711</div><div>#9 0x00000000004c24e2 in ast_spawn_extension (c=0x2aaaac074570, args=0x0) at pbx.c:4181</div>
<div>#10 __ast_pbx_run (c=0x2aaaac074570, args=0x0) at pbx.c:4275</div><div>#11 0x00000000004c3abb in pbx_thread (data=0x2aaab4498c40) at pbx.c:4562</div><div>#12 0x00000000004fdfbc in dummy_start (data=<value optimized out>) at utils.c:968</div>
<div>#13 0x000000384880673d in start_thread () from /lib64/libpthread.so.0</div><div>#14 0x00000038480d3d1d in clone () from /lib64/libc.so.6</div></div><div><br></div><div>I do make heavy use of the MYSQL functions - in the database there are also some stored procedures and triggers and functions - also there are some multi resultset results in my queries (where i only use the first resultset)</div>
<div><br></div><div>I now don't know exactly - will this be more a libmysqlclient bug - or is it more a asterisk bug.</div><div><br></div><div>The segfault does always show the same backtrace - so it should be more a libmysql specific bug - or i am wrong ?</div>
<div><br></div><div>Should i do compile the libmysqlclient for myself to get the debugging symbols ?</div><div><br></div><div>best regards,</div><div>Wolfgang</div>