gdb attaching problem

Bug reports and questions about running Virtual Radar Server on Linux
Post Reply
roadfun
Posts: 7
Joined: Mon Feb 06, 2017 6:58 pm

gdb attaching problem

Post by roadfun » Tue Feb 28, 2017 5:56 pm

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
detach
quit

Post Reply