Skip to content

Memory leak in rt.minfo sortCtor #2257

Open
@dlangBugzillaToGithub

Description

@dlangBugzillaToGithub

Richard (Rikki) Andrew Cattermole reported this on 2024-06-02T11:48:56Z

Transferred from https://issues.dlang.org/show_bug.cgi?id=24578

Description

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).
```

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions