[MDEV-385] mysqltest running with continue-on-error crashes on a non-SQL command producing an error Created: 2012-07-09  Updated: 2012-07-10  Resolved: 2012-07-10

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: 5.5.25
Fix Version/s: 5.5.27

Type: Bug Priority: Minor
Reporter: Elena Stepanova Assignee: Michael Widenius
Resolution: Fixed Votes: 0
Labels: None


 Description   

 
client/mysqltest: File 'non_existing_file' not found (Errcode: 2)
client/mysqltest: debugger aborting because missing DBUG_RETURN or DBUG_VOID_RETURN macro in function "handle_command_error"
 
#2  0x0000000000427b35 in signal_handler (sig=6) at client/mysqltest.cc:8726
#3  <signal handler called>
#4  0x00007feb391593a5 in __GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#5  0x00007feb3915cb0b in __GI_abort () at abort.c:92
#6  0x000000000044c5cf in DbugExit (why=0x7fff91fb2810 "missing DBUG_RETURN or DBUG_VOID_RETURN macro in function \"handle_command_error\"\n") at dbug/dbug.c:1987
#7  0x000000000044b039 in _db_return_ (_line_=3703, _stack_frame_=0x7fff91fb2a80) at dbug/dbug.c:1178
#8  0x000000000041d7fe in do_copy_file (command=0x1e8f4b0) at client/mysqltest.cc:3703
#9  0x0000000000428b4b in main (argc=12, argv=0x7fff91fb2e58) at client/mysqltest.cc:9136

bzr version-info
revision-id: psergey@askmonty.org-20120705103901-9ero4x0eifk0wtks
date: 2012-07-05 14:39:01 +0400
build-date: 2012-07-09 05:33:33 +0400
revno: 3462

Test case (run as perl ./mtr main.t1 --force --force)

--copy_file non_existing_file non_existing_file_2
# The next line is just a confirmation, not needed for the crash
SELECT 1;



 Comments   
Comment by Michael Widenius [ 2012-07-10 ]

Fixed and pushed.
(Note, I could not repeat the error, but the error itself was trivial so assuming there is no other errors it's now fixed)

Comment by Elena Stepanova [ 2012-07-10 ]

The patch fixes the problem, at least the one which the provided test case hits (it is reliably reproducible on my machine before the patch, but not after the patch).

Generated at Thu Feb 08 06:28:21 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.