[asterisk-dev] segfault within libmysqlclient

Wolfgang Pichler wpichler at yosd.at
Mon Aug 30 02:38:53 CDT 2010


Hi all,

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.

the backtrace does look like this

#0  0x000072656c6c6143 in ?? ()
#1  0x00002aaaaaf22a91 in ?? () from /usr/lib64/mysql/libmysqlclient.so.15
#2  0x00002aaaaaf22e09 in my_net_read () from
/usr/lib64/mysql/libmysqlclient.so.15
#3  0x00002aaaaaf1c6e2 in cli_safe_read () from
/usr/lib64/mysql/libmysqlclient.so.15
#4  0x00002aaaaaf1d7d9 in ?? () from /usr/lib64/mysql/libmysqlclient.so.15
#5  0x00002aaaaaf1bd1e in mysql_real_query () from
/usr/lib64/mysql/libmysqlclient.so.15
#6  0x00002aaab104397f in mysql_init () from
/usr/lib/asterisk/modules/app_addon_sql_mysql.so
#7  0x00000000004b288d in pbx_exec (c=0x2aaaac074570, app=0x2aaab443d180,
data=0x4062f990) at pbx.c:1348
#8  0x00000000004bdcdc in pbx_extension_helper (c=0x2aaaac074570, con=<value
optimized out>, context=0x2aaaac074930 "enterPICA", exten=0x2aaaac074980
"118899", priority=15, label=0x0,
    callerid=0x2aaaac07f210 "00436763621526", action=E_SPAWN,
found=0x4063200c, combined_find_spawn=1) at pbx.c:3711
#9  0x00000000004c24e2 in ast_spawn_extension (c=0x2aaaac074570, args=0x0)
at pbx.c:4181
#10 __ast_pbx_run (c=0x2aaaac074570, args=0x0) at pbx.c:4275
#11 0x00000000004c3abb in pbx_thread (data=0x2aaab4498c40) at pbx.c:4562
#12 0x00000000004fdfbc in dummy_start (data=<value optimized out>) at
utils.c:968
#13 0x000000384880673d in start_thread () from /lib64/libpthread.so.0
#14 0x00000038480d3d1d in clone () from /lib64/libc.so.6

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)

I now don't know exactly - will this be more a libmysqlclient bug - or is it
more a asterisk bug.

The segfault does always show the same backtrace - so it should be more a
libmysql specific bug - or i am wrong ?

Should i do compile the libmysqlclient for myself to get the debugging
symbols ?

best regards,
Wolfgang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20100830/ea0c455b/attachment.htm 


More information about the asterisk-dev mailing list