Skip to content

Conversation

@gyx47
Copy link
Contributor

@gyx47 gyx47 commented Oct 25, 2025

riscv64 build() crashes when running LeakSanitizer."LeakSanitizer does not work under ptrace"

@felixonmars
Copy link
Owner

The error you got seems to be a limitation under qemu-user? The original error log suggests actual memory leak I think.

@gyx47
Copy link
Contributor Author

gyx47 commented Oct 27, 2025

I think you're right .The same build passes on native x86_64 using extra-x86_64-build, but fails under extra-riscv64-build.

==2442==ERROR: LeakSanitizer: detected memory leaks
SUMMARY: AddressSanitizer: 104 byte(s) leaked in 3 allocation(s).
CMake Error ... Result: 1
ninja: build stopped
==> ERROR: A failure occurred in build().

In qemu environment, the sanitizer may be too strict and treat the global Qt/GLib event loop residual memory (104B) as a "fatal leak". Under normal circumstances, it should not return 1.so i disabling BUILD_TESTING on riscv64 for now to unblock packaging, since the x86_64 tests already cover it.
Need I add it to qemu-user-blacklist.txt?

@Xeonacid
Copy link
Collaborator

If the error only occurs in QEMU user, but not on native riscv64 board, it's better to add the package to qemu-user-blacklist.txt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants