Opened 8 years ago

Closed 8 years ago

#895 closed bug (invalid)

pugs: internal error: task 0x1b00330: main thread 1 has been GC'd

Reported by: guest Owned by: simonmar
Priority: normal Milestone:
Component: Runtime System Version: 6.5
Keywords: Cc:
Operating System: MacOS X Architecture: x86
Type of failure: Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

pugs: internal error: task 0x1b00330: main thread 1 has been GC'd

(GHC version 6.5 for i386_apple_darwin)
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug

Full -Ds log is available at:

http://perlcabal.org/~audreyt/tmp/main_gc_bug.txt.gz

This is GCC 4.0.1 on Intel Mac with -O; this bug started manifesting somewhere around August.

Also, this bug does not manifest with -threaded RTS, and only breaks with the vanilla RTS.
JaffaCake?++ suggested it may have something to do with FFI callbacks.

Thanks!
Audrey

Change History (3)

comment:1 Changed 8 years ago by simonpj

  • Milestone set to _|_
  • Owner set to simonmar

Can you use -threaded? If so, it's still a bug, but we might just leave this open.

Can you give us a complete repo case? I.e. instructions to build, build flags etc.

comment:2 Changed 8 years ago by guest

Uhm, the original report says "Also, this bug does not manifest with -threaded RTS, and only breaks with the vanilla RTS." so -threaded cause the bug to disappear, it seems.

The complete repo case is using GHC 6.6 branch, build with default flags, and pugs (http://svn.openfoundry.org/pugs/) built with default flags. "./configure ; make" will show this bug; to make it happen again, "/opt/local/bin/perl util/gen_prelude.pl -v -i src/perl6/Prelude.pm -p ./pugs --output blib6/lib/Prelude.pm.yml" is the stage in the build process that does it.

It may very well be Mac OSX Intel specific, too...

comment:3 Changed 8 years ago by guest

  • Resolution set to invalid
  • Status changed from new to closed

It turns out there's a workaround to this problem, by not using addForeignPtrFinalizer the way HsJudy? was using it. Still puzzling about why the threaded RTS doesn't fail, but there are plenty of other ways to do the needed GC in FFI land, so I'll close this ticket.

Thanks,
Audrey

Note: See TracTickets for help on using tickets.