-
Notifications
You must be signed in to change notification settings - Fork 284
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
Running concurrent requests segfaults #30
Comments
Interesting.. a closure bug? The client_ctx is modified nowhere... |
Hmmm.. Seems there are some strange stuff going on. If I reduce the test-case to this: Then I get other errors:
Adding in a little more sql: Gives other problems: But if I sprinkle with writeln's, I reproduce the error I first reported... |
Oh.. And I get failures even without concurrent requests, but a little different. With all writeln's, I get the second reported issue rather than the first when running with 1 request at a time. I really have no idea how I can be of any help finding the source of this bug. |
Unfortunately, I currently don't have any time left to debug the MySQL stuff. If nobody else does it, I will try to get to this in two or three weeks. |
Hmm.. I'm running a branch with some changes now, and the problem is gone (at least I think the remaining problem is vibe or druntime). |
It fails on a simple "Hello world" app too.
Usually fails before reaching 100,000 for me. Of course.. It runs fine for smaller number of concurrent users, so it's obviously not an issue for my use, but it might hide some other errors. |
Interesting. I do get some failed connections sometimes and I think it's a timing issue where the new connection is not accept'ed fast enough. It doesn't crash though. Hopefully when it's finished, the win32 back end will provide a better target for debugging this. Libevent hides a lot of things under it's abstractions... |
I get strange segfaults on linux64 at least. Haven't tested on windows or x32. |
Closing for now due to non-reproducibility over a long period of time. |
I tried running a couple of concurrent requests using
ab
, and it sometimes fails.The line that breaks is this one: https://github.com/rejectedsoftware/vibe.d/blob/master/source/vibe/core/drivers/libevent2_tcp.d#L360
assert(client_ctx) fails after connectionCallback() is called in the line above.
The text was updated successfully, but these errors were encountered: