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
Ruby: Segfault when accessing empty repeated field via hash #8311
Comments
Thanks for reporting, I have experienced the same issue |
Thanks for the report and the great repro. I have a fix here: #8313 |
After updating from 3.14.0 to 3.15.3, we started seeing a crash that appears related, even with the fix provided in the above PR. If the I've modified the repro script here slightly to demonstrate the failure mode:
With 3.14.0, I get the following output:
With 3.15.3, I get a segfault. I don't think that's quite what the intended behavior is, right? |
Thanks for the report, I've pasted your message into a new issue as this is a different bug, requiring a different fix: #8359 |
What version of protobuf and what language are you using?
Version: 3.15.0
Language: Ruby
What operating system (Linux, Windows, ...) and version?
Linux Debian 10.5
(Docker ruby:2.7.1-slim)
What runtime / compiler are you using (e.g., python version or gcc version)
ruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x86_64-linux]
What did you do?
to_s
Minimal reproduction:
What did you expect to see
Not segfault
What did you see instead?
The text was updated successfully, but these errors were encountered: