| Summary: | Closing spectacle caused a crash | ||
|---|---|---|---|
| Product: | [Applications] Spectacle | Reporter: | Arcadiy Ivanov <arcadiy> |
| Component: | General | Assignee: | Boudhayan Gupta <me> |
| Status: | RESOLVED DOWNSTREAM | ||
| Severity: | crash | CC: | kde, nyanpasu64 |
| Priority: | NOR | Keywords: | drkonqi |
| Version First Reported In: | 20.12.2 | ||
| Target Milestone: | --- | ||
| Platform: | Fedora RPMs | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Arcadiy Ivanov
2021-05-27 00:07:33 UTC
I built an ASAN build of Arch's spectacle and kimageannotator packages (editing the PKGBUILDs to add -DCMAKE_CXX_FLAGS=-fsanitize=address -DCMAKE_LINKER_FLAGS=-fsanitize=address). Now merely opening and closing Spectacle, without taking a screenshot (aside from the startup screenshot) or saving a file, is enough to reliably trigger an Address Sanitizer error. Link to one such error message: https://gist.githubusercontent.com/nyanpasu64/4b21c7890744a20893f2786be7c26e02/raw/f6c16c83a99408e05f2f4cb3800084cfc66ccc8b/gistfile1.txt The exact shadow memory layout is different on every run, but the stack trace function names are consistent. Forgot to post my system information: Operating System: Arch Linux KDE Plasma Version: 5.21.5 KDE Frameworks Version: 5.82.0 Qt Version: 5.15.2 Kernel Version: 5.12.6-arch1-1 OS Type: 64-bit Graphics Platform: X11 Processors: 12 × AMD Ryzen 5 5600X 6-Core Processor Memory: 15.6 GiB of RAM Graphics Processor: NVIDIA GeForce GT 730/PCIe/SSE2 I'm using Spectacle 21.04.1 and kimageannotator 0.5.0, which is noticeably newer than the version of Spectacle reported by the original issue reporter. My stack trace seems similar to the original post, but has more frames including duplicates and QScopedPointerDeleter. This is caused by the underlying kImageAnnotator library. I managed to reproduce the crash, with a similar stack trace, using kImageAnnotator's test program (both the 0.5.0 obtained from Arch's PKGBUILD, and latest Git from https://github.com/ksnip/kImageAnnotator). The bug was reported yesterday at https://github.com/ksnip/kImageAnnotator/issues/242, despite the crash having been present for weeks or months. I agree with that reporter arguing that the delete calls should not be present. Thanks for the investigation, closing this accordingly |