-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to create thread: No error information (0) on alpine3.8 #1998
Comments
So i was able to narrow it down, it seems that installing it this way:
causes this to happen, when i install the package from edge:
it seems to work. I leave it open for now @edenhill maybe you have some insight in why this might happen. If not, you can close it. |
I don't see how the error information is lost. errno is printed from the caller, now with a value of 0, which shouldnt be possible: Unless the free() at tinycthread.c line 676 resets the errno, which it shouldnt, and looking at the musl source it doesn't seem to do that unless syscall() does. |
Hey @edenhill
So in my php file, when i remove this line:
I get an error with information (i still dont get why though):
If i leave it in, i will get no info on the error:
|
💯 for reproducible environment! |
Found the issue: librdkafka's internal C11 threads (tinycthread) is mixed with the musl-provided C11 threads, causing weird errors and crashes. We'll need to disable our own C11 threads implementation when a system one is available. |
Hey @edenhill I tested this on the latest master branch, everything looks good so far. Cheers, |
Awesome, thank you! |
I am in a alpine 3.8 container and installing (make and make install) librdkafka 0.11.5.
When i am instantiating a new Producer (in php), i am getting:
Failed to create thread: No error information (0)
Any insight on why this might happen? With 0.11.4 it is working fine
The text was updated successfully, but these errors were encountered: