http://bugs.winehq.org/show_bug.cgi?id=11547
Summary: corrupted double-linked list - glasgow haskell compiler Product: Wine Version: 0.9.55. Platform: All OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: jeffzaroyko@gmail.com
Created an attachment (id=10714) --> (http://bugs.winehq.org/attachment.cgi?id=10714) glibc message and +heap log
When invoking wine runghc Setup.hs, the attached error intermittently occurs.
to reproduce:
wget http://haskell.org/ghc/dist/6.8.2/ghc-6.8.2-i386-windows.exe (33MB) wine ghc-6.8.2i386-windows.exe wget http://hackage.haskell.org/packages/archive/Diff/0.1/Diff-0.1.tar.gz tar xf Diff-0.1.tar.gz cd Diff-0.1 wine runghc Setup.hs (repeat several times if it doesn't fail)
The message should be printed more or less immediately.
Also attached is a +heap log
I understand that this could be a bug in ghc, testing on windows doesn't reveal any symptoms of undefined behavior in the app, but I understand that this isn't conclusive enough to say that the app isn't at fault.
If we can determine who is at fault, I will file the bug with the ghc project.
http://bugs.winehq.org/show_bug.cgi?id=11547
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dank@kegel.com
--- Comment #1 from Dan Kegel dank@kegel.com 2008-02-11 09:01:09 --- Try running it under wine under valgrind, maybe? That might give us some clue.
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.
http://bugs.winehq.org/show_bug.cgi?id=11547
--- Comment #3 from Jeff Zaroyko jeffzaroyko@gmail.com 2008-02-12 23:39:58 --- Created an attachment (id=10742) --> (http://bugs.winehq.org/attachment.cgi?id=10742) run using purify under Windows XP SP2
http://bugs.winehq.org/show_bug.cgi?id=11547
--- Comment #4 from Dan Kegel dank@kegel.com 2008-02-13 06:39:10 --- The one invalid free is [E] FIM: Freeing invalid memory in LocalFree {36 occurrences} Address 0x00265650 points into a HeapAlloc'd block in unallocated region of the default heap Location of free attempt LocalFree [C:\WINDOWS\system32\KERNEL32.dll] IsValidLocale [C:\WINDOWS\system32\kernel32.dll] Does IsValidLocale also show up in Valgrind?
http://bugs.winehq.org/show_bug.cgi?id=11547
--- Comment #5 from Jeff Zaroyko jeffzaroyko@gmail.com 2008-02-13 14:15:17 --- (In reply to comment #4)
The one invalid free is [E] FIM: Freeing invalid memory in LocalFree {36 occurrences} Address 0x00265650 points into a HeapAlloc'd block in unallocated region of the default heap Location of free attempt LocalFree [C:\WINDOWS\system32\KERNEL32.dll] IsValidLocale [C:\WINDOWS\system32\kernel32.dll] Does IsValidLocale also show up in Valgrind?
No it doesn't
http://bugs.winehq.org/show_bug.cgi?id=11547
Jeff Zaroyko jeffzaroyko@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED
--- Comment #6 from Jeff Zaroyko jeffzaroyko@gmail.com 2008-04-07 21:26:19 --- Tested wine-0.9.59-124-g18828f4,
for ((i=0; i < 100; i++)) do ~/git/wine/wine runghc Setup.lhs ;done
I can no longer reproduce this problem in latest git, so resolving fixed.
http://bugs.winehq.org/show_bug.cgi?id=11547
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #7 from Alexandre Julliard julliard@winehq.org 2008-04-18 11:04:02 --- Closing bugs reported fixed in 0.9.60.
http://bugs.winehq.org/show_bug.cgi?id=11547
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Platform|All |Other
--- Comment #8 from Austin English austinenglish@gmail.com 2012-02-23 15:25:15 CST --- Removing deprecated 'All' Platform.