Re: Random crashes with memory corruption symptoms

2020-02-03 Thread Ömer Sinan Ağacan
> Did you try it on the code I sent or did you use some other test case? I tried your code. It's still possible that this is an application bug, of course (maybe in one of the dependencies, if not in your application). > Is there a test-suite in GHC that stresses the threaded runtime? Some of t

Re: Random crashes with memory corruption symptoms

2020-02-03 Thread Harendra Kumar
Ok, I will file an issue. I just wanted to rule out any application level issues first. Did you try it on the code I sent or did you use some other test case? Is there a test-suite in GHC that stresses the threaded runtime? -harendra On Mon, 3 Feb 2020 at 14:09, Ömer Sinan Ağacan wrote: > In th

Re: Random crashes with memory corruption symptoms

2020-02-03 Thread Ömer Sinan Ağacan
In that case it'd be good to move the discussion to Gitlab. Could you file an issue? I was able to reproduce on GHC HEAD. With debug runtime I consistently get this assertion error: internal error: ASSERTION FAILED: file rts/Messages.c, line 95 (GHC version 8.11.0.20200201 for x86_64

Re: Random crashes with memory corruption symptoms

2020-02-02 Thread Harendra Kumar
Unfortunately, it is present in 8.8.2 as well. On Mon, 3 Feb 2020 at 11:22, Ömer Sinan Ağacan wrote: > You should try with 8.8.2 which fixes a bug in the compacting GC (#17088). > > When debugging it's a good idea to use the latest minor release of your GHC > version (8.8.2 in your case), as min

Re: Random crashes with memory corruption symptoms

2020-02-02 Thread Ömer Sinan Ağacan
You should try with 8.8.2 which fixes a bug in the compacting GC (#17088). When debugging it's a good idea to use the latest minor release of your GHC version (8.8.2 in your case), as minor releases fix bugs and usually do not introduce new ones as they don't ship new features. If the problem sti

Re: Random crashes with memory corruption symptoms

2020-02-02 Thread Matthew Pickering
The way to debug these kinds of issues is to use gdb. The best clue in your message seems to be "The GHC heap size is restricted to a small size ~32MB using "-M32M" rts option.". Good luck! Matt On Sun, Feb 2, 2020 at 10:26 PM Harendra Kumar wrote: > > Hi, > > While running a test-suite for th

Random crashes with memory corruption symptoms

2020-02-02 Thread Harendra Kumar
Hi, While running a test-suite for the streaming library streamly I am encountering a crash which seems to happen at random places at different times. The common messages are: * Segmentation fault: 11 * internal error: scavenge_mark_stack: unimplemented/strange closure type 24792696 @ 0x4200a623