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

Missing DBUG_RETURN or DBUG_VOID_RETURN macro in function "do_exec"

    XMLWordPrintable

Details

    Description

      Test case

      # Run with --force --force
       
      --exec $MYSQL -e "SELECT * FROM test.t"
      

      10.1 50eb40a2a8aa3af6cc271f6028f4d6d74301d030

      /data/bld/10.1/bin/mysqltest: debugger aborting because missing DBUG_RETURN or DBUG_VOID_RETURN macro in function "do_exec"
       
      mysqltest got signal 6
      read_command_buf (0x7fbf800d4580): --exec $MYSQL -e "SELECT * FROM test.t"
      conn->name (0x7fbf80214a00): 
      Attempting backtrace...
      stack_bottom = 0x0 thread_stack 0x3c000
      mysys/stacktrace.c:267(my_print_stacktrace)[0x7fbf7fb7099d]
      client/mysqltest.cc:8799(dump_backtrace)[0x7fbf7fb13f31]
      client/mysqltest.cc:8815(signal_handler)[0x7fbf7fb13f64]
      /lib/x86_64-linux-gnu/libpthread.so.0(+0xf890)[0x7fbf7f693890]
      /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x37)[0x7fbf7dbff067]
      /lib/x86_64-linux-gnu/libc.so.6(abort+0x148)[0x7fbf7dc00448]
      dbug/dbug.c:2016(DbugMalloc)[0x7fbf7fb3d0ad]
      dbug/dbug.c:1182(_db_return_)[0x7fbf7fb3bbcf]
      client/mysqltest.cc:3477(do_exec(st_command*))[0x7fbf7fb08b15]
      client/mysqltest.cc:9413(main)[0x7fbf7fb1562c]
      /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5)[0x7fbf7dbebb45]
      /data/bld/10.1/bin/mysqltest(+0x3db69)[0x7fbf7fb01b69]
      

      #5  0x00007fbf7dc00448 in __GI_abort () at abort.c:89
      #6  0x00007fbf7fb3d0ad in DbugExit (why=0x7ffd624b1000 "missing DBUG_RETURN or DBUG_VOID_RETURN macro in function \"do_exec\"\n") at /data/src/10.1/dbug/dbug.c:1990
      #7  0x00007fbf7fb3bbcf in _db_return_ (_stack_frame_=0x7ffd624b12a0) at /data/src/10.1/dbug/dbug.c:1179
      #8  0x00007fbf7fb08b15 in do_exec (command=0x7fbf80241fd0) at /data/src/10.1/client/mysqltest.cc:3476
      #9  0x00007fbf7fb1562c in main (argc=12, argv=0x7ffd624b1868) at /data/src/10.1/client/mysqltest.cc:9412
      

      Apparently the problem was introduced by this commit:

      commit 29dd634a4c0b9c3579cf9d318ed64d748d848b1d
      Author: Sergei Golubchik <serg@mariadb.org>
      Date:   Tue Nov 10 16:57:15 2015 +0100
       
          dbug: correct trace for DBUG_RETURN(func()); -- gcc only
      

      Attachments

        Activity

          People

            serg Sergei Golubchik
            elenst Elena Stepanova
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.