On 17 October 2010 04:45, Duane Johnson <[email protected]> wrote: > I bumped into a segmentation fault in the regex library today and thought > I'd warn others in case similar behavior is observed: > >> Prelude> :m Text.Regex >> Prelude Text.Regex> map read (splitRegex (mkRegex "\\|") "0|1|2|4") :: >> [Int] >> Loading pack:age syb ... linking ... done. >> Loading package array-0.2.0.0 ... linking ... done. >> Loading package bytestring-0.9.1.4 ... linking ... done. >> Loading package regex-base-0.72.0.2 ... linking ... done. >> Loading package regex-posix-0.72.0.3 ... linking ... done. >> Loading package regex-compat-0.71.0.1 ... linking ... done. >> [0,1,2,4] >> Prelude Text.Regex> Segmentation fault
I am on Ubuntu 10.04 with GHC 6.12.3, regex-base-0.93.2, regex-posix-0.94.4 and regex-compat-0.93.1, and I do not have this problem. See below. Did you try it again? That kind of bug might just be GHCi. If it persists, maybe upgrading should fix the issue. ch...@cn-done:~$ 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. λ> :m Text.Regex λ> map read (splitRegex (mkRegex "\\|") "0|1|2|4") :: [Int] Loading package array-0.3.0.1 ... linking ... done. Loading package containers-0.3.0.0 ... linking ... done. Loading package bytestring-0.9.1.7 ... linking ... done. Loading package mtl-1.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. [0,1,2,4] λ> _______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
