http://bugs.winehq.org/show_bug.cgi?id=11547
--- Comment #2 from Jeff Zaroyko jeffzaroyko@gmail.com 2008-02-11 15:55:25 --- Created an attachment (id=10718) --> (http://bugs.winehq.org/attachment.cgi?id=10718) ~/val/bin/valgrind --num-callers=20 --leak-check=full --show-reachable=yes --trace-children=yes wine runghc Setup.hs
(In reply to comment #1)
Try running it under wine under valgrind, maybe? That might give us some clue.
Hmm, I grabbed the latest svn of valgrind from here http://valgrind.org/downloads/repository.html
~/val/bin/valgrind --num-callers=20 --leak-check=full --show-reachable=yes --trace-children=yes wine runghc Setup.hs 2>valgrind.log
Looking at line 2971 onwards, after the "Setup.hs: No command given (try --help)^M" message" shows something similar to what glibc outputs.