Bug #29459 server died handling latin2 collate latin2_czech_cs
| Submitted: | 30 Jun 2007 18:51 | Modified: | 5 Dec 2007 19:07 |
|---|---|---|---|
| Reporter: | Shane Bester (Platinum Quality Contributor) | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | MySQL Server: Charsets | Severity: | S1 (Critical) |
| Version: | 6.0.1-BK, 6.0.3 | OS: | Any |
| Assigned to: | Alexander Barkov | CPU Architecture: | Any |
| Tags: | crash | ||
[30 Jun 2007 18:51]
Shane Bester
[30 Jun 2007 18:51]
Shane Bester
dump.txt used in the testcase.
Attachment: dump.txt (text/plain), 63.15 KiB.
[30 Jun 2007 18:55]
Shane Bester
engine=myisam also crashed: 0x820fa3b handle_segfault + 541 0x859de2c my_strnncollsp_czech + 145 0x858c0cf mi_compare_text + 79 0x858c577 ha_key_cmp + 965 0x85385a4 _mi_seq_search + 426 0x85480e6 w_search + 401 0x85484dc w_search + 1415 0x8547d49 _mi_ck_real_write_btree + 170 0x8547c1e _mi_ck_write_btree + 173 0x8547b64 _mi_ck_write + 215 0x85475cc mi_write + 1020 0x852e72d _ZN9ha_myisam9write_rowEPh + 99 0x82fd975 _ZN7handler12ha_write_rowEPh + 33 0x828e3f0 _Z12write_recordP3THDP8st_tableP12st_copy_info + 1712 0x831e7a9 _Z14read_sep_fieldP3THDR12st_copy_infoP13st_table_listR4ListI4ItemES8_S8_R9READ_INFOR6Stringmb + 1269 0x831d8aa _Z10mysql_loadP3THDP12sql_exchangeP13st_table_listR4ListI4ItemES8_S8_15enum_duplicatesbb + 3658 0x821f478 _Z21mysql_execute_commandP3THD + 13712 0x8225381 _Z11mysql_parseP3THDPKcjPS2_ + 339 0x821a9cd _Z16dispatch_command19enum_server_commandP3THDPcj + 2325 0x821a0ac _Z10do_commandP3THD + 612 0x8218c13 handle_one_connection + 253
[30 Jun 2007 18:56]
Shane Bester
engine=innodb also crashed. (pasting stack traces in order to make searches easier later) 0x820fa3b handle_segfault + 541 0x859deca my_strnncollsp_czech + 303 0x84613dc innobase_mysql_cmp + 274 0x848f208 cmp_whole_field + 577 0x848f53a cmp_dtuple_rec_with_match + 357 0x8483983 page_cur_search_with_match + 1283 0x84d3451 btr_cur_search_to_nth_level + 2272 0x84950a1 row_ins_index_entry_low + 246 0x849567d row_ins_index_entry + 98 0x84957c3 row_ins_index_entry_step + 76 0x84959b1 row_ins + 488 0x8495b1c row_ins_step + 310 0x84974df row_insert_for_mysql + 466 0x8461fad _ZN11ha_innobase9write_rowEPh + 923 0x82fd975 _ZN7handler12ha_write_rowEPh + 33 0x828e3f0 _Z12write_recordP3THDP8st_tableP12st_copy_info + 1712 0x831e7a9 _Z14read_sep_fieldP3THDR12st_copy_infoP13st_table_listR4ListI4ItemES8_S8_R9READ_INFOR6Stringmb + 1269 0x831d8aa _Z10mysql_loadP3THDP12sql_exchangeP13st_table_listR4ListI4ItemES8_S8_15enum_duplicatesbb + 3658 0x821f478 _Z21mysql_execute_commandP3THD + 13712 0x8225381 _Z11mysql_parseP3THDPKcjPS2_ + 339 0x821a9cd _Z16dispatch_command19enum_server_commandP3THDPcj + 2325 0x821a0ac _Z10do_commandP3THD + 612 0x8218c13 handle_one_connection + 253 0x40250aa7 _end + 933387671 0x401e6c2e _end + 932953886
[10 Jul 2007 15:37]
Shane Bester
I used bkf free client to clone the tree: bkf clone bk://mysql.bkbits.net/mysql-6.0-falcon mysql-6.0-falcon
[11 Jul 2007 20:39]
Evgeny Potemkin
MyIASM isn't affected. A simpler test case: drop table if exists t1; create table t1 (a varchar(2) character set latin2 collate latin2_czech_cs,primary key(a))engine= innodb; insert into tbl_18 set a=0x5ff; insert into tbl_18 set a=0xff; on the last insert the server would crash.
[19 Jul 2007 13:58]
Shane Bester
actually MyISAM was affected by my original testcase. I even pasted a stack trace..
[20 Jul 2007 9:48]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/31216 ChangeSet@1.2538, 2007-07-20 14:47:36+05:00, bar@mysql.com +4 -0 Bug#29459 server died handling latin2 collate latin2_czech_cs Problem: sizeof() was errouneously used instead array_elements(), which made the loop access to wrong memory. Fix: changing sizeof() to array_elements().
[20 Jul 2007 9:58]
Sergey Vojtovich
Ok to push
[20 Jul 2007 11:03]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/31220 ChangeSet@1.2538, 2007-07-20 16:02:43+05:00, bar@mysql.com +4 -0 Bug#29459 server died handling latin2 collate latin2_czech_cs Problem: sizeof() was errouneously used instead array_elements(), which made the loop access to wrong memory. Fix: changing sizeof() to array_elements().
[20 Jul 2007 11:06]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/31221 ChangeSet@1.2538, 2007-07-20 16:06:04+05:00, bar@mysql.com +4 -0 Bug#29459 server died handling latin2 collate latin2_czech_cs Problem: sizeof() was errouneously used instead array_elements(), which made the loop access to wrong memory. Fix: changing sizeof() to array_elements().
[20 Jul 2007 11:09]
Alexander Barkov
Pushed into 5.2.5
[26 Nov 2007 8:02]
Shane Bester
what's up with this bug? still affects 6.0.3 ...
[27 Nov 2007 10:52]
Bugs System
Pushed into 6.0.4-alpha
[5 Dec 2007 19:07]
Paul DuBois
Noted in 5.2.5, 6.0.4 changelogs. Use of the latin2_czech_cs collation caused a server crash.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.044 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.