Thread 236 (Thread 0x7ef0555a2b00 (LWP 1036)):
|
#0 0x00007f2654af1bc8 in pthread_mutex_unlock () from /lib64/libpthread.so.0
|
#1 0x00007f2654d20035 in je_malloc_mutex_unlock (mutex=<optimized out>) at include/jemalloc/internal/mutex.h:92
|
#2 je_malloc_mutex_postfork_parent (mutex=<optimized out>) at src/mutex.c:116
|
#3 0x00007f2654d13a31 in je_arena_postfork_parent (arena=0x7f26500000c0) at src/arena.c:2565
|
#4 0x00007f2654d071c7 in je_jemalloc_postfork_parent () at src/jemalloc.c:2032
|
#5 0x00007f26531088cf in fork () from /lib64/libc.so.6
|
#6 0x00007f2655c01226 in my_addr_resolve_init () at /home/buildbot/buildbot/build/mariadb-10.1.23/mysys/my_addr_resolve.c:239
|
#7 0x00007f2655bed4ec in print_with_addr_resolve (n=37, addrs=0x7ef05559dd90) at /home/buildbot/buildbot/build/mariadb-10.1.23/mysys/stacktrace.c:244
|
#8 my_print_stacktrace (stack_bottom=0x7ef0555a20b0 "\b\340\347\332\356~", thread_stack=295936) at /home/buildbot/buildbot/build/mariadb-10.1.23/mysys/stacktrace.c:271
|
#9 0x00007f2655710345 in handle_fatal_signal (sig=11) at /home/buildbot/buildbot/build/mariadb-10.1.23/sql/signal_handler.cc:166
|
#10 <signal handler called>
|
#11 0x00007f265317d586 in __strcmp_sse42 () from /lib64/libc.so.6
|
#12 0x00007f265589562f in get_share (table_name=0x7ef4af552128 "./jb_thebristolresidentiallettingcoltd/lettings_statement") at /home/buildbot/buildbot/build/mariadb-10.1.23/storage/xtradb/handler/ha_innodb.cc:16155
|
#13 ha_innobase::open (this=0x7ef5675a1490, name=0x7ef4af552128 "./jb_thebristolresidentiallettingcoltd/lettings_statement", mode=<optimized out>, test_if_locked=<optimized out>) at /home/buildbot/buildbot/build/mariadb-10.1.23/storage/xtradb/handler/ha_innodb.cc:6310
|
#14 0x00007f2655714663 in handler::ha_open (this=this@entry=0x7ef5675a1490, table_arg=<optimized out>, name=name@entry=0x7ef4af552128 "./jb_thebristolresidentiallettingcoltd/lettings_statement", mode=39, test_if_locked=test_if_locked@entry=2) at /home/buildbot/buildbot/build/mariadb-10.1.23/sql/handler.cc:2501
|
#15 0x00007f2655714980 in handler::clone (this=this@entry=0x7ef6b220b820, name=0x7ef4af552128 "./jb_thebristolresidentiallettingcoltd/lettings_statement", mem_root=0x7eeedae82c98) at /home/buildbot/buildbot/build/mariadb-10.1.23/sql/handler.cc:2413
|
#16 0x00007f2655877381 in ha_innobase::clone (this=0x7ef6b220b820, name=<optimized out>, mem_root=<optimized out>) at /home/buildbot/buildbot/build/mariadb-10.1.23/storage/xtradb/handler/ha_innodb.cc:6730
|
#17 0x00007f265568b6bd in DsMrr_impl::setup_two_handlers (this=this@entry=0x7ef6b220bce8) at /home/buildbot/buildbot/build/mariadb-10.1.23/sql/multi_range_read.cc:1054
|
#18 0x00007f265568bed8 in DsMrr_impl::dsmrr_init (this=0x7ef6b220bce8, h_arg=<optimized out>, seq_funcs=0x7ef4087d8918, seq_init_param=0x7ef4087d8728, n_ranges=1, mode=1665, buf=0x7ef4087d8948) at /home/buildbot/buildbot/build/mariadb-10.1.23/sql/multi_range_read.cc:951
|
#19 0x00007f2655877afa in ha_innobase::multi_range_read_init (this=<optimized out>, seq=<optimized out>, seq_init_param=<optimized out>, n_ranges=<optimized out>, mode=<optimized out>, buf=<optimized out>) at /home/buildbot/buildbot/build/mariadb-10.1.23/storage/xtradb/handler/ha_innodb.cc:22043
|
#20 0x00007f2655687076 in JOIN_CACHE::join_matching_records (this=0x7ef4087d8728, skip_last=false) at /home/buildbot/buildbot/build/mariadb-10.1.23/sql/sql_join_cache.cc:2260
|
#21 0x00007f2655686b84 in JOIN_CACHE::join_records (this=0x7ef4087d8728, skip_last=skip_last@entry=false) at /home/buildbot/buildbot/build/mariadb-10.1.23/sql/sql_join_cache.cc:2097
|
#22 0x00007f2655686bc4 in JOIN_CACHE::join_records (this=0x7ef4087d8460, skip_last=skip_last@entry=false) at /home/buildbot/buildbot/build/mariadb-10.1.23/sql/sql_join_cache.cc:2143
|
#23 0x00007f2655686bc4 in JOIN_CACHE::join_records (this=this@entry=0x7ef4087d7f20, skip_last=skip_last@entry=false) at /home/buildbot/buildbot/build/mariadb-10.1.23/sql/sql_join_cache.cc:2143
|
#24 0x00007f26555c44ea in sub_select_cache (join=0x7ef777aa2888, join_tab=0x7ef4087d6050, end_of_records=<optimized out>) at /home/buildbot/buildbot/build/mariadb-10.1.23/sql/sql_select.cc:18104
|
#25 0x00007f26555d2d99 in do_select (join=join@entry=0x7ef777aa2888, fields=fields@entry=0x0, table=table@entry=0x7ef8bd4d3020, procedure=procedure@entry=0x0) at /home/buildbot/buildbot/build/mariadb-10.1.23/sql/sql_select.cc:17980
|
#26 0x00007f26555e4dd6 in JOIN::exec_inner (this=this@entry=0x7ef777aa2888) at /home/buildbot/buildbot/build/mariadb-10.1.23/sql/sql_select.cc:2765
|
#27 0x00007f26555e7104 in JOIN::exec (this=this@entry=0x7ef777aa2888) at /home/buildbot/buildbot/build/mariadb-10.1.23/sql/sql_select.cc:2511
|
#28 0x00007f26555e37a2 in mysql_select (thd=thd@entry=0x7eeedae7e008, rref_pointer_array=rref_pointer_array@entry=0x7ef4e5085750, tables=<optimized out>, wild_num=<optimized out>, fields=..., conds=<optimized out>, og_num=4, order=0x7ef374d8e978, group=0x0, having=0x0, proc_param=proc_param@entry=0x0, select_options=2416184065,
|
result=result@entry=0x7ef777aa2790, unit=unit@entry=0x7ef4e5085838, select_lex=select_lex@entry=0x7ef4e50854d8) at /home/buildbot/buildbot/build/mariadb-10.1.23/sql/sql_select.cc:3445
|
#29 0x00007f2655568b9b in mysql_derived_fill (thd=0x7eeedae7e008, lex=0x7eeedae81848, derived=<optimized out>) at /home/buildbot/buildbot/build/mariadb-10.1.23/sql/sql_derived.cc:942
|
#30 0x00007f2655569eb4 in mysql_handle_single_derived (lex=0x7eeedae81848, derived=derived@entry=0x7ef374d8f628, phases=phases@entry=96) at /home/buildbot/buildbot/build/mariadb-10.1.23/sql/sql_derived.cc:195
|
#31 0x00007f26555c3dbf in st_join_table::preread_init (this=0x7ef56759f850) at /home/buildbot/buildbot/build/mariadb-10.1.23/sql/sql_select.cc:11713
|
#32 0x00007f26555dd078 in create_sort_index (thd=0x7eeedae7e008, join=join@entry=0x7ef777aa2210, order=0x7ef374d8fd50, filesort_limit=18446744073709551615, select_limit=<optimized out>, is_order_by=<optimized out>) at /home/buildbot/buildbot/build/mariadb-10.1.23/sql/sql_select.cc:21453
|
#33 0x00007f26555e5017 in JOIN::exec_inner (this=this@entry=0x7ef777aa2210) at /home/buildbot/buildbot/build/mariadb-10.1.23/sql/sql_select.cc:3191
|
#34 0x00007f26555e7104 in JOIN::exec (this=this@entry=0x7ef777aa2210) at /home/buildbot/buildbot/build/mariadb-10.1.23/sql/sql_select.cc:2511
|
#35 0x00007f26555e37a2 in mysql_select (thd=thd@entry=0x7eeedae7e008, rref_pointer_array=rref_pointer_array@entry=0x7eeedae82288, tables=<optimized out>, wild_num=<optimized out>, fields=..., conds=<optimized out>, og_num=3, order=0x7ef374d8fd50, group=0x0, having=0x0, proc_param=0x0, select_options=2147748608,
|
result=result@entry=0x7ef374d8ffb8, unit=unit@entry=0x7eeedae81910, select_lex=select_lex@entry=0x7eeedae82010) at /home/buildbot/buildbot/build/mariadb-10.1.23/sql/sql_select.cc:3445
|
#36 0x00007f26555e4285 in handle_select (thd=thd@entry=0x7eeedae7e008, lex=lex@entry=0x7eeedae81848, result=result@entry=0x7ef374d8ffb8, setup_tables_done_option=setup_tables_done_option@entry=0) at /home/buildbot/buildbot/build/mariadb-10.1.23/sql/sql_select.cc:384
|
#37 0x00007f26555835c1 in execute_sqlcom_select (thd=thd@entry=0x7eeedae7e008, all_tables=0x7ef374d8f628) at /home/buildbot/buildbot/build/mariadb-10.1.23/sql/sql_parse.cc:5920
|
#38 0x00007f265558f9db in mysql_execute_command (thd=thd@entry=0x7eeedae7e008) at /home/buildbot/buildbot/build/mariadb-10.1.23/sql/sql_parse.cc:2979
|
#39 0x00007f2655592fb2 in mysql_parse (thd=0x7eeedae7e008, rawbuf=<optimized out>, length=<optimized out>, parser_state=<optimized out>) at /home/buildbot/buildbot/build/mariadb-10.1.23/sql/sql_parse.cc:7343
|
#40 0x00007f265559648a in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x7eeedae7e008,
|
packet=packet@entry=0x7ef9fa83100d "\n\t\tSELECT * FROM (\n\t\tSELECT DISTINCT\n\t\t\t`lettings_ledger`.`ledgerID`, \n\t\t\t`lettings_ledger`.`transactionID`, \n\t\t\t`lettings_ledger`.`activityID`, \n\t\t\t`lettings_ledger`.`transactionType`,\n\t\t\t`lettings_ledger`.`propertyID`,\n\t\t\t`lettings_ledger`.`tenancyID`, \n\t\t\t`lettings_ledger`.`ledgerType`,\n\t\t\t`lettings_ledger`.`itemDescription`, `lettings_ledger`.`debitAmount`, \n\t\t\t\t\t`lettings_ledger`.`creditAmount`, `lettings_ledger`.`documentType`, \n\t\t\t`lettings_ledger`.`documentNumber`, \n\t\t\t`lettings_ledger`.`statementNumber`, \n\t\t\t`lettings_ledger`.`dateCreated`, \n\t\t\t`lettings_ledger`.`linkTable`, \n\t\t\t`lettings_ledger`.`linkField`,\n\t\t\t`lettings_ledger`.`linkID`, \n\t\t\t`lettings_statement`.`propertyStatementNumber`, \n\t\t\t`user`.`displayName`,\n\t\t\t`property`.`addressName`,\n\t\t\t`property`.`addressNumber`, \n\t\t\t`property`.`addressStreet`, \n\t\t\t`property`.`address2`, \n\t\t\t`property`.`address3`, \n\t\t\t`property`.`address4`, \n\t\t\t`property`.`addressPostcode` \n\t\tFROM \n\t\t\t`lettings_ledger` \n\t\tINNER JOIN \n\t\t\t`user` ON `user`.`userID` = `lettings_ledger`.`recordCreatedBy` \n\t\tLEFT JOIN \n\t\t\t`property` ON `property`.`propertyID` = `lettings_ledger`.`propertyID` \n\t\tLEFT JOIN \n\t\t\t`lettings_statement` ON `lettings_ledger`.`statementNumber` = `lettings_statement`.`statementNumber` \n\t\t\n\t\t\tWHERE \n\t\t\t\t`lettings_ledger`.`ledgerType` = 'tenant' AND \n\t\t\t\t`lettings_ledger`.`tenancyID` = '4679' ORDER BY \n\t\t\t`lettings_ledger`.`dateCreated` DESC, \n\t\t\t`lettings_ledger`.`ledgerID` DESC, \n\t\t\t`lettings_ledger`.`activityID` DESC, \n\t\t\t`lettings_ledger`.`transactionID` DESC LIMIT 5) AS `test` \n\t\tORDER BY \n\t\t\t`dateCreated`, \n\t\t\t`activityID`, \n\t\t\t`transactionID`", packet_length=packet_length@entry=1629) at /home/buildbot/buildbot/build/mariadb-10.1.23/sql/sql_parse.cc:1490
|
#41 0x00007f2655596cea in do_command (thd=0x7eeedae7e008) at /home/buildbot/buildbot/build/mariadb-10.1.23/sql/sql_parse.cc:1109
|
#42 0x00007f265565eb6a in do_handle_one_connection (thd_arg=thd_arg@entry=0x7ef7428fb008) at /home/buildbot/buildbot/build/mariadb-10.1.23/sql/sql_connect.cc:1349
|
#43 0x00007f265565ed10 in handle_one_connection (arg=0x7ef7428fb008) at /home/buildbot/buildbot/build/mariadb-10.1.23/sql/sql_connect.cc:1261
|
#44 0x00007f2654aeedc5 in start_thread () from /lib64/libpthread.so.0
|
#45 0x00007f265314173d in clone () from /lib64/libc.so.6
|
I took a look at the stack trace in mariadb-debug.out, but I couldn't find out the thread that caused the crash.
Can you please also post the *.err file, as this may give us the function where the crash happend.
This shouldn't have anything to do with number of tables.
I noticed that a lot of threads was locked inside of jemalloc. This may be normal, but I haven't noticed this before.
I am happy to take a look at the core dump, but for that to be useful, I need also the mysqld executable and preferable be able to look at it at a similar system that you are using.
What is your exact OS version and is it possible to get remote access to be able to access a copy of the mysqld executable and the core? If yes, then please ping me on IRC (you know my nick #montywi)