Re: crash when updating tables with foreign keys
I uploaded the file bug_888165.test via FTP to ftp.askmonty.org/private/.
It's a small test that crashes when run with lp:maria (series 5.3). It also crashed using MariaDB 5.3.2 and MariaDB 5.3.0 built from src. It also crashed Oracle/MySQL's 5.1.48, I've not tested any other versions of yet. I will file a bug with mysql.com once I've confirmed it crashes the latest 5.1.X
The reproducer originates from a real application, the tables and query were produced by an ORM.
Sorry I didn't FTP a core or use the bug report tool, this is what the stack trace looks like for lp:maria (series 5.3)
stack_bottom = 0x7fcfb4575e58 thread_stack 0x48000
./mysqld(my_print_stacktrace+0x2e) [0xa566de]
./mysqld(handle_segfault+0x4fb) [0x62d0eb]
/lib64/libpthread.so.0() [0x3e1220f520]
./mysqld(key_unpack(String*, st_table*, unsigned int)+0x80) [0x610ef0]
./mysqld(handler::print_error(int, int)+0x252) [0x74c442]
./mysqld(mysql_update(THD*, TABLE_LIST*, List<Item>&, List<Item>&, Item*, unsigned int, st_order*, unsigned long long, enum_duplicates, bool)+0x10d7) [0x6d81c7]
./mysqld(mysql_execute_command(THD*)+0xac4) [0x63c0d4]
./mysqld(mysql_parse(THD*, char*, unsigned int, char const**)+0x2c9) [0x640f99]
./mysqld(dispatch_command(enum_server_command, THD*, char*, unsigned int)+0x949) [0x6418f9]
./mysqld(do_command(THD*)+0xf2) [0x642542]
./mysqld(handle_one_connection+0x2e8) [0x633438]
/lib64/libpthread.so.0() [0x3e122077e1]
/lib64/libc.so.6(clone+0x6d) [0x35b2ae68ed]
Thanks.
Re: crash when updating tables with foreign keys
I uploaded the file bug_888165.test via FTP to ftp.askmonty.org/private/.
It's a small test that crashes when run with lp:maria (series 5.3). It also crashed using MariaDB 5.3.2 and MariaDB 5.3.0 built from src. It also crashed Oracle/MySQL's 5.1.48, I've not tested any other versions of yet. I will file a bug with mysql.com once I've confirmed it crashes the latest 5.1.X
The reproducer originates from a real application, the tables and query were produced by an ORM.
Sorry I didn't FTP a core or use the bug report tool, this is what the stack trace looks like for lp:maria (series 5.3)
stack_bottom = 0x7fcfb4575e58 thread_stack 0x48000
./mysqld(my_print_stacktrace+0x2e) [0xa566de]
./mysqld(handle_segfault+0x4fb) [0x62d0eb]
/lib64/libpthread.so.0() [0x3e1220f520]
./mysqld(key_unpack(String*, st_table*, unsigned int)+0x80) [0x610ef0]
./mysqld(handler::print_error(int, int)+0x252) [0x74c442]
./mysqld(mysql_update(THD*, TABLE_LIST*, List<Item>&, List<Item>&, Item*, unsigned int, st_order*, unsigned long long, enum_duplicates, bool)+0x10d7) [0x6d81c7]
./mysqld(mysql_execute_command(THD*)+0xac4) [0x63c0d4]
./mysqld(mysql_parse(THD*, char*, unsigned int, char const**)+0x2c9) [0x640f99]
./mysqld(dispatch_command(enum_server_command, THD*, char*, unsigned int)+0x949) [0x6418f9]
./mysqld(do_command(THD*)+0xf2) [0x642542]
./mysqld(handle_one_connection+0x2e8) [0x633438]
/lib64/libpthread.so.0() [0x3e122077e1]
/lib64/libc.so.6(clone+0x6d) [0x35b2ae68ed]
Thanks.