Comment 1 for bug 1926815

Revision history for this message
Kevin Ushey (kevinushey) wrote : Re: gdb doesn't work properly when attaching to R

In addition, I get a segfault if I use a single-quoted string rather than a double-quoted string. (My understanding is that single-quoted strings are normally used to reference symbols, so this should be an error but not a crash)

$ /usr/bin/gdb -batch -p $(pgrep -nx R) -ex "print (char*) getenv('oops')"
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007f69b4c870da in select () from /usr/lib/x86_64-linux-gnu/libc.so.6
Aborted (core dumped)