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

[redis_proxy] New UNWATCH command causes unexpected behavior on release build only #37825

Open
dbarbosapn opened this issue Dec 27, 2024 · 4 comments · May be fixed by #37827
Open

[redis_proxy] New UNWATCH command causes unexpected behavior on release build only #37825

dbarbosapn opened this issue Dec 27, 2024 · 4 comments · May be fixed by #37827
Labels
bug triage Issue requires triage

Comments

@dbarbosapn
Copy link
Contributor

When running UNWATCH on release build, it returns QUEUED instead of OK. If we initiate a transaction after that (with MULTI) and end it (with EXEC) we get a SEGFAULT and envoy crashes.

Preliminary investigation suggests that due to release compiler optimizations, memory ordering happens differently, causing class initialization to happen unexpectedly, and transaction.active_ to be true on filter initialization (when it shouldn't!)

@dbarbosapn dbarbosapn added bug triage Issue requires triage labels Dec 27, 2024
@dbarbosapn
Copy link
Contributor Author

dbarbosapn commented Dec 27, 2024

Wondering if there's some CI improvements that could be made to run tests against a release/optimized build?
Wdyt @wbpcode, @mattklein123 ?

@mattklein123
Copy link
Member

Wondering if there's some CI improvements that could be made to run tests against a release/optimized build?
Wdyt @wbpcode, @mattklein123 ?

Unless something has changed we do run tests on release/optimized builds, so I would imagine this a bug that is showing up with your specific compiler version or environment.

@dbarbosapn
Copy link
Contributor Author

Wondering if there's some CI improvements that could be made to run tests against a release/optimized build?
Wdyt @wbpcode, @mattklein123 ?

Unless something has changed we do run tests on release/optimized builds, so I would imagine this a bug that is showing up with your specific compiler version or environment.

Then it's really a mystery, because we took the build from CI 😄 This one https://github.com/envoyproxy/envoy/actions/runs/12383502998

@dbarbosapn
Copy link
Contributor Author

dbarbosapn commented Dec 27, 2024

And the build from the linked PR doesn't reproduce the issue somehow 😕

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug triage Issue requires triage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants