Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory leak in rt.minfo sortCtor #17481

Open
dlangBugzillaToGithub opened this issue Jun 2, 2024 · 0 comments
Open

Memory leak in rt.minfo sortCtor #17481

dlangBugzillaToGithub opened this issue Jun 2, 2024 · 0 comments
Labels

Comments

@dlangBugzillaToGithub
Copy link

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).
```
@thewilsonator thewilsonator added the Druntime Specific to druntime label Dec 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants