|
Found a solution: http://fromdual.com/hunting-the-core

gdb create_core core
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
create_core: No such file or directory.
[New LWP 3790]
Core was generated by `mariabackup --user=root --copy-back --datadir=/home/mysql/data/mariadb-101 --ta'.
Program terminated with signal SIGABRT, Aborted.
#0 0x00007fd88c587f07 in ?? ()
(gdb) print p
No symbol table is loaded. Use the "file" command.
(gdb) backtrace
#0 0x00007fd88c587f07 in ?? ()
#1 0x00007fd88e1aacc4 in ?? ()
#2 0x000000000000002b in ?? ()
#3 0x00007ffc00000000 in ?? ()
#4 0x0000000000000028 in ?? ()
#5 0x0000000600000000 in ?? ()
#6 0x0000000000000000 in ?? ()
(gdb)
|
|
gdb /home/mysql/product/mariadb-10.1/bin/mariabackup core
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /home/mysql/product/mariadb-10.1/bin/mariabackup...done.
[New LWP 3790]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `mariabackup --user=root --copy-back --datadir=/home/mysql/data/mariadb-101 --ta'.
Program terminated with signal SIGABRT, Aborted.
#0 0x00007fd88c587f07 in kill () at ../sysdeps/unix/syscall-template.S:81
81 ../sysdeps/unix/syscall-template.S: No such file or directory.
(gdb) print p
No symbol "p" in current context.
(gdb) backtrace
#0 0x00007fd88c587f07 in kill () at ../sysdeps/unix/syscall-template.S:81
#1 0x00007fd88e1aacc4 in handle_fatal_signal (sig=6) at /home/buildbot/buildbot/build/sql/signal_handler.cc:308
#2 <signal handler called>
#3 0x00007fd88c587c37 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#4 0x00007fd88c58b028 in __GI_abort () at abort.c:89
#5 0x00007fd88e4395f4 in os_event_reset (event=0x0) at /home/buildbot/buildbot/build/storage/xtradb/os/os0sync.cc:377
#6 0x00007fd88df7ec10 in xtrabackup_io_throttling () at /home/buildbot/buildbot/build/extra/mariabackup/xtrabackup.cc:2173
#7 0x00007fd88df902f2 in datafile_read (cursor=0x7ffc75390cb0)
at /home/buildbot/buildbot/build/extra/mariabackup/backup_copy.cc:534
#8 copy_file (datasink=0x7fd88ac00000, datasink@entry=0x7fd88b84ca98,
src_file_path=0x7ffc00000003 <error: Cannot access memory at address 0x7ffc00000003>,
src_file_path@entry=0x7ffc75391b30 "ib_logfile0", dst_file_path=dst_file_path@entry=0x7ffc75391b30 "ib_logfile0",
thread_n=thread_n@entry=1) at /home/buildbot/buildbot/build/extra/mariabackup/backup_copy.cc:999
#9 0x00007fd88df93fbc in copy_or_move_file (src_file_path=src_file_path@entry=0x7ffc75391b30 "ib_logfile0",
dst_file_path=dst_file_path@entry=0x7ffc75391b30 "ib_logfile0",
dst_dir=dst_dir@entry=0x7fd88ef590c0 <mysql_real_data_home> "/home/mysql/data/mariadb-101", thread_n=thread_n@entry=1)
at /home/buildbot/buildbot/build/extra/mariabackup/backup_copy.cc:1202
#10 0x00007fd88df94667 in copy_back () at /home/buildbot/buildbot/build/extra/mariabackup/backup_copy.cc:1738
#11 0x00007fd88df5dc4d in main (argc=<optimized out>, argv=<optimized out>)
at /home/buildbot/buildbot/build/extra/mariabackup/xtrabackup.cc:7474
(gdb)
|
|
gdb /home/mysql/product/mariadb-10.1/bin/mariabackup core
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /home/mysql/product/mariadb-10.1/bin/mariabackup...done.
/home/mysql/product/mariadb-10.1.23-linux-glibc_214-x86_64/bin/core: No such file or directory.
(gdb) quit
mysql@laptop4:~/product/mariadb-10.1/bin [mariadb-101, 3306]> cd /tmp/
mysql@laptop4:/tmp [mariadb-101, 3306]> gdb /home/mysql/product/mariadb-10.1/bin/mariabackup core
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /home/mysql/product/mariadb-10.1/bin/mariabackup...done.
[New LWP 3790]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `mariabackup --user=root --copy-back --datadir=/home/mysql/data/mariadb-101 --ta'.
Program terminated with signal SIGABRT, Aborted.
#0 0x00007fd88c587f07 in kill () at ../sysdeps/unix/syscall-template.S:81
81 ../sysdeps/unix/syscall-template.S: No such file or directory.
(gdb) print p
No symbol "p" in current context.
(gdb) backtrace
#0 0x00007fd88c587f07 in kill () at ../sysdeps/unix/syscall-template.S:81
#1 0x00007fd88e1aacc4 in handle_fatal_signal (sig=6) at /home/buildbot/buildbot/build/sql/signal_handler.cc:308
#2 <signal handler called>
#3 0x00007fd88c587c37 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#4 0x00007fd88c58b028 in __GI_abort () at abort.c:89
#5 0x00007fd88e4395f4 in os_event_reset (event=0x0) at /home/buildbot/buildbot/build/storage/xtradb/os/os0sync.cc:377
#6 0x00007fd88df7ec10 in xtrabackup_io_throttling () at /home/buildbot/buildbot/build/extra/mariabackup/xtrabackup.cc:2173
#7 0x00007fd88df902f2 in datafile_read (cursor=0x7ffc75390cb0)
at /home/buildbot/buildbot/build/extra/mariabackup/backup_copy.cc:534
#8 copy_file (datasink=0x7fd88ac00000, datasink@entry=0x7fd88b84ca98,
src_file_path=0x7ffc00000003 <error: Cannot access memory at address 0x7ffc00000003>,
src_file_path@entry=0x7ffc75391b30 "ib_logfile0", dst_file_path=dst_file_path@entry=0x7ffc75391b30 "ib_logfile0",
thread_n=thread_n@entry=1) at /home/buildbot/buildbot/build/extra/mariabackup/backup_copy.cc:999
#9 0x00007fd88df93fbc in copy_or_move_file (src_file_path=src_file_path@entry=0x7ffc75391b30 "ib_logfile0",
dst_file_path=dst_file_path@entry=0x7ffc75391b30 "ib_logfile0",
dst_dir=dst_dir@entry=0x7fd88ef590c0 <mysql_real_data_home> "/home/mysql/data/mariadb-101", thread_n=thread_n@entry=1)
at /home/buildbot/buildbot/build/extra/mariabackup/backup_copy.cc:1202
#10 0x00007fd88df94667 in copy_back () at /home/buildbot/buildbot/build/extra/mariabackup/backup_copy.cc:1738
#11 0x00007fd88df5dc4d in main (argc=<optimized out>, argv=<optimized out>)
at /home/buildbot/buildbot/build/extra/mariabackup/xtrabackup.cc:7474
(gdb) frame 6
#6 0x00007fd88df7ec10 in xtrabackup_io_throttling () at /home/buildbot/buildbot/build/extra/mariabackup/xtrabackup.cc:2173
2173 /home/buildbot/buildbot/build/extra/mariabackup/xtrabackup.cc: No such file or directory.
(gdb) print xtrabackup_throttl
No symbol "xtrabackup_throttl" in current context.
(gdb) print xtrabackup_throttle
$1 = 2
|