Bug #46858 | Not using "thr_lock_data_init" in the plugin let the serve crash. | ||
---|---|---|---|
Submitted: | 21 Aug 2009 14:29 | Modified: | 7 Sep 2009 10:08 |
Reporter: | Horst Hunger | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Storage Engine API | Severity: | S2 (Serious) |
Version: | 5.1, azalea | OS: | Linux |
Assigned to: | CPU Architecture: | Any |
[21 Aug 2009 14:29]
Horst Hunger
[21 Aug 2009 14:31]
Horst Hunger
see also bug#46851.
[25 Aug 2009 20:00]
Sveta Smirnova
Thank you for the report. Verified as described.
[1 Sep 2009 19:48]
Sveta Smirnova
Same problem exists in 5.1 To repeat: modify CSV engine as described, then modify test tse_insert_simple as follows and run it: $cat t/bug46858.test # Test of storage engine TSE as plugin. # # Creation: # 2009-08-04 Hunger # #INSTALL PLUGIN tse SONAME 'ha_tse.so'; CREATE TABLE t1 (c1 char(20) not null, c2 int not null) ENGINE csv; INSERT INTO t1 VALUES ("qwertz",1); INSERT INTO t1 VALUES ("asdfgh",2); INSERT INTO t1 VALUES ("yxcvbn",3); INSERT INTO t1 VALUES ("QWERTZ",4); INSERT INTO t1 VALUES ("ASDFGH",5); INSERT INTO t1 VALUES ("YXCVBN",6); INSERT INTO t1 VALUES ("poiuzt",7); INSERT INTO t1 VALUES ("lkjhgf",8); INSERT INTO t1 VALUES ("mnbvcx",9); INSERT INTO t1 VALUES ("zbdtzhfghjuzttgfghzu",10); #UNINSTALL PLUGIN tse ; $cat t/bug46858-master.opt --log-output=FILE
[8 Nov 2010 15:05]
MySQL Verification Team
is this bug present in any unmodified released version of mysql ?
[11 Nov 2010 12:00]
Sergey Vojtovich
Not using thr_lock_data_init, but further returning uninitialized THR_LOCK_DATA is definitely violation of thr_lock API. Suggested status: not a bug.