-
Notifications
You must be signed in to change notification settings - Fork 882
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
Unpack example from quickstart segfaults #1100
Comments
@Kobzol ,Thank you for reporting the issue. Could you try 37fcaa1 (Just before commit merging #1096). @Arenoros, could you debug #1096 ? If you would fixed the issue, please create a new PR. |
I can confirm that with this commit, it doesn't segfault, and Valgrind doesn't report any errors. |
Fixed by #1101 |
Describe the bug
When I try to run the "Streaming feature" example from the C++ quickstart, the program segfaults.
Using the
cpp_master
branch (commit2987022c10ac066b55c6e554369eab92cdebe506
). It works fine with thecpp-6.1.0
tag.To Reproduce
Test file (
test.cpp
):$ git checkout 2987022c10ac066b55c6e554369eab92cdebe506 $ g++ test.cpp -O2 -otest $ ./test "Log message ... 1" Segmentation fault (core dumped)
Using
g++ 11.4.0
on Ubuntu 22.04. It works without optimizations, so it's most probably some UB/memory error. Works withclang 14.0.0
(both with and without optimizations).Here is the Valgrind output:
Memcheck output
Expected behavior
It should not crash.
The text was updated successfully, but these errors were encountered: