Bug #18224 | VIEW on information_schema crashes the server | ||
---|---|---|---|
Submitted: | 14 Mar 2006 14:58 | Modified: | 20 Mar 2006 19:58 |
Reporter: | Beat Vontobel (Silver Quality Contributor) (OCA) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Views | Severity: | S1 (Critical) |
Version: | 5.0.19/5.0.20BK/5.1.8BK | OS: | Linux (Linux 2.4.21 (SuSE Professional)) |
Assigned to: | Sergei Glukhov | CPU Architecture: | Any |
[14 Mar 2006 14:58]
Beat Vontobel
[14 Mar 2006 15:23]
MySQL Verification Team
Thank you for the bug report. I was able to repeat: miguel@hegel:~/dbs/5.0> bin/mysql -uroot test Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1 to server version: 5.0.20-debug Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> CREATE SQL SECURITY INVOKER VIEW routines2 -> AS SELECT -> ROUTINE_SCHEMA AS `schema`, -> ROUTINE_NAME AS `name`, -> ROUTINE_TYPE AS `type`, -> SECURITY_TYPE AS `security`, -> CREATED AS `created`, -> ROUTINE_COMMENT AS `comment`, -> DEFINER AS `definer` -> FROM information_schema.ROUTINES -> ORDER BY ROUTINE_SCHEMA, ROUTINE_NAME; Query OK, 0 rows affected (0.01 sec) mysql> SELECT * FROM routines2; ERROR 2013 (HY000): Lost connection to MySQL server during query mysql> [New Thread 1099623344 (LWP 6321)] 060314 12:33:59 [Note] /home/miguel/dbs/5.0/libexec/mysqld: ready for connections. Version: '5.0.20-debug' socket: '/tmp/mysql.sock' port: 3306 Source distribution [New Thread 1131862960 (LWP 6349)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1131862960 (LWP 6349)] 0x082bea7c in filesort (thd=0x8e619f8, table=0x8e88268, sortorder=0x8e92d38, s_length=2, select=0x8e80f60, max_rows=18446744073709551615, examined_rows=0x4376c4c0) at filesort.cc:276 276 if (my_b_inited(outfile)) (gdb) miguel@hegel:~/dbs/5.1> bin/mysql -uroot test Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1 to server version: 5.1.8-beta-debug Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> CREATE SQL SECURITY INVOKER VIEW routines2 <cut> mysql> SELECT * FROM routines2; ERROR 2013 (HY000): Lost connection to MySQL server during query mysql>
[16 Mar 2006 12: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/3893
[20 Mar 2006 10:13]
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/3965
[20 Mar 2006 10:16]
Sergei Glukhov
Fixed in 5.0.20
[20 Mar 2006 19:58]
Mike Hillyer
Documented in 5.0.20 changelog: <listitem> <para> Views that incorporate tables from the INFORMATION_SCHEMA resulted in a server crash when queried. (Bug #18224) </para> </listitem>