Bug #46374 | crash, INSERT INTO t1 uses function, function modifies t1 | ||
---|---|---|---|
Submitted: | 24 Jul 2009 16:29 | Modified: | 7 Mar 2010 2:05 |
Reporter: | Matthias Leich | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Stored Routines | Severity: | S6 (Debug Builds) |
Version: | 5.4 | OS: | Any |
Assigned to: | Magne Mæhre | CPU Architecture: | Any |
Tags: | crash, debug, FUNCTION, regression |
[24 Jul 2009 16:29]
Matthias Leich
[25 Jul 2009 9:05]
Philip Stoev
5.1-bugteam debug-compiled does not hit this assertion. Therefore, this is a genuine regression.
[19 Aug 2009 11:24]
Dmitry Lenev
Preliminary investigation has shown that in case of 5.4 we also report error which one gets in this case from 5.1. But on later stages of SELECT handling this error is ignored thus my_ok() is called and this causes assertion failure. So IMO this bug falls into SELECT-execution realm rather than in the area of stored routines execution.
[25 Aug 2009 12:36]
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/81502 2877 Magne Mahre 2009-08-25 Bug #46374 crash, INSERT INTO t1 uses function, function modifies t1 An error occuring in the execution of a stored procedure, called from do_select is masked, since the error condition is not propagated back to the caller (join->conds->val_int() returns a result value, and not an error code) An explicit check was added to see if the thd error code has been set, and if so, we don't mark the execution as ok.
[9 Sep 2009 14:19]
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/82839 2813 Magne Mahre 2009-09-09 Bug #46374 crash, INSERT INTO t1 uses function, function modifies t1 An error occuring in the execution of a stored procedure, called from do_select is masked, since the error condition is not propagated back to the caller (join->conds->val_int() returns a result value, and not an error code) An explicit check was added to see if the thd error code has been set, and if so, the loop status is set to the error state.
[20 Sep 2009 14:44]
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/83809 2826 Magne Mahre 2009-09-20 Bug #46374 crash, INSERT INTO t1 uses function, function modifies t1 An error occuring in the execution of a stored procedure, called from do_select is masked, since the error condition is not propagated back to the caller (join->conds->val_int() returns a result value, and not an error code) An explicit check was added to see if the thd error code has been set, and if so, the loop status is set to the error state.
[30 Sep 2009 8:16]
Bugs System
Pushed into 6.0.14-alpha (revid:alik@sun.com-20090929093622-1mooerbh12e97zux) (version source revid:alik@sun.com-20090923103200-kyo2bakdo6tfb2fb) (merge vers: 6.0.14-alpha) (pib:11)
[1 Oct 2009 0:46]
Paul DuBois
Noted in 6.0.14 changelog. If INSERT INTO tbl_name invoked a stored function that modified tbl_name, the server crashed. Setting report to NDI pending push into 5.4.x.
[27 Oct 2009 21:43]
Konstantin Osipov
Repeatable in 5.1-bugteam, please re-triage, we'll push there.
[10 Dec 2009 15:23]
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/93543 3032 Magne Mahre 2009-12-10 Bug#46374 crash, INSERT INTO t1 uses function, function modifies t1 An error occuring in the execution of a stored procedure, called from do_select is masked, since the error condition is not propagated back to the caller (join->conds->val_int() returns a result value, and not an error code) An explicit check was added to see if the thd error code has been set, and if so, the loop status is set to the error state. Backport from 6.0-codebase (revid: 2617.68.31)
[16 Feb 2010 16:44]
Bugs System
Pushed into 6.0.14-alpha (revid:alik@sun.com-20100216101445-2ofzkh48aq2e0e8o) (version source revid:kostja@sun.com-20091211154405-c9yhiewr9o5d20rq) (merge vers: 6.0.14-alpha) (pib:16)
[16 Feb 2010 16:54]
Bugs System
Pushed into mysql-next-mr (revid:alik@sun.com-20100216101208-33qkfwdr0tep3pf2) (version source revid:kostja@sun.com-20091211103945-198h3pt8w7ypk20u) (pib:16)
[17 Feb 2010 0:50]
Paul DuBois
Setting report to Need Merge pending push of Celosia into release tree.
[6 Mar 2010 11:00]
Bugs System
Pushed into 5.5.3-m3 (revid:alik@sun.com-20100306103849-hha31z2enhh7jwt3) (version source revid:vvaintroub@mysql.com-20100216221947-luyhph0txl2c5tc8) (merge vers: 5.5.99-m3) (pib:16)
[7 Mar 2010 2:05]
Paul DuBois
Noted in 5.5.3 changelog.