Page 1 of 1

gdb attaching problem

Posted: Tue Feb 28, 2017 5:56 pm
by roadfun
I'm posting this in the Linux forum as it is the closest match I could find. But note I am running this on MacOS.

Periodically VRS crashes due to the cairo-hash problem which by itself is no big deal. But when this happens it tries to start and attach gdb. On my Mac, when this happens, it pops up a dialog box asking for an administrator to authenticate to enable this. The problem is VRS is running on a server and there usually isn't anyone to notice of authenticate this. So VRS is in limbo. I have a launch agent set so if VRS just dies without this dialog MacOS automatically restarts it.

Bottom line question: is there a way to prevent this gdb attach effort? I don't know if this is part of the VRS implementation or something mono is doing on it's own. See some details in the snippets below.

Here is the end of the .err file when one of these crashes occurs:

Code: Select all

Debug info from gdb:

(lldb) command source -s 0 '/tmp/mono-gdb-commands.exNcsB'
Executing commands in '/tmp/mono-gdb-commands.exNcsB'.
(lldb) process attach --pid 849
error: attach failed: unable to attach
And here are the contents of the mono-gdb-... file:

Code: Select all

process attach --pid 849
thread list
thread backtrace all