-
Notifications
You must be signed in to change notification settings - Fork 222
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 at startup when compiled with ASan/UBSan #377
Comments
hi @craigbarnes thanks for the error report, I should consider doing this on the workflows/actions on each commit. It is a bit strange that I only got heap-buffer-overflow on the spacestring and barstring (allocated on 70 / 74). This was resolved by allocating an extra char. Most likely for termination (?). But you get it on the |
I didn't look very far into what may have been causing it, but your latest commits seem to fix the
I was using
Yeah, it started up fine without the sanitizers enabled. I just compiled with them for curiosity's sake. In my experience, ASan has very few false positives though. If it catches something that doesn't otherwise seem to be a problem, it's usually just down to luck; i.e. the system allocator just happened to round up the alloc sizes enough to avoid the overflow. |
To reproduce:
This was compiled on Arch with GCC 10.2.0 and no config file.
If I add the following to
~/.config/cava/config
:...it starts up fine and works as expected, but then LeakSanitizer gives the following error when exiting:
The text was updated successfully, but these errors were encountered: