Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
6.3.0 Beta2, 6.4.0
-
None
-
Ubuntu 20.04 LTS
clang 10.0.0
-
404c5dc49f (qt/qtbase/dev) 404c5dc49f (qt/tqtc-qtbase/dev) 0b0520f233 (qt/qtbase/6.3) 0b0520f233 (qt/tqtc-qtbase/6.3) 0b0520f233 (qt/tqtc-qtbase/6.3.0)
Description
- Configure qtbase with "-sanitize address" and build it.
- Build the attached project.
qt-cmake /tmp/report/ && cmake --build .
It only contains a minimal QGuiApplication:
int main(int argc, char *argv[]) { QGuiApplication qga(argc, argv); return 0; }
- Run the resulting binary:
./report
ASAN will report a memory leak:
qtrob@rob-desktop:/tmp/minimize$ ./report ================================================================= ==96478==ERROR: LeakSanitizer: detected memory leaks Direct leak of 60 byte(s) in 1 object(s) allocated from: #0 0x4b446d in malloc (/tmp/minimize/report+0x4b446d) #1 0x7fafcd81e0c5 (/usr/lib/x86_64-linux-gnu/libxcb.so.1+0xe0c5) SUMMARY: AddressSanitizer: 60 byte(s) leaked in 1 allocation(s).
Qt 6.2.3 does not leak memory in this situation.
Attachments
Issue Links
- replaces
-
QTBUG-101282 [REG 6.2.3 -> dev] Loading any .ico file leaks memory
-
- Closed
-