Bug #40745 | Error during WHERE clause calculation in UPDATE leads to an assertion failure | ||
---|---|---|---|
Submitted: | 14 Nov 2008 14:41 | Modified: | 9 Dec 2008 0:27 |
Reporter: | Dmitry Lenev | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: DML | Severity: | S3 (Non-critical) |
Version: | 5.1/6.0.8-debug | OS: | Linux |
Assigned to: | Gleb Shchepa | CPU Architecture: | Any |
Tags: | regression |
[14 Nov 2008 14:41]
Dmitry Lenev
[14 Nov 2008 15:18]
MySQL Verification Team
Thank you for the bug report. Repeatable on 6.0.9(bzr)/5.1(bzr) and not repeatable on 5.1.22 released version on Windows. 081114 12:50:51 [Note] 6.0/libexec/mysqld: ready for connections. Version: '6.0.9-alpha-debug' socket: '/tmp/mysql.sock' port: 3306 Source distribution mysqld: sql_class.cc:415: void Diagnostics_area::set_ok_status(THD*, ha_rows, ulonglong, const char*): Assertion `! is_set()' failed. 081114 12:53:04 - mysqld got signal 6 ; <cut> 6.0/libexec/mysqld(my_print_stacktrace+0x32)[0xdbde42] 6.0/libexec/mysqld(handle_segfault+0x2a6)[0x7389a7] /lib/libpthread.so.0[0x7f512d3300f0] /lib/libc.so.6(gsignal+0x35)[0x7f512bfcefd5] /lib/libc.so.6(abort+0x183)[0x7f512bfd0b43] /lib/libc.so.6(__assert_fail+0xe9)[0x7f512bfc7d49] 6.0/libexec/mysqld(_ZN16Diagnostics_area13set_ok_statusEP3THDyyPKc+0x5a)[0x71f3a0] 6.0/libexec/mysqld(_Z5my_okP3THDyyPKc+0x3b)[0x64f220] 6.0/libexec/mysqld(_Z12mysql_updateP3THDP10TABLE_LISTR4ListI4ItemES6_PS4_jP8st_ordery15enum_duplicatesb+0x1fe6)[0x801ba1] 6.0/libexec/mysqld(_Z21mysql_execute_commandP3THD+0x2b22)[0x74d823] 6.0/libexec/mysqld(_Z11mysql_parseP3THDPKcjPS2_+0x273)[0x7531c3] 6.0/libexec/mysqld(_Z16dispatch_command19enum_server_commandP3THDPcj+0xa8c)[0x753de3] 6.0/libexec/mysqld(_Z10do_commandP3THD+0x224)[0x755378] 6.0/libexec/mysqld(handle_one_connection+0x11c)[0x7427c3] /lib/libpthread.so.0[0x7f512d3283ea] /lib/libc.so.6(clone+0x6d)[0x7f512c082c6d] Trying to get some variables. Some pointers may be invalid and cause the dump to abort... thd->query at 0x2b962d0 = update t1 set i= 3 where f1(3) thd->thread_id=1 thd->killed=NOT_KILLED
[26 Nov 2008 19:33]
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/59972 2708 Gleb Shchepa 2008-11-26 Bug #40745: Error during WHERE clause calculation in UPDATE leads to an assertion failure Any run-time error in stored function (like recursive function call or update of table that is already updating by statement which invoked this stored function etc.) that was used in some expression of the single-table UPDATE statement caused an assertion failure. Multiple-table UPDATE (as well as INSERT and both single- and multiple-table DELETE) are not affected.
[27 Nov 2008 18:22]
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/60098 2708 Gleb Shchepa 2008-11-27 Bug #40745: Error during WHERE clause calculation in UPDATE leads to an assertion failure Any run-time error in stored function (like recursive function call or update of table that is already updating by statement which invoked this stored function etc.) that was used in some expression of the single-table UPDATE statement caused an assertion failure. Multiple-table UPDATE (as well as INSERT and both single- and multiple-table DELETE) are not affected.
[28 Nov 2008 17:38]
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/60207 2721 Gleb Shchepa 2008-11-28 Bug #40745: Error during WHERE clause calculation in UPDATE leads to an assertion failure Any run-time error in stored function (like recursive function call or update of table that is already updating by statement which invoked this stored function etc.) that was used in some expression of the single-table UPDATE statement caused an assertion failure. Multiple-table UPDATE (as well as INSERT and both single- and multiple-table DELETE) are not affected.
[8 Dec 2008 10:21]
Bugs System
Pushed into 5.1.31 (revid:gshchepa@mysql.com-20081128163607-ctt0eed8a578jmii) (version source revid:ingo.struewing@sun.com-20081128205552-dx30wv0qxr4exozn) (pib:5)
[8 Dec 2008 11:31]
Bugs System
Pushed into 6.0.9-alpha (revid:gshchepa@mysql.com-20081128163607-ctt0eed8a578jmii) (version source revid:ingo.struewing@sun.com-20081129113057-4ytvc66vqu2tifmj) (pib:5)
[9 Dec 2008 0:27]
Paul DuBois
Noted in 5.1.31, 6.0.9 changelogs. For single-table UPDATE statements, an assertion failure resulted from a runtime error in a stored function (such as a recursive function call or an attempt to update the same table as in the UPDATE statement).
[19 Jan 2009 11:30]
Bugs System
Pushed into 5.1.31-ndb-6.2.17 (revid:tomas.ulin@sun.com-20090119095303-uwwvxiibtr38djii) (version source revid:tomas.ulin@sun.com-20090108105244-8opp3i85jw0uj5ib) (merge vers: 5.1.31-ndb-6.2.17) (pib:6)
[19 Jan 2009 13:07]
Bugs System
Pushed into 5.1.31-ndb-6.3.21 (revid:tomas.ulin@sun.com-20090119104956-guxz190n2kh31fxl) (version source revid:tomas.ulin@sun.com-20090119104956-guxz190n2kh31fxl) (merge vers: 5.1.31-ndb-6.3.21) (pib:6)
[19 Jan 2009 16:13]
Bugs System
Pushed into 5.1.31-ndb-6.4.1 (revid:tomas.ulin@sun.com-20090119144033-4aylstx5czzz88i5) (version source revid:tomas.ulin@sun.com-20090119144033-4aylstx5czzz88i5) (merge vers: 5.1.31-ndb-6.4.1) (pib:6)