V3 Segfault/hang on drop table after executing (disallowed) update graph operation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OQGRAPH |
Fix Committed
|
Undecided
|
Andrew McDonnell |
Bug Description
Test case:
CREATE TABLE graph_base (
from_id INT UNSIGNED NOT NULL,
to_id INT UNSIGNED NOT NULL,
PRIMARY KEY (from_id,to_id),
INDEX (to_id)
) ENGINE=MyISAM;
CREATE TABLE graph (
latch VARCHAR(32) NULL,
origid BIGINT UNSIGNED NULL,
destid BIGINT UNSIGNED NULL,
weight DOUBLE NULL,
seq BIGINT UNSIGNED NULL,
linkid BIGINT UNSIGNED NULL,
KEY (latch, origid, destid) USING HASH,
KEY (latch, destid, origid) USING HASH
) ENGINE=OQGRAPH DATA_TABLE=
INSERT INTO graph_base(from_id, to_id) VALUES (1,2), (2,1);
INSERT INTO graph_base(from_id, to_id) VALUES (3,2), (2,3);
INSERT INTO graph_base(from_id, to_id) VALUES (1,3), (3,1);
update graph set origid=123;
DROP TABLE graph_base;
DROP TABLE graph;
#0 malloc_consolidate (av=0x7ffff6d03e40) at malloc.c:5137
#1 0x00007ffff6a19518 in _int_free (av=0x7ffff6d03e40, p=0x1d47950) at malloc.c:5018
#2 0x00007ffff6a1c94c in *__GI___libc_free (mem=<optimized out>) at malloc.c:3739
#3 0x0000000000a68525 in free_root (root=0x7ffff0a
#4 0x000000000061ee02 in TABLE_SHARE:
#5 0x000000000067d8df in tdc_delete_
#6 0x000000000067e564 in tdc_release_share (share=0x1d471b0) at /home/andrew/
#7 0x000000000067f21a in tdc_remove_table (thd=<optimized out>, remove_
#8 0x00000000005ff475 in mysql_rm_
#9 0x00000000005ffd6e in mysql_rm_table (thd=0x1d5f298, tables=0x1bc9c90, if_exists=0 '\000', drop_temporary=0 '\000') at /home/andrew/
#10 0x000000000058c425 in mysql_execute_
#11 0x000000000058f83d in mysql_parse (thd=0x1d5f298, rawbuf=<optimized out>, length=16, parser_
#12 0x0000000000590d46 in dispatch_command (command=COM_QUERY, thd=0x1d5f298, packet=<optimized out>, packet_
#13 0x00000000006435f4 in do_handle_
#14 0x0000000000643680 in handle_
#15 0x0000000000822590 in pfs_spawn_thread (arg=<optimized out>) at /home/andrew/
#16 0x00007ffff7bc98ca in start_thread (arg=<optimized out>) at pthread_
#17 0x00007ffff6a7592d in clone () at ..
Discovered when adding simple test case for operations disallowed by read-only
Related branches
- Maria-captains: Pending requested
Changed in oqgraph: | |
status: | In Progress → Fix Committed |
Seems to be limited to `update`, not triggered by insert/ delete/ truncate