fpco / ide-backend

ide-backend drives the GHC API to build, query, and run your code
120 stars 17 forks source link

Test for #210 deadlocks on 7.8 with patches #228

Closed edsko closed 10 years ago

edsko commented 10 years ago

@snoyberg @dcoutts @Mikolaj The test for #210 is consistently deadlocking on my system, and I am at a loss as to why. lldb shows that the process is deadlocked on some kind of pthread, but what that corresponds to exactly in Haskell land I don't know. I can see the child server starting okay, and the ide-backend-rts "run" wrapper actually starts, but when the snippet itself starts the whole thing stalls. Will continue investigating this.

edsko commented 10 years ago

Actually, perhaps the process is segfaulting.

edsko commented 10 years ago

Yes, I think the child server segfaults (and we don't see this: #229). Why it segfaults I have no idea.

edsko commented 10 years ago

Ok, explained the reason for this in #230, as well as a further problem. However, this test now passes again.

edsko commented 10 years ago

Described this problem in some detail at http://www.well-typed.com/blog/96/.