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

Segmentation fault #79

Closed
glademiller opened this issue Feb 23, 2018 · 10 comments
Closed

Segmentation fault #79

glademiller opened this issue Feb 23, 2018 · 10 comments

Comments

@glademiller
Copy link
Contributor

I don't have much data to go on but this is what I am seeing.

I am using commit aff43cc.
On Linux with the alpn feature for client HTTPs requests.
I am not serving over https.

I have an endpoint that takes a request makes another request using the Client and then decodes the body and returns JSON.

When compiled in release mode after running some load that isn't super heavy using wrk. Occasionally when the test completes the server experiences a segmentation fault.

@glademiller
Copy link
Contributor Author

I have been attempting to reproduce this when compiling in debug mode but have yet to see it happen. I'll update this if I see it happen but as of right now this is release only.

@glademiller
Copy link
Contributor Author

Forgot to include my toolchain
nightly-x86_64-unknown-linux-gnu (default)
rustc 1.25.0-nightly (b1f8e6fb0 2018-02-22)

@glademiller
Copy link
Contributor Author

I downgraded to
nightly-2018-02-15-x86_64-unknown-linux-gnu (default)
rustc 1.25.0-nightly (3ec5a99aa 2018-02-14)

and have been unable to reproduce the problem. Should we investigate further or chalk it up to a compilation issue?

@fafhrd91
Copy link
Member

Could you try to enable debug=true for release build and then run you app under lldb. When it segfaults, print backtrace. You would need to you your own copy of actix-web

@fafhrd91
Copy link
Member

fafhrd91 commented Feb 26, 2018

Could you also test this on rustc beta

@glademiller
Copy link
Contributor Author

Sorry for the delay I'll try to find some downtime to test this. Unfortunately, I don't think I will be able to do the beta test since my code base is making extensive use of nightly features.

@fafhrd91
Copy link
Member

nightly is fine. I just need backtrace for segfault. also try latest nightly, maybe it was specific nightly bug

@glademiller
Copy link
Contributor Author

I have not been able to reproduce this today on the latest nightly. I tried getting back to rustc 1.25.0-nightly (b1f8e6fb0 2018-02-22) but wasn't able to find which nightly that corresponded to.

I'm going to close this and will reopen if it reappears.

@fafhrd91 fafhrd91 reopened this Mar 3, 2018
@fafhrd91
Copy link
Member

fafhrd91 commented Mar 3, 2018

should be fixed in master, waiting for confirmation

@fafhrd91
Copy link
Member

fafhrd91 commented Mar 3, 2018

seems bug is fixed

@fafhrd91 fafhrd91 closed this as completed Mar 3, 2018
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

No branches or pull requests

2 participants