On Thu, 2009-12-10 at 18:21 +0530, Salil wrote: > I tried compiling the darcs version of gtk2hs with ghc 6.12 rc2. > > After doing that things seemed to be working until c2hsLocal starting > working on gtk/Graphics/UI/Gtk/Selectors/FileChooser.chs. At this > point, memory usage kept climbing, and the process was eventually > killed (I have only 1gb ram). The strange thing is this only happens > with ghc 6.12. With ghc 6,10,4, everything works (I did not see > exactly how much memory was used in that case). > > Any ideas?
After a little more investigation I found that the file in question contains the UTF8 encoding of Unicode characters with code points > 255. My suspicion is that the c2hs lexer for .chs files goes into an infinite loop in this case since it assumes that all characters are 0..255: anySet = ['\0'..'\255'] The fix will either be to rewrite the chs lexer or to read the file in ASCII rather than the default locale encoding. Duncan ------------------------------------------------------------------------------ Return on Information: Google Enterprise Search pays you back Get the facts. http://p.sf.net/sfu/google-dev2dev _______________________________________________ Gtk2hs-devel mailing list Gtk2hs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel