Bug 24578 – Memory leak in rt.minfo sortCtor

Status
NEW
Severity
minor
Priority
P1
Component
druntime
Product
D
Version
D2
Platform
All
OS
All
Creation time
2024-06-02T11:48:56Z
Last change time
2024-12-07T13:43:34Z
Assigned to
No Owner
Creator
Richard (Rikki) Andrew Cattermole
Moved to GitHub: dmd#17481 →

Comments

Comment #0 by alphaglosined — 2024-06-02T11:48:56Z
An 80 bytes memory leak in ``sortCtor`` appears to exist. This was found with ASAN using ldc on Linux using shared libraries. Martin has confirmed that this will be an upstream issue. ``` ==57995==ERROR: LeakSanitizer: detected memory leaks Direct leak of 80 byte(s) in 2 object(s) allocated from: #0 0x7f72159386b6 in realloc /home/runner/work/llvm-project/llvm-project/compiler-rt/lib/asan/asan_malloc_linux.cpp:85:3 #1 0x561f327a4e13 in _D2rt5minfo11ModuleGroup9sortCtorsMFNbAyaZ6doSortMFNbmKAPyS6object10ModuleInfoZb (/home/rikki/projects/ProjectSidero/eventloop/examples/networking/example_networking+0xb0e13) (BuildId: 08ee12abadfb191c7201255e72848f7ccb6710e9) SUMMARY: AddressSanitizer: 80 byte(s) leaked in 2 allocation(s). ```
Comment #1 by robert.schadek — 2024-12-07T13:43:34Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/17481 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB