#4860: Text.Regex crasher
------------------------+---------------------------------------------------
    Reporter:  batkins  |       Owner:                
        Type:  bug      |      Status:  new           
    Priority:  normal   |   Component:  libraries/base
     Version:  7.0.1    |    Keywords:  regex crash   
    Testcase:           |   Blockedby:                
          Os:  MacOS X  |    Blocking:                
Architecture:  x86      |     Failure:  Runtime crash 
------------------------+---------------------------------------------------

Comment(by maeder):

 Ok, I could observe a problem with a 32bit ghc-7.0.0.20101028 after
 installing the MissingH package (via "cabal install MissingH"). It simply
 does not return for me and I interrupted it. But running only the Regex
 example works after a fresh restart of ghci! Maybe there is a problem with
 the many libraries involved.

 Can you compile your program without package MissingH (i.e. by replacing
 splitWs by words)?

 {{{
 m18:~ maeder$ ghc --info
  [("Project name","The Glorious Glasgow Haskell Compilation System")
  ,("Project version","7.0.0.20101028")
  ,("Booter version","6.12.3")
  ,("Stage","2")
  ,("Build platform","i386-apple-darwin")
  ,("Host platform","i386-apple-darwin")
  ,("Target platform","i386-apple-darwin")
  ,("Have interpreter","YES")
  ,("Object splitting","NO")
  ,("Have native code generator","YES")
  ,("Have llvm code generator","YES")
  ,("Use archives for ghci","True")
  ,("Support SMP","YES")
  ,("Unregisterised","NO")
  ,("Tables next to code","YES")
  ,("RTS ways","l debug  thr thr_debug thr_l thr_p  dyn debug_dyn thr_dyn
 thr_debug_dyn")
  ,("Leading underscore","YES")
  ,("Debug on","False")
  ,("LibDir","/Users/Shared/maeder/lib/ghc-7.0.0.20101028")
  ,("Global Package
 DB","/Users/Shared/maeder/lib/ghc-7.0.0.20101028/package.conf.d")
  ]
 m18:~ maeder$ ghci
 GHCi, version 7.0.0.20101028: 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> Data.String.Utils.splitWs "foo bar"
 Loading package array-0.3.0.2 ... linking ... done.
 Loading package containers-0.4.0.0 ... linking ... done.
 Loading package bytestring-0.9.1.8 ... linking ... done.
 Loading package HUnit-1.2.2.3 ... linking ... done.
 Loading package filepath-1.2.0.0 ... linking ... done.
 Loading package old-locale-1.0.0.2 ... linking ... done.
 Loading package old-time-1.0.0.6 ... linking ... done.
 Loading package unix-2.4.1.0 ... linking ... done.
 Loading package directory-1.1.0.0 ... linking ... done.
 Loading package process-1.0.1.4 ... linking ... done.
 Loading package time-1.2.0.3 ... linking ... done.
 Loading package random-1.0.0.3 ... linking ... done.
 Loading package haskell98-1.1.0.0 ... 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 network-2.3 ... linking ... done.
 Loading package hslogger-1.1.0 ... linking ... done.
 Loading package regex-base-0.93.2 ... linking ... done.
 Loading package regex-posix-0.94.4 ... linking ... done.
 Loading package regex-compat-0.93.1 ... linking ... done.
 Loading package MissingH-1.1.0.3 ... linking ... done.
 ^C^C^CPrelude>
 Prelude> :m +Text.Regex
 Prelude Text.Regex> splitRegex (mkRegex "[ \t\n\r\v\f]+") "foo bar"
 <interactive>: memory allocation failed (requested 1152385024 bytes)
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4860#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to