Bug #74340 Crash on status query when connected to fabric
Submitted: 12 Oct 2014 14:48 Modified: 20 Jul 2015 16:21
Reporter: Daniël van Eeden (OCA) Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: Command-line Clients Severity:S3 (Non-critical)
Version:5.6.21, 5.7.5-m15 OS:Any
Assigned to: CPU Architecture:Any
Tags: crash, fabric

[12 Oct 2014 14:48] Daniël van Eeden
Description:
When connected to 1.5.2-fabric a '\s' results in a crash of the mysql client.

$ ./bin/mysql -P 32275 -h 127.0.0.1 -u admin -pXXXXXXXX
mysql: [Warning] Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 5
Server version: 1.5.2-fabric

Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> \s
--------------
./bin/mysql  Ver 14.14 Distrib 5.7.5-m15, for linux-glibc2.5 (x86_64) using  EditLine wrapper

Connection id:		5
Segmentation fault (core dumped)

How to repeat:
Run 'status' command against fabric
[12 Oct 2014 14:54] Daniël van Eeden
Program terminated with signal SIGSEGV, Segmentation fault.
#0  mysql_fetch_row (res=0x0) at /export/home/pb2/build/sb_0-13248356-1411047660.02/mysql-5.7.5-m15/sql-common/client.c:5074
5074	/export/home/pb2/build/sb_0-13248356-1411047660.02/mysql-5.7.5-m15/sql-common/client.c: No such file or directory.
(gdb) bt
#0  mysql_fetch_row (res=0x0) at /export/home/pb2/build/sb_0-13248356-1411047660.02/mysql-5.7.5-m15/sql-common/client.c:5074
#1  0x00000000004122b1 in com_status (buffer=<optimized out>, line=<optimized out>)
    at /export/home/pb2/build/sb_0-13248356-1411047660.02/mysql-5.7.5-m15/client/mysql.cc:5072
#2  0x0000000000414277 in add_line (truncated=<optimized out>, ml_comment=<optimized out>, in_string=<optimized out>, 
    line_length=<optimized out>, line=<optimized out>, buffer=...)
    at /export/home/pb2/build/sb_0-13248356-1411047660.02/mysql-5.7.5-m15/client/mysql.cc:2512
#3  read_and_execute (interactive=<optimized out>)
    at /export/home/pb2/build/sb_0-13248356-1411047660.02/mysql-5.7.5-m15/client/mysql.cc:2286
#4  0x000000000041579f in main (argc=11, argv=0x1714220)
    at /export/home/pb2/build/sb_0-13248356-1411047660.02/mysql-5.7.5-m15/client/mysql.cc:1392
[17 Jul 2015 14:15] Georgi Kodinov
MySQL fabric has its own command line tools section.