| Bug #27592 | stack overrun when storing datetime value using prepared statements | ||
|---|---|---|---|
| Submitted: | 2 Apr 2007 18:00 | Modified: | 23 Jun 2007 10:53 |
| Reporter: | Shane Bester | ||
| Status: | Closed | ||
| Category: | Server: PS | Severity: | S3 (Non-critical) |
| Version: | 5.0.40 | OS: | Microsoft Windows (win xp 64-bit) |
| Assigned to: | Alexander Nozdrin | Target Version: | |
[2 Apr 2007 18:00]
Shane Bester
[2 Apr 2007 18:01]
Shane Bester
full stack trace
Attachment: bug27592_5.0.40_win_stack.txt (text/plain), 2.44 KiB.
[2 Apr 2007 18:42]
Shane Bester
testcase. point the testcase to run against mysqld-debug.exe on 5.0.40...
Attachment: bug27592.c (text/plain), 2.75 KiB.
[2 Apr 2007 18:43]
Shane Bester
my general query log showing what values got inserted.
Attachment: xp64.log (application/octet-stream, text), 2.88 KiB.
[2 Apr 2007 18:46]
Shane Bester
the testcase always fails on iteration 36. sbester@www:~> gcc bug27592.c -g -o bug27592 -L/home/sbester/server/5.0/mysql-5.0.36-linux-i686/lib -I/home/sbester/server/5.0/mysql-5.0.36-linux-i686/include -lmysqlclient_r -lz -lpthread sbester@www:~> ./bug27592 iteration 0 iteration 1 iteration 2 iteration 3 iteration 4 iteration 5 iteration 6 iteration 7 iteration 8 iteration 9 iteration 10 iteration 11 iteration 12 iteration 13 iteration 14 iteration 15 iteration 16 iteration 17 iteration 18 iteration 19 iteration 20 iteration 21 iteration 22 iteration 23 iteration 24 iteration 25 iteration 26 iteration 27 iteration 28 iteration 29 iteration 30 iteration 31 iteration 32 iteration 33 iteration 34 iteration 35 iteration 36 mysql_stmt_execute failed: Lost connection to MySQL server during query (2013) sbester@www:~>
[2 Apr 2007 21:18]
Shane Bester
verified on todays 5.0BK source on windows.
[28 May 2007 18:25]
Shane Bester
changing char buff[19]; to char buff[20]; in int Field_datetime::store_time(TIME *ltime,timestamp_type time_type) fixes the problem on my side.
[7 Jun 2007 11:51]
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/28276 ChangeSet@1.2516, 2007-06-07 13:50:22+04:00, anozdrin@ibm. +3 -0 Fix for BUG#27592: stack overrun when storing datetime value using prepared statements.
[7 Jun 2007 18:01]
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/28320 ChangeSet@1.2516, 2007-06-07 19:35:29+04:00, anozdrin@ibm. +1 -0 Add test case for BUG#27592: stack overrun when storing datetime value using prepared statements.
[20 Jun 2007 16:56]
Bugs System
Pushed into 5.0.46
[20 Jun 2007 21:53]
Bugs System
Pushed into 5.1.20-beta
[23 Jun 2007 10:53]
Jon Stephens
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 bug fix. More information about accessing the source trees is
available at
http://dev.mysql.com/doc/en/installing-source.html
Documented bugfix in 5.0.46 and 5.1.20 changelogs.
