Bug #15885 | Uninitialised variable "character_set_client" | ||
---|---|---|---|
Submitted: | 20 Dec 2005 10:41 | Modified: | 24 Dec 2005 13:50 |
Reporter: | Magnus Blåudd | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | MySQL Server: Prepared statements | Severity: | S3 (Non-critical) |
Version: | 5.0.17-debug | OS: | Linux (linux) |
Assigned to: | CPU Architecture: | Any |
[20 Dec 2005 10:41]
Magnus Blåudd
[20 Dec 2005 13:53]
Aleksey Kishkin
I cannot reproduce it: mysql> create table t1 (a varchar(40)); Query OK, 0 rows affected (0.00 sec) mysql> insert into t1 values ('C1'),('C2'),('R1'),('C3'),('R2'),('R3'); Query OK, 6 rows affected (0.00 sec) Records: 6 Duplicates: 0 Warnings: 0 mysql> prepare stmt1 from 'select a from t1 where a rlike ? order by a'; Query OK, 0 rows affected (0.00 sec) Statement prepared mysql> set @a="^C.*"; Query OK, 0 rows affected (0.00 sec) mysql> execute stmt1 using @a; +------+ | a | +------+ | C1 | | C2 | | C3 | +------+ 3 rows in set (0.00 sec) mysql> set @a="^R.*"; Query OK, 0 rows affected (0.00 sec) mysql> execute stmt1 using @a; +------+ | a | +------+ | R1 | | R2 | | R3 | +------+ 3 rows in set (0.01 sec) mysql> deallocate prepare stmt1; Query OK, 0 rows affected (0.00 sec) mysql> drop table t1; Query OK, 0 rows affected (0.00 sec) mysql>
[21 Dec 2005 11:48]
Aleksey Kishkin
mysql> select version(); +--------------+ | version() | +--------------+ | 5.0.17-debug | +--------------+ 1 row in set (0.00 sec) mysql> create table t1 (a varchar(40)); Query OK, 0 rows affected (0.01 sec) mysql> insert into t1 values ('C1'),('C2'),('R1'),('C3'),('R2'),('R3'); Query OK, 6 rows affected (0.01 sec) Records: 6 Duplicates: 0 Warnings: 0 mysql> prepare stmt1 from 'select a from t1 where a rlike ? order by a'; Query OK, 0 rows affected (0.00 sec) Statement prepared mysql> set @a="^C.*"; Query OK, 0 rows affected (0.00 sec) mysql> execute stmt1 using @a; ERROR 2013 (HY000): Lost connection to MySQL server during query mysql> set @a="^R.*"; ERROR 2006 (HY000): MySQL server has gone away No connection. Trying to reconnect... ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (111) ERROR: Can't connect to the server mysql> execute stmt1 using @a; No connection. Trying to reconnect... ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (111) ERROR: Can't connect to the server mysql> deallocate prepare stmt1; No connection. Trying to reconnect... ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (111) ERROR: Can't connect to the server
[21 Dec 2005 11:50]
Aleksey Kishkin
mysqld got signal 11; This could be because you hit a bug. It is also possible that this binary or one of the libraries it was linked against is corrupt, improperly built, or misconfigured. This error can also be caused by malfunctioning hardware. We will try our best to scrape up some info that will hopefully help diagnose the problem, but since we have already crashed, something is definitely wrong and this may fail. key_buffer_size=8388600 read_buffer_size=131072 max_used_connections=1 max_connections=100 threads_connected=1 It is possible that mysqld could use up to key_buffer_size + (read_buffer_size + sort_buffer_size)*max_connections = 225791 K bytes of memory Hope that's ok; if not, decrease some variables in the equation. thd=0x8bd0d88 Attempting backtrace. You can use the following information to find out where mysqld died. If you see no messages after this, something went terribly wrong... Cannot determine thread, fp=0xbe5fdcb8, backtrace may not be correct. Stack range sanity check OK, backtrace follows: 0x8156d98 0x40050715 0x80ebc02 0x80ec148 0x8100331 0x8118d57 0x81c8a52 0x81a8a09 0x819a5a2 0x819db2f 0x8199a36 0x816c15f 0x81c0eb0 0x81bfb14 0x816c1a8 0x817297a 0x816a93a 0x816a31d 0x8169620 0x4004b4eb 0x401b7b0a New value of fp=(nil) failed sanity check, terminating stack trace! Please read http://dev.mysql.com/doc/mysql/en/Using_stack_trace.html and follow instructions on how to resolve the stack trace. Resolved stack trace is much more helpful in diagnosing the problem, so please do resolve it Trying to get some variables. Some pointers may be invalid and cause the dump to abort... thd->query at 0x8bf5728 = select a from t1 where a rlike ? order by a thd->thread_id=1 The manual page at http://www.mysql.com/doc/en/Crashing.html contains information that should help you find out what is causing the crash.
[21 Dec 2005 11:55]
Aleksey Kishkin
0x8156d98 handle_segfault + 368 0x40050715 _end + 934082565 0x80ebc02 _ZNK10Item_param13query_val_strEP6String + 326 0x80ec148 _ZN10Item_param5printEP6String + 124 0x8100331 _ZN9Item_func8print_opEP6String + 303 0x8118d57 _ZN15Item_func_regex5printEP6String + 17 0x81c8a52 _Z11print_whereP4ItemPKc + 90 0x81a8a09 _Z13optimize_condP4JOINP4ItemP4ListI13st_table_listEPNS1_11cond_resultE + 121 0x819a5a2 _ZN4JOIN8optimizeEv + 592 0x819db2f _Z12mysql_selectP3THDPPP4ItemP13st_table_listjR4ListIS1_ES2_jP8st_orderSB_S2_SB_mP13select_resultP18st_select_lex_unitP13st_sel + 395 0x8199a36 _Z13handle_selectP3THDP6st_lexP13select_resultm + 194 0x816c15f _Z21mysql_execute_commandP3THD + 1505 0x81c0eb0 _ZN18Prepared_statement7executeEP6Stringb + 714 0x81bfb14 _Z22mysql_sql_stmt_executeP3THD + 366 0x816c1a8 _Z21mysql_execute_commandP3THD + 1578 0x817297a _Z11mysql_parseP3THDPcj + 312 0x816a93a _Z16dispatch_command19enum_server_commandP3THDPcj + 1554 0x816a31d _Z10do_commandP3THD + 437 0x8169620 handle_one_connection + 768 0x4004b4eb _end + 934061531 0x401b7b0a _end + 935554042
[24 Dec 2005 13:50]
Sergei Golubchik
Isn't that a duplicate of BUG#15871 ?