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
segfault in getservbyname
?
#136
Comments
I've also have some other weird errors on that stress test:
|
I might do something stupid, but I got another one:
To repro:
Makefile
|
Can you post the output ( The wrappers look wrong for the not HAVE_NETDB_REENTRANT case. The data is not duplicated ( Line 1974 in 4cd731f
What's the context for the sigpipe error? Isn't this expected behaviour for certain cases? |
They look wrong, indeed. I think there should be a lock as well, so that only one worker calls getservbyname at a time. |
I've fixed some of the issues here: https://github.com/fdopen/lwt/tree/fix-136 |
@fdopen it seems that your fix is working fine, thanks! |
And here is the output of
|
ping? |
@fdopen the fix in your tree looks good, but it means that the OCaml inliner cant optimise away the checks for a reentrant hostdb (since its an external C function call). This is pretty constant though:
if that were an ML file with a constrant |
I'm closing this. Please reopen if the issue appears again. |
Any plan for a minor release with that fix? |
ping? |
The HTTP tests are broken because of ocsigen/lwt#136, so they need lwt 1.5.0 to pass (but we don't have a release of cohttp compatible with that version of lwt yet).
While running some stress tests for cohttp, I got a segfault on OSX 10.10.2:
The text was updated successfully, but these errors were encountered: