<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - [r600-llvm] mono games with opengl are blocking on start"
href="https://bugs.freedesktop.org/show_bug.cgi?id=60929#c15">Comment # 15</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW --- - [r600-llvm] mono games with opengl are blocking on start"
href="https://bugs.freedesktop.org/show_bug.cgi?id=60929">bug 60929</a>
from <span class="vcard"><a class="email" href="mailto:nmiell@gmail.com" title="Nicholas Miell <nmiell@gmail.com>"> <span class="fn">Nicholas Miell</span></a>
</span></b>
<pre>r600g initializes LLVM without first setting the llvm::DisablePrettyStackTrace
variable to true. If this variable is false (the default), LLVM will register a
bunch of signal handlers, including for SIGXCPU and SIGPWR, both of which are
used by Mono's garbage collector.
gallivm correctly sets llvm::DisablePrettyStackTrace to true, but it runs after
r600g has already started calling into LLVM and the signal handlers have been
registered.
If you set a breakpoint on r600_create_context, manually set
llvm::DisablePrettyStackTrace to true and then continue, the application will
function correctly. I tested this using Fractal (a Unity game which deadlocks
in sem_wait on startup), Bastion (a MonoGame, also deadlocks in sem_wait), and
RepetierHost (an OpenTK app which dies in the SIGXCPU handler at startup).</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>