MySQL Forums
Forum List  »  Connector/C (libmysql)

SIGSEGV in vio_read_buff
Posted by: Robin Rowe
Date: February 19, 2014 12:58AM

I have a game server that talks to a MySQL cluster via C connector. I'm getting a segfault inside libmysqlclient pretty consistently. Happens as soon as I put a lot of load on the cluster. Looking at the backtrace, I notice that vio_read_buff has buf=0x0. Should it be? Is this a clue?

What's my next step in figuring this out?

mysql-cluster-gpl-7.3.3/debug

cmake -DWITH_NDBCLUSTER_STORAGE_ENGINE=ON -DWITH_NDB_JAVA=OFF -DCMAKE_BUILD_TYPE=Debug ..


Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fff84748700 (LWP 16883)]
__memcpy_ssse3_back () at ../sysdeps/x86_64/multiarch/memcpy-ssse3-back.S:2148
2148 ../sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: No such file or directory.
(gdb) bt
#0 __memcpy_ssse3_back ()
at ../sysdeps/x86_64/multiarch/memcpy-ssse3-back.S:2148
#1 0x00007ffff67c7df0 in vio_read_buff (vio=0x7ffed01c6850, buf=0x0, size=4)
at /root/install/mysql-cluster-gpl-7.3.3/vio/viosocket.c:166
#2 0x00007ffff67a199f in net_read_raw_loop (net=0x7ffed01c4350, count=4)
at /root/install/mysql-cluster-gpl-7.3.3/sql/net_serv.cc:663
#3 0x00007ffff67a1aad in net_read_packet_header (net=0x7ffed01c4350)
at /root/install/mysql-cluster-gpl-7.3.3/sql/net_serv.cc:751
#4 0x00007ffff67a1b63 in net_read_packet (net=0x7ffed01c4350,
complen=0x7fff847470a8)
at /root/install/mysql-cluster-gpl-7.3.3/sql/net_serv.cc:810
#5 0x00007ffff67a1cf5 in my_net_read (net=0x7ffed01c4350)
at /root/install/mysql-cluster-gpl-7.3.3/sql/net_serv.cc:888
#6 0x00007ffff6790650 in cli_safe_read (mysql=0x7ffed01c4350)
at /root/install/mysql-cluster-gpl-7.3.3/sql-common/client.c:620
#7 0x00007ffff67988b4 in cli_read_query_result (mysql=0x7ffed01c4350)
at /root/install/mysql-cluster-gpl-7.3.3/sql-common/client.c:4069
#8 0x00007ffff6798e81 in mysql_real_query (mysql=0x7ffed01c4350,
query=0x7ffed41aa628 "CALL New_Hand(148064, @a)", length=25)
at /root/install/mysql-cluster-gpl-7.3.3/sql-common/client.c:4157
#9 0x00007ffff6787db7 in mysql_query (mysql=0x7ffed01c4350,
query=0x7ffed41aa628 "CALL New_Hand(148064, @a)")
at /root/install/mysql-cluster-gpl-7.3.3/libmysql/libmysql.c:700
#10 0x00000000005934c2 in RunMysqlQuery (
query=0x7ffed41aa628 "CALL New_Hand(148064, @a)", this=<optimized out>)
at MySqlQuery.h:60
#11 MySqlQuery::QuerySproc (this=0x7fff84747310, qNo=<optimized out>,
call=0x7ffed41aa628 "CALL New_Hand(148064, @a)",
select=0x71f930 "Select @a") at MySqlQuery.cpp:221
---Type <return> to continue, or q <return> to quit---

Thanks!

Robin

Options: ReplyQuote


Subject
Views
Written By
Posted
SIGSEGV in vio_read_buff
2666
February 19, 2014 12:58AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.