#4860: Text.Regex crasher
-----------------------------+----------------------------------------------
Reporter: batkins | Owner:
Type: bug | Status: new
Priority: high | Milestone: 7.0.2
Component: libraries/base | Version: 7.0.1
Resolution: | Keywords: regex crash
Testcase: | Blockedby:
Difficulty: | Os: MacOS X
Blocking: | Architecture: x86
Failure: Runtime crash |
-----------------------------+----------------------------------------------
Comment(by maeder):
The error is still present in ghc-7.0.1.20110203
http://www.haskell.org/ghc/dist/stable/dist/ghc-7.0.1.20110203-src.tar.bz2
{{{
Loading package regex-compat-0.93.1 ... linking ... done.
^C^CInterrupted.
Prelude> Text.Regex.splitRegex (Text.Regex.mkRegex " ") " "
<interactive>: memory allocation failed (requested 1074790400 bytes)
m18:ghc-7.0.1.20110203 maeder$ ghc --info
[("Project name","The Glorious Glasgow Haskell Compilation System")
,("Project version","7.0.1.20110203")
,("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")
,("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.1.20110203")
,("Global Package
DB","/Users/Shared/maeder/lib/ghc-7.0.1.20110203/package.conf.d")
,("C compiler
flags","[\"-march=i686\",\"-m32\",\"-isysroot\",\"/Developer/SDKs/MacOSX10.5.sdk
\",\"-mmacosx-version-min=10.5\",\"-fno-stack-protector\"]")
,("Gcc Linker
flags","[\"-march=i686\",\"-m32\",\"-isysroot\",\"/Developer/SDKs/MacOSX10.5.sdk
\",\"-mmacosx-version-min=10.5\"]")
,("Ld Linker
flags","[\"-arch\",\"i386\",\"-macosx_version_min\",\"10.5\"]")
]
}}}
The script hsc2hs does not contain
{{{
HSC2HS_EXTRA="--cflag=-m32 --lflag=-m32"
}}}
that was inserted during installation for ghc-6.12.3
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4860#comment:18>
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