[MDEV-8316] debugger aborting because missing DBUG_RETURN or DBUG_VOID_RETURN macro in function "any_slave_sql_running" Created: 2015-06-14  Updated: 2015-06-15  Resolved: 2015-06-15

Status: Closed
Project: MariaDB Server
Component/s: Replication
Affects Version/s: 10.0
Fix Version/s: 10.0.20

Type: Bug Priority: Major
Reporter: Elena Stepanova Assignee: Kristian Nielsen
Resolution: Fixed Votes: 0
Labels: None


 Description   

Note: I don't have a test case for this, but I hope that code inspection will be enough to locate the problem.

150613 15:19:07 [Note] 10.0-patched/sql/mysqld: Normal shutdown
 
150613 15:19:07 [Note] Event Scheduler: Purging the queue. 0 events
150613 15:19:07 [Note] Slave: received end packet from server, apparent master shutdown: 
150613 15:19:07 [Note] Slave I/O thread killed while reading event
150613 15:19:07 [Note] Slave I/O thread exiting, read up to log 'mysql-bin.000001', position 975449; GTID position 0-1-3487
sql/mysqld: debugger aborting because missing DBUG_RETURN or DBUG_VOID_RETURN macro in function "any_slave_sql_running"
 
150613 15:19:07 [ERROR] mysqld got signal 6 ;

Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (0x8f8f8f8f8f8f8f8f): Can't read from address 0x8f8f8f8f8f8f8f8f
Connection ID (thread ID): 10344644715844964239
Status: UNKNOWN

Thread 1 (Thread 0x7f3edba86700 (LWP 5832)):
#0  0x00007f3edd012f8c in pthread_kill () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x0000000000e68f08 in my_write_core (sig=6) at mysys/stacktrace.c:457
#2  0x000000000085bdd3 in handle_fatal_signal (sig=6) at sql/signal_handler.cc:262
#3  <signal handler called>
#4  0x00007f3edbe40425 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#5  0x00007f3edbe43b8b in abort () from /lib/x86_64-linux-gnu/libc.so.6
#6  0x0000000000e87758 in DbugExit (why=0x7f3edba85690 "missing DBUG_RETURN or DBUG_VOID_RETURN macro in function \"any_slave_sql_running\"\n") at dbug/dbug.c:1986
#7  0x0000000000e8627e in _db_return_ (_line_=4857, _stack_frame_=0x7f3edba85970) at dbug/dbug.c:1175
#8  0x00000000005c81b5 in handle_slave_sql (arg=0x7f3ebc726000) at sql/slave.cc:4857
#9  0x00007f3edd00de9a in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#10 0x00007f3edbefdcbd in clone () from /lib/x86_64-linux-gnu/libc.so.6
#11 0x0000000000000000 in ?? ()

Stack trace from 10.0 commit d437c35d9748d33281d270ba2258fef9d90601b8 + patches 1,2 from MDEV-7818.



 Comments   
Comment by Kristian Nielsen [ 2015-06-15 ]

I checked all return statements in sql/rpl_mi.cc and fixed a handful that should be DBUG_RETURN.

http://lists.askmonty.org/pipermail/commits/2015-June/008040.html

Generated at Thu Feb 08 07:26:14 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.