Skip to content

Instantly share code, notes, and snippets.

@lestrrat
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lestrrat/f191277c2ad77bfc25f1 to your computer and use it in GitHub Desktop.
Save lestrrat/f191277c2ad77bfc25f1 to your computer and use it in GitHub Desktop.
q4m crash upon running DELETE FROM $queue
140725 09:41:39 ha_queue: /usr/local/src/mysql-5.6.19/storage/q4m/src/ha_queue.cc:2008: starting table compaction: ./XXXXXXX/queue_XXXXXXXX (begin: 491349793, end: 491349793, rows: 18446744073709551613)
140725 09:41:40 ha_queue: /usr/local/src/mysql-5.6.19/storage/q4m/src/ha_queue.cc:2134: finished table compaction: ./XXXXXXX/queue_XXXXXXXX (begin: 4096, end: 4096, rows: 0)
mysqld: /usr/local/src/mysql-5.6.19/storage/q4m/src/dllist.h:38: T* dllist<T, Cnt>::detach(T*&, size_t) [with T = queue_connection_t, long unsigned int Cnt = 1ul]: Assertion `_prev[idx] != __null' failed.
2014-07-25 09:41:40 4645 [ERROR] Got error 145 when reading table './XXXXXXX/queue_XXXXXXXX'
00:41:40 UTC - mysqld got signal 6 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
We will try our best to scrape up some info that will hopefully help
diagnose the problem, but since we have already crashed,
something is definitely wrong and this may fail.
key_buffer_size=1048576
read_buffer_size=131072
max_used_connections=689
max_threads=4096
thread_count=607
connection_count=607
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 1099968 K bytes of memory
Hope that's ok; if not, decrease some variables in the equation.
Thread pointer: 0x36616e0
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
stack_bottom = 7fb7d89cde68 thread_stack 0x40000
/usr/local/q4m/bin/mysqld(my_print_stacktrace+0x35)[0x86cdc5]
/usr/local/q4m/bin/mysqld(handle_fatal_signal+0x4a4)[0x623494]
/lib64/libpthread.so.0[0x39ae60f710]
/lib64/libc.so.6(gsignal+0x35)[0x39ade32925]
/lib64/libc.so.6(abort+0x175)[0x39ade34105]
/lib64/libc.so.6[0x39ade2ba4e]
/lib64/libc.so.6(__assert_perror_fail+0x0)[0x39ade2bb10]
/usr/local/q4m/lib/plugin/libqueue_engine.so(+0x3b4f1)[0x7fb8339e34f1]
/usr/local/q4m/lib/plugin/libqueue_engine.so(_ZN18queue_connection_t11erase_ownedEv+0x2f)[0x7fb8339e7d1f]
/usr/local/q4m/lib/plugin/libqueue_engine.so(queue_end+0x43)[0x7fb8339e7dc3]
/usr/local/q4m/bin/mysqld(_ZN17Item_func_udf_int7val_intEv+0x56)[0x5c0ec6]
/usr/local/q4m/bin/mysqld(_ZN4Item4sendEP8ProtocolP6String+0x1c4)[0x579474]
/usr/local/q4m/bin/mysqld(_ZN8Protocol19send_result_set_rowEP4ListI4ItemE+0x98)[0x61de88]
/usr/local/q4m/bin/mysqld(_ZN11select_send9send_dataER4ListI4ItemE+0x67)[0x661e17]
/usr/local/q4m/bin/mysqld(_ZN4JOIN4execEv+0x521)[0x677c61]
/usr/local/q4m/bin/mysqld(_Z12mysql_selectP3THDP10TABLE_LISTjR4ListI4ItemEPS4_P10SQL_I_ListI8st_orderESB_S7_yP13select_resultP18st_select_lex_unitP13st_select_lex+0x250)[0x6b4dd0]
/usr/local/q4m/bin/mysqld(_Z13handle_selectP3THDP13select_resultm+0x187)[0x6b5657]
/usr/local/q4m/bin/mysqld[0x6936ad]
/usr/local/q4m/bin/mysqld(_Z21mysql_execute_commandP3THD+0x1860)[0x695f00]
/usr/local/q4m/bin/mysqld(_Z11mysql_parseP3THDPcjP12Parser_state+0x348)[0x699548]
/usr/local/q4m/bin/mysqld(_Z16dispatch_command19enum_server_commandP3THDPcj+0x1700)[0x69acf0]
/usr/local/q4m/bin/mysqld(_Z24do_handle_one_connectionP3THD+0xcf)[0x66acff]
/usr/local/q4m/bin/mysqld(handle_one_connection+0x9)[0x66adb9]
/lib64/libpthread.so.0[0x39ae6079d1]
/lib64/libc.so.6(clone+0x6d)[0x39adee8b6d]
Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (7fb800015d90): is an invalid pointer
Connection ID (thread ID): 37001143
Status: NOT_KILLED
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment