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
Crash when converting Strings to Floats #2955
Labels
Comments
GDB backtrace of said crash:
|
Some extra output from GDB, currently trying to figure out exactly what causes the crash:
|
Backtraces of all running threads: https://gist.github.com/YorickPeterse/a85d4a59d9faa2a12aa8 |
yorickpeterse
pushed a commit
that referenced
this issue
Feb 25, 2014
In certain cases when a String with only whitespace (be it spaces, newlines or a mix of that) would be converted to a Float this would result in a crash. The added test is a bit odd but it's based on the output/behaviour as described in #2955 (comment). In particular String::byte_size() returned 0 for some reason (this might be a bug on its own as far as I can tell), which would then trigger a crash in Float::from_cstr(). Thanks to @brixen for helping me out with this one as I was, and this might be an understatement, rather clueless on what was going on. See #2955 for more info.
This should be fixed in a527018. I'll re-open if the issue re-surfaces. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When running tests on the latest version of Git master using a production app, I'm presented with the following crash:
Gist link: https://gist.github.com/anonymous/7ab5ae1ff6ac60b031ed
This particular crash only happens after running the application in question for quite some time. It's not yet sure to me what exactly is causing it. As an extra note, Nokogiri (which is being used heavily) was built from Git to make sure that whatever patches it would have were taken into account.
The text was updated successfully, but these errors were encountered: