Bug #13558 | Server crash on CREATE FUNCTION with no database selected | ||
---|---|---|---|
Submitted: | 28 Sep 2005 9:48 | Modified: | 28 Sep 2005 13:01 |
Reporter: | Beat Vontobel (Silver Quality Contributor) (OCA) | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | 5.0.13-rc-standard-log | OS: | Linux (Linux 2.4.21 (SuSE Professional)) |
Assigned to: | CPU Architecture: | Any |
[28 Sep 2005 9:48]
Beat Vontobel
[28 Sep 2005 13:01]
MySQL Verification Team
Duplicate of bug: http://bugs.mysql.com/bug.php?id=13514 Back trace shows same source. Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1132456880 (LWP 6753)] 0x0859de3c in my_strcasecmp_utf8 (cs=0x878d900, s=0x8639773 "information_schema", t=0x0) at ctype-utf8.c:2347 2347 while (s[0] && t[0]) Current language: auto; currently c (gdb) bt full #0 0x0859de3c in my_strcasecmp_utf8 (cs=0x878d900, s=0x8639773 "information_schema", t=0x0) at ctype-utf8.c:2347 uni_plane = (MY_UNICASE_INFO **) 0x878c720 #1 0x081f2ecc in mysql_execute_command (thd=0x8e38248) at sql_parse.cc:4049 namelen = 0 name = 0x0 db = 0x0 result = 1132453808 res = false result = 0 lex = (LEX *) 0x8e38288 select_lex = (SELECT_LEX *) 0x8e384ac slave_fake_lock = false fake_prev_lock = (MYSQL_LOCK *) 0x0 first_table = (TABLE_LIST *) 0x0 all_tables = (TABLE_LIST *) 0x0 unit = (SELECT_LEX_UNIT *) 0x8e38298 _db_func_ = 0x437fdfe8 "\030à\177C\215h\037\bH\202ã\bH\202ã\bÐ7æ\b-" _db_file_ = 0x8e637c0 "" _db_level_ = 149127784 _db_framep_ = (char **) 0x437fdfac #2 0x081f688d in mysql_parse (thd=0x8e38248, inBuf=0x8e637d0 "CREATE FUNCTION dummy () RETURNS INT RETURN 0", length=45) at sql_parse.cc:5507 050928 9:57:17 [Note] /home/miguel/dbs/5.0/libexec/mysqld: ready for connections. Version: '5.0.14-rc-debug' socket: '/tmp/mysql.sock' port: 3306 Source distribution [New Thread 1132456880 (LWP 6769)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1132456880 (LWP 6769)] 0x0859de3c in my_strcasecmp_utf8 (cs=0x878d900, s=0x8639773 "information_schema", t=0x0) at ctype-utf8.c:2347 2347 while (s[0] && t[0]) Current language: auto; currently c (gdb) bt full #0 0x0859de3c in my_strcasecmp_utf8 (cs=0x878d900, s=0x8639773 "information_schema", t=0x0) at ctype-utf8.c:2347 uni_plane = (MY_UNICASE_INFO **) 0x878c720 #1 0x081f2ecc in mysql_execute_command (thd=0x8e38248) at sql_parse.cc:4049 namelen = 0 name = 0x0 db = 0x0 result = 1132453808 res = false result = 0 lex = (LEX *) 0x8e38288 select_lex = (SELECT_LEX *) 0x8e384ac slave_fake_lock = false fake_prev_lock = (MYSQL_LOCK *) 0x0 first_table = (TABLE_LIST *) 0x0 all_tables = (TABLE_LIST *) 0x0 unit = (SELECT_LEX_UNIT *) 0x8e38298 _db_func_ = 0x437fdfe8 "\030à\177C\215h\037\bH\202ã\bH\202ã\bÐ7æ\b^" _db_file_ = 0x8e637c0 "" _db_level_ = 149127784 _db_framep_ = (char **) 0x437fdfac #2 0x081f688d in mysql_parse (thd=0x8e38248, inBuf=0x8e637d0 "CREATE PROCEDURE simpleproc (OUT param1 INT)\nBEGIN\nSELECT COUNT(*) INTO param1 FROM test1;\nEND", length=94)