GHC: Ticket #8014: Assertion failure when using multithreading in debug mode. <p> Using the -debug compiler option in search of a (hopefully unrelated) bug, I've begun to receive the following error message a few seconds after starting my program; </p> <pre class="wiki"> Multi: internal error: ASSERTION FAILED: file rts/Schedule.c, line 1311 (GHC version 7.6.2 for x86_64_unknown_linux) Please report this as a GHC bug: Aborted </pre><p> When I have time and if this site allows, I'll try to find what precisely in my code is generating the error and add that to this ticket. Until then, what information I can give: </p> <ul><li>Running the same executable in non-threaded mode (executing with "+RTS N1" rather than "+RTS N2" or greater) produces no error. </li></ul><ul><li>The program calls into C using the FFI interface, and there is also a callback from C back into Haskell. This would be happening around when the error occurs. </li></ul><ul><li>For reasons I presume to have to do with the C++ code, the program segfaults after extended execution; this is the hopefully unrelated bug I was after when I found this. </li></ul> en-us GHC Trac 1.0.1 thoughtpolice Mon, 28 Apr 2014 12:22:08 GMT status, failure changed; keywords, difficulty, related set <ul> <li><strong>keywords</strong> <em>rts</em> added </li> <li><strong>difficulty</strong> set to <em>Unknown</em> </li> <li><strong>status</strong> changed from <em>new</em> to <em>infoneeded</em> </li> <li><strong>related</strong> set to <em>#8014</em> </li> <li><strong>failure</strong> changed from <em>None/Unknown</em> to <em>Runtime crash</em> </li> </ul> Ticket thoughtpolice Mon, 28 Apr 2014 12:24:05 GMT related changed <ul> <li><strong>related</strong> changed from <em>#8014</em> to <em>#7189</em> </li> </ul> Ticket