http://bugs.winehq.org/show_bug.cgi?id=25423
Summary: "38644" 1024 bytes demo crashes Product: Wine Version: 1.3.8 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: t.artem@mailcity.com
Created an attachment (id=32357) --> (http://bugs.winehq.org/attachment.cgi?id=32357) demo itself
Backtrace is quite useless:
Backtrace: 0x7e77d560: insb %dx,%es:(%edi)
This demo uses GLSL/OpenGL.
http://bugs.winehq.org/show_bug.cgi?id=25423
Artem S. Tashkinov t.artem@mailcity.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download URL| |http://pouet.net/prod.php?w | |hich=56331
http://bugs.winehq.org/show_bug.cgi?id=25423
Louis Lenders xerox_xerox2000@yahoo.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW CC| |xerox_xerox2000@yahoo.co.uk Ever Confirmed|0 |1
--- Comment #1 from Louis Lenders xerox_xerox2000@yahoo.co.uk 2011-10-23 16:41:30 CDT --- confirming. Still crashes in current git
http://bugs.winehq.org/show_bug.cgi?id=25423
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- URL|http://pouet.net/prod.php?w |http://titandemo.org/prod_a |hich=56331 |.php?id=69 CC| |focht@gmx.net Component|-unknown |opengl Summary|"38644" 1024 bytes demo |"38644" - Mandelbulb in 1K |crashes |intro crashes
--- Comment #2 from Anastasius Focht focht@gmx.net 2011-10-30 07:42:51 CDT --- Hello,
it seems the demo uses its own loader/imports resolver (directly walks PE structures).
Unfortunately it can't cope with forwarded imports. The author probably didn't expect that Wine forwards some opengl32 API.
Partial dump of the loaders own "IAT":
--- snip --- ... 004300B4 7E61A912 ; opengl32.glColor3us 004300B8 7E61969C ; opengl32.glAccum 004300BC 7E62259D ; opengl32.glRectf 004300C0 7E61969C ; opengl32.glAccum 004300C4 7E66C75C ; ASCII "gdi32.wglCreateContext" 004300C8 7E6266B2 ; opengl32.wglGetProcAddress 004300CC 7E66C7EA ; ASCII "gdi32.wglMakeCurrent" 004300D0 00000000 --- snip ---
opengl32.spec:
http://source.winehq.org/git/wine.git/blob/658b048940e837e988487a64a4be3d4c6...
If you make small wrappers for wglCreateContext() and wglMakeCurrent() which call corresponding gdi32 API using function pointers the demos will work.
The "magic" of 1K is actually a little shader snippet and of course squeezing out PE header specs ;-)
Regards
http://bugs.winehq.org/show_bug.cgi?id=25423
--- Comment #3 from Louis Lenders xerox_xerox2000@yahoo.co.uk 2011-10-30 12:11:58 CDT --- Created attachment 37207 --> http://bugs.winehq.org/attachment.cgi?id=37207 patch
Nice find AF! Here's a patch that fixes the problem. I'll send to wine-patches later this evening
http://bugs.winehq.org/show_bug.cgi?id=25423
Louis Lenders xerox_xerox2000@yahoo.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |rodseth@gmail.com
--- Comment #4 from Louis Lenders xerox_xerox2000@yahoo.co.uk 2011-10-30 13:37:51 CDT --- *** Bug 28879 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=25423
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |8a2e38cc45aef0d064e3af53b34 | |7d7f84aec4ea7 Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #5 from Austin English austinenglish@gmail.com 2011-11-02 14:56:50 CDT --- http://source.winehq.org/git/wine.git/commitdiff/8a2e38cc45aef0d064e3af53b34...
http://bugs.winehq.org/show_bug.cgi?id=25423
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #6 from Alexandre Julliard julliard@winehq.org 2011-11-04 14:15:16 CDT --- Closing bugs fixed in 1.3.32.
http://bugs.winehq.org/show_bug.cgi?id=25423
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |obfuscation