Bug #6767 SELECT on key-fields crashes server when started with --debug
Submitted: 23 Nov 2004 11:18 Modified: 23 Nov 2004 14:50
Reporter: Hakan Küçükyılmaz Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server Severity:S2 (Serious)
Version:5.0 alpha debug OS:Linux (Linux)
Assigned to: Sergei Golubchik CPU Architecture:Any

[23 Nov 2004 11:18] Hakan Küçükyılmaz
Description:
SELECT on key-fields crashes server when started with --debug

How to repeat:
Start following test with: ./mysql-test-run --debug server_crash

###################### server_crash.test######################
#                                                            #
#  test for 2013                                             #
#                                                            #
##############################################################

USE test;

SET GLOBAL sql_mode="ANSI_QUOTES,NO_BACKSLASH_ESCAPES,TRADITIONAL,IGNORE_SPACE";
SET SESSION sql_mode="ANSI_QUOTES,NO_BACKSLASH_ESCAPES,TRADITIONAL,IGNORE_SPACE";

--disable_warnings
DROP TABLE IF EXISTS t1;
--enable_warnings

CREATE TABLE t1(
  a varchar(4),
  b varchar(120),
  c varchar(12),
  d char(1),
  PRIMARY KEY (a, b, c),
  KEY "t1~1" (c),
  KEY "t1~2" (b)
) ENGINE = InnoDB DEFAULT CHARSET=latin1;

SELECT c FROM t1 WHERE a = '' AND b = '';

DROP TABLE t1;
[23 Nov 2004 14:50] Sergei Golubchik
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html

Additional info:

fixed in 5.0.2