mysql_test_client_nonblock crashes built on ubuntu 15.10

Description

tests/mysql_client_test crashes (repeatable on 2 ubuntu 15.10 64bit):

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 Program received signal SIGSEGV, Segmentation fault. 0x00007ffff6ec2cf9 in ?? () from /lib/x86_64-linux-gnu/libgcc_s.so.1 (gdb) where #0 0x00007ffff6ec2cf9 in ?? () from /lib/x86_64-linux-gnu/libgcc_s.so.1 #1 0x00007ffff6ec4618 in _Unwind_Backtrace () from /lib/x86_64-linux-gnu/libgcc_s.so.1 #2 0x00007ffff71e0646 in __GI___backtrace (array=<optimized out>, size=10) at ../sysdeps/x86_64/backtrace.c:109 #3 0x00000000004a71be in sf_malloc (size=7) at /home/sanja/maria/git/server/mysys/safemalloc.c:126 #4 0x0000000000498d69 in my_malloc (size=7, my_flags=16) at /home/sanja/maria/git/server/mysys/my_malloc.c:41 #5 0x0000000000499234 in my_strdup (from=0x5386bf "latin1", my_flags=16) at /home/sanja/maria/git/server/mysys/my_malloc.c:141 #6 0x000000000047773f in mysql_init_character_set (mysql=0x9e8750) at /home/sanja/maria/git/server/sql-common/client.c:2280 #7 0x000000000047a560 in mysql_real_connect (mysql=0x9e8750, host=0x538d1c "localhost", user=0x9e4e77 "root", passwd=0x9e5010 "", db=0x51f491 "test", port=16000, unix_socket=0x9e4e31 "/home/sanja/maria/git/server/mysql-test/var/tmp/mysqld.1.sock", client_flag=0) at /home/sanja/maria/git/server/sql-common/client.c:3425 #8 0x000000000047df80 in mysql_real_connect_start_internal (d=0x7fffffffdc00) at /home/sanja/maria/git/server/sql-common/mysql_async.c:411 #9 0x00000000004a0fd1 in my_context_spawn (c=0x0, f=0x5, d=0x7ffff7de899d <_dl_fixup+237>) at /home/sanja/maria/git/server/mysys/my_context.c:205 #10 0x00000000004a8aeb in my_thread_var_dbug () at /home/sanja/maria/git/server/mysys/my_thr_init.c:464 Backtrace stopped: previous frame inner to this frame (corrupt stack?) (gdb)

The place of crash can change depends if you debug test the program or not.

Environment

None

Status

Assignee

Oleksandr Byelkin

Reporter

Oleksandr Byelkin

Labels

None

External issue ID

None

External issue ID

None

Components

Fix versions

Affects versions

10.0
10.1
5.5

Priority

Critical