Bug #50624 | crash in check_table_access during call procedure | ||
---|---|---|---|
Submitted: | 26 Jan 2010 14:32 | Modified: | 19 Jun 2010 0:23 |
Reporter: | Matthias Leich | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Stored Routines | Severity: | S3 (Non-critical) |
Version: | 5.0, 5.1.43,5.1.44,5.5.99-m3 | OS: | Any |
Assigned to: | Davi Arnaut | CPU Architecture: | Any |
[26 Jan 2010 14:32]
Matthias Leich
[26 Jan 2010 14:46]
Matthias Leich
D2/W2/I3 because - it is IMHO rather unlikely that somebody runs a command sequence like mine - Workarounds 1. Don't be careless when granting permissions -> less users which are able to run DoS attacks 2. Don't create objects (procedure p1) which rely on objects to be created later (view v1) I found this bug when developing a RQG grammar for replication testing. In case of RQG tests the workarounds from above are not applicable. Please fix this otherwise I will have most probably to disable the use of procedures, functions and triggers.
[3 Feb 2010 11: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/99040 3353 Davi Arnaut 2010-02-03 Bug#50624: crash in check_table_access during call procedure This bug is just one facet of stored routines not being able to detect changes in meta-data (WL#4179). This particular problem is can be triggered within a single session due to the improper management of the pre-locking list if the view is expanded after the pre-locking list is calculated. Since the overall solution for the meta-data detection issue is planned for a later release, for now a workaround is used to fix this particular aspect that only involves a single session. The workaround is to flush the thread-local stored routine cache every time a view is created or modified, causing locally cached routines to be re-evaluated upon invocation. @ mysql-test/r/sp-bugs.result Add test case result for Bug#50624. @ mysql-test/t/sp-bugs.test Add test case for Bug#50624. @ sql/sp_cache.cc Update function description. @ sql/sql_view.cc Invalidate the SP cache if a view is being created or modified.
[13 Feb 2010 10:35]
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/100240 3339 Davi Arnaut 2010-02-13 Bug#50624: crash in check_table_access during call procedure This bug is just one facet of stored routines not being able to detect changes in meta-data (WL#4179). This particular problem can be triggered within a single session due to the improper management of the pre-locking list if the view is expanded after the pre-locking list is calculated. Since the overall solution for the meta-data detection issue is planned for a later release, for now a workaround is used to fix this particular aspect that only involves a single session. The workaround is to flush the thread-local stored routine cache every time a view is created or modified, causing locally cached routines to be re-evaluated upon invocation. @ mysql-test/r/sp-bugs.result Add test case result for Bug#50624. @ mysql-test/t/sp-bugs.test Add test case for Bug#50624. @ sql/sp_cache.cc Update function description. @ sql/sql_view.cc Invalidate the SP cache if a view is being created or modified.
[13 Feb 2010 10:38]
Davi Arnaut
Queued to 5.1-bugteam
[1 Mar 2010 8:43]
Bugs System
Pushed into 5.1.45 (revid:joro@sun.com-20100301083827-xnimmrjg6bh33o1o) (version source revid:davi.arnaut@sun.com-20100213103514-y7zvj1okm33nypoi) (merge vers: 5.1.45) (pib:16)
[2 Mar 2010 14:34]
Bugs System
Pushed into 6.0.14-alpha (revid:alik@sun.com-20100302142746-u1gxdf5yk2bjrq3e) (version source revid:alik@sun.com-20100225090938-2j5ybqoau570mytu) (merge vers: 6.0.14-alpha) (pib:16)
[2 Mar 2010 14:39]
Bugs System
Pushed into 5.5.3-m2 (revid:alik@sun.com-20100302072233-t3uqgjzdukt1pyhe) (version source revid:alexey.kopytov@sun.com-20100221213311-xf5nyv391dsw9v6j) (merge vers: 5.5.2-m2) (pib:16)
[2 Mar 2010 14:44]
Bugs System
Pushed into mysql-next-mr (revid:alik@sun.com-20100302072432-k8xvfkgcggkwgi94) (version source revid:alik@sun.com-20100224135227-rcqs9pe9b2in80pf) (pib:16)
[8 Apr 2010 14:34]
Paul DuBois
Noted in 5.1.45, 5.5.3, 6.0.14 changelogs. The server did not recognize that the stored procedure cache became invalid if a view was created or modified within a procedure, resulting in a crash.
[17 Jun 2010 12:07]
Bugs System
Pushed into 5.1.47-ndb-7.0.16 (revid:martin.skold@mysql.com-20100617114014-bva0dy24yyd67697) (version source revid:vasil.dimov@oracle.com-20100331130613-8ja7n0vh36a80457) (merge vers: 5.1.46) (pib:16)
[17 Jun 2010 12:52]
Bugs System
Pushed into 5.1.47-ndb-6.2.19 (revid:martin.skold@mysql.com-20100617115448-idrbic6gbki37h1c) (version source revid:martin.skold@mysql.com-20100609140708-52rvuyq4q500sxkq) (merge vers: 5.1.45-ndb-6.2.19) (pib:16)
[17 Jun 2010 13:34]
Bugs System
Pushed into 5.1.47-ndb-6.3.35 (revid:martin.skold@mysql.com-20100617114611-61aqbb52j752y116) (version source revid:vasil.dimov@oracle.com-20100331130613-8ja7n0vh36a80457) (merge vers: 5.1.46) (pib:16)