Description:
It appears that running the server with --skip-grants causes a crash when creating a view.
This is from a pull of Sunday, July 18th.
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1 to server version: 5.0.1-alpha-log
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> DROP VIEW IF EXISTS vTestViewMetaData;
Query OK, 0 rows affected, 1 warning (0.01 sec)
mysql> DROP TABLE IF EXISTS testViewMetaData;
Query OK, 0 rows affected (0.00 sec)
mysql> CREATE TABLE testViewMetaData (field1 INT);
Query OK, 0 rows affected (0.00 sec)
mysql> CREATE VIEW vTestViewMetaData AS SELECT field1 FROM testViewMetaData;
ERROR 2013 (HY000): Lost connection to MySQL server during query
Here's the stack trace:
Version: '5.0.1-alpha-log' socket: '/tmp/mysql-5.0.sock' port: 3309
mysqld got signal 11;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
We will try our best to scrape up some info that will hopefully help diagnose
the problem, but since we have already crashed, something is definitely wrong
and this may fail.
key_buffer_size=16384
read_buffer_size=131072
max_used_connections=1
max_connections=100
threads_connected=1
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_connections = 19215 K
bytes of memory
Hope that's ok; if not, decrease some variables in the equation.
thd=0x86b8e78
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
Cannot determine thread, fp=0x9e29ac6c, backtrace may not be correct.
Stack range sanity check OK, backtrace follows:
0x8163cf0 handle_segfault + 480
0xb7498d38 _end + -1360215512
(nil)
0x81d8ed8 _Z7acl_getPKcS0_S0_S0_c + 808
0x81de37f _Z31fill_effective_table_privilegesP3THDP13st_grant_infoPKcS4_ + 79
0x823ebbd _Z17mysql_create_viewP3THD21enum_view_create_mode + 461
0x817e802 _Z21mysql_execute_commandP3THD + 22370
0x817f94c _Z11mysql_parseP3THDPcj + 348
0x8177dfb _Z16dispatch_command19enum_server_commandP3THDPcj + 1019
0x81779a4 _Z10do_commandP3THD + 148
0x8176fe7 handle_one_connection + 551
0xb7492dfc _end + -1360239892
0xb73bef2a _end + -1361107942
New value of fp=(nil) failed sanity check, terminating stack trace!
Please read http://www.mysql.com/doc/en/Using_stack_trace.html and follow instructions on how to resolve the stack trace. Resolved
stack trace is much more helpful in diagnosing the problem, so please do
resolve it
Trying to get some variables.
Some pointers may be invalid and cause the dump to abort...
thd->query at 0x86c8780 = CREATE VIEW vTestViewMetaData AS SELECT field1 FROM testViewMetaData
thd->thread_id=3
How to repeat:
Run the server with --skip-grants.
Try and create a view (as the included SQL script shows).