Looks like clobbered memory

#0  0x00007fb46af1f45c in __pthread_kill (threadid=<optimized out>, 
signo=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/pthread_kill.c:63
#1  0x0000000000dbbd72 in my_write_core (sig=11) at 
/home/andrew/develop/maria/repo/oqgraph-varchar/mysys/stacktrace.c:457
#2  0x00000000007e00b2 in handle_fatal_signal (sig=11) at 
/home/andrew/develop/maria/repo/oqgraph-varchar/sql/signal_handler.cc:262
#3  <signal handler called>
#4  0x00007fb45d7b8c9d in oqgraph3::intrusive_ptr_release 
(ptr=0xa5a5a5a5a5a5a5a5) at 
/home/andrew/develop/maria/repo/oqgraph-varchar/storage/oqgraph/oqgraph_thunk.h:132
#5  0x00007fb45d7bb90f in 
boost::intrusive_ptr<oqgraph3::cursor>::~intrusive_ptr (this=0x7fb45d4aae90, 
__in_chrg=<optimized out>) at /usr/include/boost/smart_ptr/intrusive_ptr.hpp:101
#6  0x00007fb45d7bba34 in boost::intrusive_ptr<oqgraph3::cursor>::operator= 
(this=0x227d598, rhs=...) at /usr/include/boost/smart_ptr/intrusive_ptr.hpp:133
#7  0x00007fb45d7b8b8f in oqgraph3::cursor_ptr::operator= (this=0x227d598) at 
/home/andrew/develop/maria/repo/oqgraph-varchar/storage/oqgraph/oqgraph_thunk.h:58
#8  0x00007fb45d7bad13 in oqgraph3::edge_info::operator= (this=0x227d598) at 
/home/andrew/develop/maria/repo/oqgraph-varchar/storage/oqgraph/oqgraph_thunk.h:68
#9  0x00007fb45d7bb41f in open_query::reference::operator= (this=0x227d588) at 
/home/andrew/develop/maria/repo/oqgraph-varchar/storage/oqgraph/graphcore.cc:136
#10 0x00007fb45d7bb45d in open_query::stack_cursor::current (this=0x227a140, 
ref=...) at 
/home/andrew/develop/maria/repo/oqgraph-varchar/storage/oqgraph/graphcore.cc:274
#11 0x00007fb45d7b781c in open_query::oqgraph::row_ref (this=0x208f460, 
ref_ptr=0x227d588) at 
/home/andrew/develop/maria/repo/oqgraph-varchar/storage/oqgraph/graphcore.cc:948
#12 0x00007fb45d7b2d62 in ha_oqgraph::position (this=0x2277988, 
record=0x2278bf8 "\310\001\061") at 
/home/andrew/develop/maria/repo/oqgraph-varchar/storage/oqgraph/ha_oqgraph.cc:1020
#13 0x00000000007dbe04 in find_all_keys (param=0x7fb45d4ab490, 
select=0x2282d20, fs_info=0x7fb45d4ab510, buffpek_pointers=0x7fb45d4ab150, 
tempfile=0x7fb45d4ab2f0, pq=0x0, found_rows=0x7fb45d4ab700) at 
/home/andrew/develop/maria/repo/oqgraph-varchar/sql/filesort.cc:650
#14 0x00000000007dad37 in filesort (thd=0x232e6a0, table=0x2276f90, 
sortorder=0x22837c8, s_length=1, select=0x2282d20, 
max_rows=18446744073709551615, sort_positions=false, 
examined_rows=0x7fb45d4ab708, found_rows=0x7fb45d4ab700) at 
/home/andrew/develop/maria/repo/oqgraph-varchar/sql/filesort.cc:294
#15 0x0000000000675c1c in create_sort_index (thd=0x232e6a0, join=0x23836f8, 
order=0x2383600, filesort_limit=18446744073709551615, 
select_limit=18446744073709551615, is_order_by=true) at 
/home/andrew/develop/maria/repo/oqgraph-varchar/sql/sql_select.cc:19220
#16 0x000000000064e157 in JOIN::exec_inner (this=0x23836f8) at 
/home/andrew/develop/maria/repo/oqgraph-varchar/sql/sql_select.cc:2929
#17 0x000000000064b6a7 in JOIN::exec (this=0x23836f8) at 
/home/andrew/develop/maria/repo/oqgraph-varchar/sql/sql_select.cc:2255
#18 0x000000000064ec3e in mysql_select (thd=0x232e6a0, 
rref_pointer_array=0x2331a60, tables=0x2382480, wild_num=1, fields=..., 
conds=0x2383098, og_num=1, order=0x2383600, group=0x0, having=0x0, 
proc_param=0x0, select_options=2147748608, result=0x23836d8, unit=0x2331128, 
select_lex=0x2331800) at 
/home/andrew/develop/maria/repo/oqgraph-varchar/sql/sql_select.cc:3192
#19 0x000000000064547a in handle_select (thd=0x232e6a0, lex=0x2331070, 
result=0x23836d8, setup_tables_done_option=0) at 
/home/andrew/develop/maria/repo/oqgraph-varchar/sql/sql_select.cc:363
#20 0x000000000061d175 in execute_sqlcom_select (thd=0x232e6a0, 
all_tables=0x2382480) at 
/home/andrew/develop/maria/repo/oqgraph-varchar/sql/sql_parse.cc:5004
#21 0x0000000000615788 in mysql_execute_command (thd=0x232e6a0) at 
/home/andrew/develop/maria/repo/oqgraph-varchar/sql/sql_parse.cc:2472
#22 0x000000000061f9ec in mysql_parse (thd=0x232e6a0, rawbuf=0x2382228 "SELECT 
* FROM graph WHERE latch='1' and destid=2 and origid=1 order by seq", 
length=74, parser_state=0x7fb45d4ac620) at 
/home/andrew/develop/maria/repo/oqgraph-varchar/sql/sql_parse.cc:6124
#23 0x00000000006129ba in dispatch_command (command=COM_QUERY, thd=0x232e6a0, 
packet=0x223b1d1 "SELECT * FROM graph WHERE latch='1' and destid=2 and origid=1 
order by seq", packet_length=74) at 
/home/andrew/develop/maria/repo/oqgraph-varchar/sql/sql_parse.cc:1266
#24 0x0000000000611b35 in do_command (thd=0x232e6a0) at 
/home/andrew/develop/maria/repo/oqgraph-varchar/sql/sql_parse.cc:982
#25 0x0000000000721c45 in do_handle_one_connection (thd_arg=0x232e6a0) at 
/home/andrew/develop/maria/repo/oqgraph-varchar/sql/sql_connect.cc:1267
#26 0x00000000007216ed in handle_one_connection (arg=0x232e6a0) at 
/home/andrew/develop/maria/repo/oqgraph-varchar/sql/sql_connect.cc:1181
#27 0x00000000009c5be2 in pfs_spawn_thread (arg=0x2181670) at 
/home/andrew/develop/maria/repo/oqgraph-varchar/storage/perfschema/pfs.cc:1800
#28 0x00007fb46af198ca in start_thread (arg=<optimized out>) at 
pthread_create.c:300
#29 0x00007fb46a3bb92d in clone ()

-- 
You received this bug notification because you are a member of OQgraph
developers, which is a bug assignee.
https://bugs.launchpad.net/bugs/1133093

Title:
  Crash on ORDER BY in OQGRAPH v3

Status in OQGraph Engine for MariaDB:
  Triaged

Bug description:
  SELECT * FROM graph WHERE latch=1 AND origid=1 AND destid=6;
  works

  SELECT * FROM graph WHERE latch=1 AND origid=1 AND destid=6 ORDER BY seq;
  segfaults.

To manage notifications about this bug go to:
https://bugs.launchpad.net/oqgraph/+bug/1133093/+subscriptions

-- 
Mailing list: https://launchpad.net/~oqgraph-dev
Post to     : oqgraph-dev@lists.launchpad.net
Unsubscribe : https://launchpad.net/~oqgraph-dev
More help   : https://help.launchpad.net/ListHelp

Reply via email to