Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-385

mysqltest running with continue-on-error crashes on a non-SQL command producing an error

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.5.25
    • Fix Version/s: 5.5.27
    • Component/s: None
    • 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;
      

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            monty Michael Widenius added a comment -

            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)

            Show
            monty Michael Widenius added a comment - 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)
            Hide
            elenst Elena Stepanova added a comment -

            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).

            Show
            elenst Elena Stepanova added a comment - 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).

              People

              • Assignee:
                monty Michael Widenius
                Reporter:
                elenst Elena Stepanova
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 30 minutes
                  30m