Ticket #2397 (closed bug: worksforme)

Opened 5 years ago

Last modified 5 years ago

inclusion of Network.Curl causes compiler issues and coredumps

Reported by: b7j0c Owned by: simonmar
Priority: high Milestone: 6.10.1
Component: libraries (other) Version: 6.8.2
Keywords: curl, GC Cc: emertens@…, diatchki@…, dons@…
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

the attached program began to show compiler failures (though not always reproducible), and coredumps (again, not always reproducible) once HXT was replaced with Text.XML.Light.

i have taken care to install (and reinstall) packages with cabal-install although many of the packages i use were originally installed with traditional Setup.hs installation and registry.

i'm really not sure what the issue is.

my environment is ghc-6.8.2 on freebsd7/i386. my ghc was installed from freebsd ports. i use cabal-install to manage other packages. this program is the only one i have had issues with. i am attaching the program in its entirety.

Attachments

newspage.hs Download (4.6 KB) - added by b7j0c 5 years ago.
the failure-prone program in its entirety

Change History

Changed 5 years ago by b7j0c

the failure-prone program in its entirety

Changed 5 years ago by b7j0c

  • cc emertens@…, diatchki@… added
  • component changed from Compiler (FFI) to libraries (other)
  • summary changed from inclusion of Text.XML.Light causes compiler issues and coredumps to inclusion of Network.Curl causes compiler issues and coredumps

i compiled this program with -debug and ran it through gdb, here is the output:

(gdb) run Starting program: /usr/home/brad/git/dev/haskell/newspage/newspage newspage: internal error: task 0x286040e0: main thread 1 has been GC'd

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

Program received signal SIGABRT, Aborted. 0x283f3007 in kill () from /lib/libc.so.7

including network.curl maintainers

Changed 5 years ago by b7j0c

ignore above comments regarding hxt and text.xml.light, it is doubtful they are the issue

Changed 5 years ago by igloo

  • difficulty set to Unknown
  • milestone set to 6.10.1

Changed 5 years ago by dons

  • cc dons@… added
  • keywords curl, GC added
$ ghc --make newspage.hs 
[1 of 1] Compiling Main             ( newspage.hs, newspage.o )
Linking newspage ...

$ ./newspage 
newspage: internal error: task 0xda5c30: main thread 1 has been GC'd
    (GHC version 6.8.2 for x86_64_unknown_linux)
    Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug
zsh: abort      ./newspage

Now, the curl library uses finalisers and MVars to manage resources. I wonder if this is a finaliser issue.

Changed 5 years ago by simonmar

  • owner set to simonmar

the program currently hangs for me waiting for a response from download.finance.yahoo.com. I'll try again later.

Changed 5 years ago by simonmar

  • priority changed from normal to high

Changed 5 years ago by simonmar

  • status changed from new to closed
  • resolution set to worksforme

I've been unable to reproduce this on x86-64-Linux (however I did find a problem with the curl library and GHC 6.10 which I've fixed, so it wasn't a completely pointless exercise).

Lacking a way to reproduce this we'll have to close the ticket and hope if the bug still exists that it resurfaces later.

Changed 5 years ago by simonmar

  • architecture changed from Unknown to Unknown/Multiple

Changed 5 years ago by simonmar

  • os changed from Unknown to Unknown/Multiple
Note: See TracTickets for help on using tickets.