June 02 [Issue 24578] New: Memory leak in rt.minfo sortCtor | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=24578 Issue ID: 24578 Summary: Memory leak in rt.minfo sortCtor Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: minor Priority: P1 Component: druntime Assignee: nobody@puremagic.com Reporter: alphaglosined@gmail.com 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). ``` -- |
Copyright © 1999-2021 by the D Language Foundation