Skip to content

Bus error in Network package

I encountered a bus error when running some HTTP client code in GHC this morning. I've run this code many times before without error and I'm not sure what's changed since then.

I've reduced the problem down to the following example case:

batkins@hudson hsales (master) % ghci
GHCi, version 6.12.3: http://www.haskell.org/ghc/  :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Loading package ffi-1.0 ... linking ... done.
Prelude> :m + Network.HTTP
Prelude Network.HTTP> simpleHTTP (getRequest "http://www.haskell.org") >>= getResponseBody
Loading package array-0.3.0.1 ... linking ... done.
Loading package syb-0.1.0.2 ... linking ... done.
Loading package base-3.0.3.2 ... linking ... done.
Loading package bytestring-0.9.1.7 ... linking ... done.
Loading package transformers-0.2.2.0 ... linking ... done.
Loading package mtl-2.0.1.0 ... linking ... done.
Loading package parsec-2.1.0.1 ... linking ... done.
Loading package unix-2.4.0.2 ... linking ... done.
Loading package network-2.3 ... linking ... done.
Loading package old-locale-1.0.0.2 ... linking ... done.
Loading package old-time-1.0.0.5 ... linking ... done.
Loading package HTTP-4000.0.9 ... linking ... done.
Bus error

Again, it used to work and I'm not sure what's changed since. Here's my ghc --info:

batkins@hudson hsales (master) % ghc --info
 [("Project name","The Glorious Glasgow Haskell Compilation System")
 ,("Project version","6.12.3")
 ,("Booter version","6.12.2")
 ,("Stage","2")
 ,("Have interpreter","YES")
 ,("Object splitting","YES")
 ,("Have native code generator","YES")
 ,("Support SMP","YES")
 ,("Unregisterised","NO")
 ,("Tables next to code","YES")
 ,("Win32 DLLs","")
 ,("RTS ways","l debug  thr thr_debug thr_l thr_p ")
 ,("Leading underscore","YES")
 ,("Debug on","False")
 ,("LibDir","/Library/Frameworks/GHC.framework/Versions/612/usr/lib/ghc-6.12.3")
 ]
batkins@hudson hsales (master) % uname -a
Darwin hudson 10.6.0 Darwin Kernel Version 10.6.0: Wed Nov 10 18:13:17 PST 2010; root:xnu-1504.9.26~3/RELEASE_I386 i386

Although I used ghci for the example, this is reproducible in compiled and interpreted code as well.

Trac metadata
Trac field Value
Version 6.12.3
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Runtime System
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information