Bug #15205 | Select from CSV table without the datafile causes crash | ||
---|---|---|---|
Submitted: | 23 Nov 2005 21:36 | Modified: | 30 Aug 2006 20:16 |
Reporter: | Petr Chardin | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: CSV | Severity: | S3 (Non-critical) |
Version: | 4.1.16 and up | OS: | Linux (Suse 9.3) |
Assigned to: | Petr Chardin | CPU Architecture: | Any |
[23 Nov 2005 21:36]
Petr Chardin
[23 Nov 2005 21:46]
MySQL Verification Team
I was unable to repeat with 5.0.17 debug: miguel@hegel:~/dbs/5.0> bin/mysql -uroot db3 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.0.17-debug Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> SELECT * FROM csv_bug; ERROR 1030 (HY000): Got error 1 from storage engine mysql> select version(); +--------------+ | version() | +--------------+ | 5.0.17-debug | +--------------+ 1 row in set (0.00 sec) mysql> I will test 4.1.XX
[23 Nov 2005 22:39]
MySQL Verification Team
I was able to repeat with 4.1.16: miguel@hegel:~/dbs/4.1> bin/mysqladmin shutdown -uroot miguel@hegel:~/dbs/4.1> bin/mysql -uroot db3 Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1 to server version: 4.1.16-log Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> SELECT * FROM csv_bug; ERROR 2013 (HY000): Lost connection to MySQL server during query mysql> miguel@hegel:~/dbs/4.1> libexec/mysqld 051123 20:37:41 InnoDB: Started; log sequence number 0 43786 libexec/mysqld: ready for connections. Version: '4.1.16-log' socket: '/tmp/mysql.sock' port: 3306 Source distribution 051123 20:37:57 [ERROR] libexec/mysqld: Can't open file: 'csv_bug.CSV' (errno: 1) mysqld got signal 11;
[26 Apr 2006 7:01]
Oli Sennhauser
It seems to be NOT fixed. I was able to reproduce in 5.0.20a! Seems to be fixed in 5.1.9 create table csv_test (id int, data varchar(255)) engine=csv; insert into csv_test values (1, 'Bla'), (2, 'Blabla'); select * from csv_test; flush tables; exit rm test.CSV stop server start server mysql -u root test mysql> select * from test; No connection. Trying to reconnect... Connection id: 1 Current database: test ERROR 2006 (HY000): MySQL server has gone away No connection. Trying to reconnect... ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/u00/app/mysql/tmp/mysql-5.0.20.sock' (111) ERROR: Can't connect to the server
[11 Jul 2006 12:14]
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/9038
[17 Aug 2006 14:13]
Petr Chardin
The 5.0 version of the fix is pushed into 5.0 runtime. The merge will soon follow
[18 Aug 2006 15:03]
Petr Chardin
merged the patch into 5.0.25. Can't merge to 5.1, as 5.1 is currently broken. Will do as soon, it is fixed.
[24 Aug 2006 19:22]
Iggy Galarza
Available in 5.1.12
[30 Aug 2006 20:16]
Paul DuBois
Noted in 5.0.25, 5.1.12 changelogs. The server crashed if it tried to access a CSV table for which the data file had been removed.