question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] malloc.c:2385: sysmalloc: Assertion failed

See original GitHub issue

When I starting loading and saving reports in threads Exception thrown: malloc.c:2385: sysmalloc: Assertion `(old_top == initial_top (av) && old_size == 0) || ((unsigned long) (old_size) >= MINSIZE && prev_inuse (old_top) && ((unsigned long) old_end & (pagesize - 1)) == 0)’ failed

Exception appears on Linux containers only - default .Net Core 5 container. (however this exception does not appear on Windows)

var t1 = Task.Run(SaveReport);
var t2 = Task.Run(SaveReport);
var t3 = Task.Run(SaveReport);
var t4 = Task.Run(SaveReport);
var t5 = Task.Run(SaveReport);

Task.WaitAll(t1, t2, t3, t4, t5);

public void SaveReport() {
    Report r = new Report();
    r.LoadPrepared("TestReport.fpx");
    r.SavePrepared(Guid.NewGuid() + ".fpx");                
}

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
fediachovcommented, Jul 16, 2021

Thanks for the wait and the bug report! The bug has been localized. We need a few days for testing. I will let you know when a new build is released.

1reaction
fediachovcommented, Jul 20, 2021

@zs-dima Could you test latest changes in 2021.3.17?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Malloc assertion failed (malloc.c:2385)
So Im doing so Matrix calculations/conversions right now and now an assertion error showed up. I started implementing a Matrix-CRS-Conversion ...
Read more >
ntfsclone: malloc.c:2385: sysmalloc: Assertion `(old_top = ...
Description of problem: When using ntfsclone we observe this error which seems to indicate memory corruption in the binary: ntfsclone -o ...
Read more >
malloc assertion failed · Issue #9 · csyben/PYRO-NN
The error is: python: malloc.c:2385: sysmalloc: Assertion (old_top == initial_top (av) && old_size == 0) || ((unsigned long) ...
Read more >
Malloc failed
The following error was encountered :- server: malloc.c:2385: sysmalloc: Assertion `(old_top == initial_top (av) && old_size == 0) || ((unsigned long) ...
Read more >
[Solved]-malloc.c:2451: sYSMALLOc Assertion failed in C-C
By overrunning the allocated buffer, you may corrupt internal data structures used by malloc() to do its bookkeeping, which is why you see...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found