This repository has been archived by the owner on Dec 16, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 503
Stack overflow exception when starting new threads #797
Comments
Additional note: I'm currently using 1c9787e for production and this test case works fine there. |
Can you reproduce this bug on unix or is it windows only? |
@sirsnyder I quickly tested and it also crashes on linux, yes. Haven't done any debugging on linux but one would assume the cause is the same. |
At a first sight, the offending commit is 4c978ec. |
Could you please test this fix? |
looks like it's fixed, thanks! |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Environment
Summary
Running the below test case on Windows with latest pthreads yields a stack overflow exception in
pthreads_store_create()
.This bug appears to occur when an interface constant is accessed via a class which implements the interface, and then a thread is started. Crucially, in the test case:
produces the stack overflow, while:
does not.
It is necessary to have the
TestInterface
class loaded by an autoloader, or the bug does not occur.Reproducing Code
Test case: https://github.com/dktapps/pthreads-stack-overflow-test
Usage:
Expected Output
and correct shutdown
Actual Output
followed by stackoverflow exception (debugged with Visual Studio).
Visual Studio debugging
Gigantic stack trace (be warned, it's about 6000 lines long): https://gist.github.com/dktapps/2cf08ea2b2fa93e01f9656fe303995fb
The text was updated successfully, but these errors were encountered: