Using 'innodb_sys_indexes' causes core dump
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MariaDB |
Fix Released
|
Medium
|
Unassigned | ||
Percona Server moved to https://jira.percona.com/projects/PS |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Using 'innodb_
MySQL doesn't have the bug as MySQL doesn't expose innodb_sys_indexe
Here is a test case:
- Start with a clean setup (no ib* files and no tables in the test database)
Execute the included script with:
mysql test < /tmp/query2
You get a core dump with the following stack trace:
x0000000000ad37de in mach_read_from_2 (b=0x2a <Address 0x2a out of bounds>) at ./include/
(gdb) back
#0 0x0000000000ad37de in mach_read_from_2 (b=0x2a <Address 0x2a out of bounds>) at ./include/
#1 0x0000000000ae27f1 in page_header_
#2 0x0000000000ae298a in page_is_comp (page=0x0) at ./include/
#3 0x0000000000ae29b1 in page_rec_is_comp (rec=0x0) at ./include/
#4 0x0000000000ae3096 in page_rec_get_next (rec=0x0) at ./include/
#5 0x0000000000adf2e9 in page_cur_
#6 0x0000000000b49a09 in btr_pcur_
#7 0x0000000000b49b00 in btr_pcur_
#8 0x0000000000abe895 in i_s_innodb_
#9 0x0000000000846024 in get_schema_
#10 0x00000000007286f3 in JOIN::exec (this=0x249cf08) at sql_select.cc:1858
#11 0x000000000072ae3a in mysql_select (thd=0x2483d40, rref_pointer_
#12 0x0000000000722b35 in handle_select (thd=0x2483d40, lex=0x2486080, result=0x2493d38, setup_tables_
#13 0x00000000006be089 in execute_
#14 0x00000000006b51c9 in mysql_execute_
#15 0x00000000006c099d in mysql_parse (thd=0x2483d40, rawbuf=0x2494868 "SELECT COUNT(*) FROM `information_
#16 0x00000000006b2a8c in dispatch_command (command=COM_QUERY, thd=0x2483d40, packet=0x2487151 "SELECT COUNT(*) FROM `information_
The issue seams to be that page=0x0 in a lot of calls.
A likely cause for the bug is that the code in i_s_innodb_
Changed in percona-server: | |
assignee: | nobody → Yasufumi Kinoshita (yasufumi-kinoshita) |
Changed in percona-server: | |
status: | New → Invalid |
Changed in maria: | |
importance: | Undecided → Medium |
Changed in maria: | |
status: | Fix Committed → Fix Released |
I cannot reproduce at PerconaServer- 5.1.58, at least