Bugs item #563651, was opened at 2002-06-02 21:37
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=108032&aid=563651&group_id=8032

Category: hslibs/lang
Group: 5.02
Status: Open
Resolution: None
Priority: 5
Submitted By: Mike Gunter (magunter)
Assigned to: Nobody/Anonymous (nobody)
Summary: filterPS fails if skips > 255 characters

Initial Comment:
The following program:

  import System         ( getArgs )
  import PackedString   ( filterPS, packString )

  main  = System.getArgs >>= realMain 
  realMain [c:[]] = print $ filterPS (c ==) (packString
str)
    where str = replicate 252 'y' ++ "abcdef"

will segmentation fault if given ["d"], ["e"], or ["f"]
as it's arguments.
Things work as expect with any other argument. 
Similarly, GHCi
segmentation faults when you try to evaluate realMain
["d"], etc.

This is 5.02.3 on Debian x86.

        thanks,
        mike


----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=108032&aid=563651&group_id=8032
_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to