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

SIGSEGV in thd_increment_bytes_received

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.2
    • 10.2
    • None
    • None

    Description

      The crash is from multi-thread pquery run.

      10.2.41

      Core was generated by `/test/mtest/GAL_MD170821-mariadb-10.2.41-linux-x86_64-dbg/bin/mysqld --defaults'.
      Program terminated with signal SIGSEGV, Segmentation fault.
      #0  0x0000000070000002 in ?? ()
      [Current thread is 1 (Thread 0x44e435f07700 (LWP 3515594))]
      (gdb) bt
      #0  0x0000000070000002 in ?? ()
      #1  0x00001caf40547766 in _raw_syscall () at /home/roc/rr/rr/src/preload/raw_syscall.S:120
      #2  0x00001caf4054304e in traced_raw_syscall (call=<optimized out>) at /home/roc/rr/rr/src/preload/syscallbuf.c:272
      #3  0x00001caf405464d1 in syscall_hook_internal (call=0x147763447fa0) at /home/roc/rr/rr/src/preload/syscallbuf.c:3295
      #4  syscall_hook (call=0x147763447fa0) at /home/roc/rr/rr/src/preload/syscallbuf.c:3329
      #5  0x00001caf40542e50 in _syscall_hook_trampoline () at /home/roc/rr/rr/src/preload/syscall_hook.S:313
      #6  0x00001caf40542eaf in __morestack () at /home/roc/rr/rr/src/preload/syscall_hook.S:458
      #7  0x00001caf40542f08 in _syscall_hook_trampoline_89_c2_f7_da () at /home/roc/rr/rr/src/preload/syscall_hook.S:504
      #8  0x000065550d2fbf0c in __pthread_kill (threadid=<optimized out>, signo=signo@entry=11) at ../sysdeps/unix/sysv/linux/pthread_kill.c:56
      #9  0x000055a6c32affe2 in my_write_core (sig=sig@entry=11) at /test/mtest/10.2_dbg/mysys/stacktrace.c:382
      #10 0x000055a6c2ba07b3 in handle_fatal_signal (sig=11) at /test/mtest/10.2_dbg/sql/signal_handler.cc:355
      #11 <signal handler called>
      #12 thd_increment_bytes_received (thd=0x0, length=length@entry=4) at /test/mtest/10.2_dbg/sql/sql_class.cc:4047
      #13 0x000055a6c28d4ed2 in my_real_read (net=0x60bc20000c28, complen=complen@entry=0x44e435f06cb8, header=header@entry=1 '\001') at /test/mtest/10.2_dbg/sql/net_serv.cc:982
      #14 0x000055a6c28d5c4a in my_net_read_packet_reallen (net=net@entry=0x60bc20000c28, read_from_server=read_from_server@entry=1 '\001', reallen=reallen@entry=0x44e435f06d08) at /test/mtest/10.2_dbg/sql/net_serv.cc:1175
      #15 0x000055a6c28d5e8d in my_net_read_packet (net=net@entry=0x60bc20000c28, read_from_server=read_from_server@entry=1 '\001') at /test/mtest/10.2_dbg/sql/net_serv.cc:1159
      #16 0x000055a6c29a3bb9 in do_command (thd=0x60bc20000940) at /test/mtest/10.2_dbg/sql/sql_parse.cc:1257
      #17 0x000055a6c2aaa1b1 in do_handle_one_connection (connect=connect@entry=0x55a6c55c7680) at /test/mtest/10.2_dbg/sql/sql_connect.cc:1336
      #18 0x000055a6c2aaa3dc in handle_one_connection (arg=0x55a6c55c7680) at /test/mtest/10.2_dbg/sql/sql_connect.cc:1241
      #19 0x000065550d2f3609 in start_thread (arg=<optimized out>) at pthread_create.c:477
      #20 0x0000723605245293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
      

      Attachments

        Activity

          People

            sanja Oleksandr Byelkin
            ramesh Ramesh Sivaraman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

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