Skip to content
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

Found a bug that could crash the server. Make one more test line to track it first. #42

Closed
wants to merge 1 commit into from

Conversation

cong1920
Copy link
Contributor

Hi, @matt-42
You don't have to merge this PR because I just use it to submit a bug. I haven't figured out the cause yet but the new test code (line 32) can repro and track it. Please just copy-n-paste and give a shot to see if it repros on your side. And I believe your understanding of code and sharp eyes will find the root cause easily, which would save me tons of time :)
Well while I was adding such line and compiling, I got a compiler warning about the std::tmpnam(nullptr) therefore I just made few more changes to replace it with mkdtemp, and a wrapper to ensure temporary folder is deleted always. You can ignore these noise for now.

… the root cause, but I can add one line test code to prove and track it for now. Well while I was adding such line and compiling, I got a compiler warning about the std::tmpnam(nullptr) therefore I just made few more changes to replace it with mkdtemp, and a wrapper to ensure temporary folder is deleted always.
@cong1920
Copy link
Contributor Author

Okay, build failed with same test failure. It reproduces on CI environment too.
...
The following tests FAILED:
22 - serve_directory (SEGFAULT)

@matt-42
Copy link
Owner

matt-42 commented Nov 23, 2020

Thanks a lot for the report @cong1920 . I fixed this bug in my last commit.

@matt-42 matt-42 closed this Nov 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants