gdb auto-debug script crashes gdb
> gdb --args bin32/drrun -loglevel 4 -c suite/tests/bin/libclient.drxmgr-test.dll.so -- suite/tests/bin/common.eflags
GNU gdb (GDB) Fedora 7.9.1-19.fc22
Copyright (C) 2015 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-redhat-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 bin32/drrun...Reading symbols from /work/dr/git/build_x86_dbg_tests/bin32/drrun.debug...done.
done.
warning: File "/work/dr/git/build_x86_dbg_tests/.gdbinit" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load:/work/dr/git/src/tools".
To enable execution of this file add
add-auto-load-safe-path /work/dr/git/build_x86_dbg_tests/.gdbinit
line to your configuration file "/home/walnut/.gdbinit".
To completely disable this security protection add
set auto-load safe-path /
line to your configuration file "/home/walnut/.gdbinit".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual. E.g., run from the shell:
info "(gdb)Auto-loading safe path"
(gdb) run
Starting program: /work/dr/git/build_x86_dbg_tests/bin32/drrun -loglevel 4 -c suite/tests/bin/libclient.drxmgr-test.dll.so -- suite/tests/bin/common.eflags
Missing separate debuginfos, use: dnf debuginfo-install glibc-2.21-8.fc22.i686
process 18451 is executing new program: /work/dr/git/build_x86_dbg_tests/lib32/debug/libdynamorio.so.6.0
Loading gdb scripts for debugging DynamoRIO...
<log dir=/work/dr/git/build_x86_dbg_tests/bin32/../logs/common.eflags.18451.00000000>
Executing gdb command: add-symbol-file '/work/dr/git/build_x86_dbg_tests/suite/tests/bin/libclient.drxmgr-test.dll.so' 0xf778c770
<Starting application /work/dr/git/build_x86_dbg_tests/suite/tests/bin/common.eflags (18451)>
Executing gdb command: add-symbol-file '/work/dr/git/build_x86_dbg_tests/lib32/debug/libdynamorio.so' 0xf7013c0c
Segmentation fault (core dumped)