Bug #58137 char(0) column cause: my_gcvt: Assertion `width > 0 && to != ((void *)0)' failed
| Submitted: | 11 Nov 2010 14:50 | Modified: | 14 Dec 2010 0:03 |
|---|---|---|---|
| Reporter: | Shane Bester (Platinum Quality Contributor) | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | MySQL Server: Data Types | Severity: | S1 (Critical) |
| Version: | 5.5.8-debug | OS: | Any |
| Assigned to: | Tor Didriksen | CPU Architecture: | Any |
| Tags: | char(0), regression | ||
[11 Nov 2010 14:50]
Shane Bester
[11 Nov 2010 15:03]
MySQL Verification Team
Thank you for the bug report. 000000013F96C2C5 mysqld.exe!my_sigabrt_handler()[my_thr_init.c:521] 000000013FA681E2 mysqld.exe!raise()[winsig.c:597] 000000013FA72073 mysqld.exe!abort()[abort.c:78] 000000013FA6A8B5 mysqld.exe!_wassert()[assert.c:346] 000000013F9D634B mysqld.exe!my_gcvt()[dtoa.c:219] 000000013F5E1A1E mysqld.exe!Field_str::store()[field.cc:6333] 000000013F554609 mysqld.exe!Field_string::store()[field.h:1529] 000000013F546AC6 mysqld.exe!Item::save_in_field()[item.cc:5416] 000000013F47C878 mysqld.exe!fill_record()[sql_base.cc:8484] 000000013F47C94C mysqld.exe!fill_record_n_invoke_before_triggers()[sql_base.cc:8527] 000000013F66653A mysqld.exe!mysql_insert()[sql_insert.cc:905] 000000013F560A14 mysqld.exe!mysql_execute_command()[sql_parse.cc:2933] 000000013F568E85 mysqld.exe!mysql_parse()[sql_parse.cc:5594] 000000013F55C5F1 mysqld.exe!dispatch_command()[sql_parse.cc:1142] 000000013F55BB46 mysqld.exe!do_command()[sql_parse.cc:811] 000000013F4469BD mysqld.exe!do_handle_one_connection()[sql_connect.cc:1192] 000000013F446767 mysqld.exe!handle_one_connection()[sql_connect.cc:1132] 000000013F96B13B mysqld.exe!pthread_start()[my_winthread.c:62] 000000013FA7F905 mysqld.exe!_callthreadstartex()[threadex.c:348] 000000013FA7F8D8 mysqld.exe!_threadstartex()[threadex.c:331] 000000007757BE3D kernel32.dll!BaseThreadInitThunk() 0000000077786A51 ntdll.dll!RtlUserThreadStart() Trying to get some variables. Some pointers may be invalid and cause the dump to abort... thd->query at 00000000033BA180=replace into t1 values ((select * from v1)) thd->thread_id=1 thd->killed=NOT_KILLED The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains information that should help you find out what is causing the crash.
[11 Nov 2010 15:42]
Tor Didriksen
Even simpler: create table t1(a char(0)); insert into t1 (select pi());
[16 Nov 2010 12:08]
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/124022 3123 Tor Didriksen 2010-11-16 Bug #58137 char(0) column cause: my_gcvt: Assertion `width > 0 && to != ((void *)0)' failed @ mysql-test/r/func_math.result Add test for Bug #58137 @ mysql-test/t/func_math.test Add test for Bug #58137 @ sql/field.cc Skip calling my_gcvt() if we are trying to insert a double into a char(0) column.
[17 Nov 2010 11:53]
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/124143 3128 Tor Didriksen 2010-11-17 Bug #58137 char(0) column cause: my_gcvt: Assertion `width > 0 && to != ((void *)0)' failed @ mysql-test/r/func_math.result Add test for Bug #58137 @ mysql-test/t/func_math.test Add test for Bug #58137 @ sql/field.cc Skip calling my_gcvt() if we are trying to insert a double into a char(0) column.
[17 Nov 2010 15:39]
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/124170 3128 Tor Didriksen 2010-11-17 Bug #58137 char(0) column cause: my_gcvt: Assertion `width > 0 && to != ((void *)0)' failed @ mysql-test/r/func_math.result Add test for Bug #58137 @ mysql-test/t/func_math.test Add test for Bug #58137 @ sql/field.cc Skip calling my_gcvt() if we are trying to insert a double into a char(0) column.
[17 Nov 2010 16:12]
Tor Didriksen
pushed to trunk-bugfixing 5.5-bugteam
[5 Dec 2010 12:37]
Bugs System
Pushed into mysql-trunk 5.6.1 (revid:alexander.nozdrin@oracle.com-20101205122447-6x94l4fmslpbttxj) (version source revid:alexander.nozdrin@oracle.com-20101205122447-6x94l4fmslpbttxj) (merge vers: 5.6.1) (pib:23)
[14 Dec 2010 0:03]
Paul DuBois
Noted in 5.5.8 changelog. In debug builds, inserting a FLOAT value into a CHAR(0) column could crash the server.
[16 Dec 2010 22:25]
Bugs System
Pushed into mysql-5.5 5.5.9 (revid:jonathan.perkin@oracle.com-20101216101358-fyzr1epq95a3yett) (version source revid:jonathan.perkin@oracle.com-20101216101358-fyzr1epq95a3yett) (merge vers: 5.5.9) (pib:24)
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.048 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.