auto-loading of /usr/local/go/src/pkg/runtime/runtime-gdb.py declined

64 views
Skip to first unread message

John Lawrie

unread,
Jul 23, 2014, 4:41:22 PM7/23/14
to golan...@googlegroups.com
When I try to debug my go application, I always get the following output on my console. The first warning line is printed in red.

warning: File "/usr/local/go/src/pkg/runtime/runtime-gdb.py" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".
To enable execution of this file add
    add-auto-load-safe-path /usr/local/go/src/pkg/runtime/runtime-gdb.py
line to your configuration file "/home/johnlawrie/.gdbinit".
To completely disable this security protection add
    set auto-load safe-path /
line to your configuration file "/home/johnlawrie/.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"
$1 = 0xff
The target endianness is set automatically (currently little endian)
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff77f5700 (LWP 1109)]
[New Thread 0x7ffff6ef4700 (LWP 1110)]
[New Thread 0x7ffff66f3700 (LWP 1111)]
[Thread 0x7ffff66f3700 (LWP 1111) exited]
[Thread 0x7ffff6ef4700 (LWP 1110) exited]
[Thread 0x7ffff77f5700 (LWP 1109) exited]
Quit

I have tried to follow the instructions printed and have added to my .gdbinit file to try to get gdb to parse in and load the runtime-gdb.py, but I have no luck.

Currently, my /home/johnlawrie/.gdbinit file contains simply
set auto-load safe-path /usr/local/go/

I have also tried using
add-auto-load-safe-path /usr/local/go/src/pkg/runtime/runtime-gdb.py
and
add-auto-load-safe-path /usr/local/go/src/pkg/

None of the options have changed the result. I'm using goclipse and I have version Luna (4.4.0). My gdb is version 7.7 if any of that helps.

Thanks in advance
John Lawrie
Reply all
Reply to author
Forward
0 new messages