Bug #26977 | exception handlers never hreturn | ||
---|---|---|---|
Submitted: | 9 Mar 2007 0:08 | Modified: | 17 May 2007 14:02 |
Reporter: | Marc ALFF | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Stored Routines | Severity: | S2 (Serious) |
Version: | 5.0, 5.1 | OS: | Any |
Assigned to: | Kristofer Pettersson | CPU Architecture: | Any |
[9 Mar 2007 0:08]
Marc ALFF
[2 May 2007 12:25]
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/25897 ChangeSet@1.2440, 2007-05-02 14:25:01+02:00, thek@adventure.(none) +4 -0 Bug#26977 exception handlers never hreturn - In some cases, flow control optimization implemented in sp::optimize removes hreturn instructions, causing SQL exception handlers to: * never return * execute wrong logic - This patch overrides default short cut optimization on hreturn instructions to avoid this problem.
[7 May 2007 8: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/26200 ChangeSet@1.2440, 2007-05-07 10:23:10+02:00, thek@adventure.(none) +4 -0 Bug#26977 exception handlers never hreturn - In some cases, flow control optimization implemented in sp::optimize removes hreturn instructions, causing SQL exception handlers to: * never return * execute wrong logic - This patch overrides default short cut optimization on hreturn instructions to avoid this problem.
[16 May 2007 13:47]
Bugs System
Pushed into 5.0.42
[16 May 2007 13:49]
Bugs System
Pushed into 5.1.19-beta
[17 May 2007 14:02]
Paul DuBois
Noted in 5.0.42, 5.1.19 changelogs. Flow control optimization in stored routines could cause exception handlers to never return or execute incorrect logic.