Ticket #5851 (closed bug: fixed)

Opened 16 months ago

Last modified 15 months ago

RTS Crashes on Exit with double free

Reported by: argiopeweb Owned by: simonmar
Priority: high Milestone: 7.4.2
Component: Runtime System Version: 7.4.1
Keywords: glibc rts free pointer Cc:
Operating System: Linux Architecture: x86_64 (amd64)
Type of failure: Runtime crash Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

On compiling with

ghc -threaded -with-rtsopts="-N2 -A4m -H128m -G4"

or

ghc -threaded -with-rtsopts="-N2 -H128m -G4"

RTS crashes on exit (normal or sigINT) with glibc "free(): invalid pointer" and "double free or corruption (out)" errors, respectively.

Attachments

backtrace.txt Download (5.4 KB) - added by argiopeweb 16 months ago.
GLIBC backtrace

Change History

Changed 16 months ago by argiopeweb

GLIBC backtrace

Changed 16 months ago by argiopeweb

Also confirmed present in GHC 7.2.2 on CentOS 5 with error message

*** glibc detected *** test: double free or corruption (out): 0x0000000017e744f0 ***
*** glibc detected *** test: corrupted double-linked list: 0x0000000017e744c0 ***

Error does not occur if built with "-rtsopts" and run with "+RTS -N -A4m -H128m -G5"

Changed 16 months ago by simonmar

  • owner set to simonmar
  • difficulty set to Unknown
  • priority changed from normal to high
  • milestone set to 7.4.2

Thanks for the report, I'll investigate.

Changed 16 months ago by simonmar

  • status changed from new to merge

I already fixed this in HEAD, but we forgot to merge it.

commit dff852b1b65d07a4a400d3f20c854172c8fcecaf

Author: Simon Marlow <marlowsd@gmail.com>
Date:   Wed Dec 14 10:42:47 2011 +0000

    Fix a memory allocation bug (rts_argv wasn't big enough)

Changed 15 months ago by pcapriotti

  • status changed from merge to closed
  • resolution set to fixed

Merged as 9cca800e178485d5767bc1aedb6d507d04583e14.

Note: See TracTickets for help on using tickets.