http://bugs.winehq.org/show_bug.cgi?id=12358
Summary: Get optimized/compressed/packed executables (non-upx) working [2] Product: Wine Version: CVS/GIT Platform: PC URL: http://www.blackmaiden.de/releases/safari/ OS/Version: Linux Status: UNCONFIRMED Severity: enhancement Priority: P2 Component: kernel32 AssignedTo: wine-bugs@winehq.org ReportedBy: t.artem@mailcity.com
Created an attachment (id=11847) --> (http://bugs.winehq.org/attachment.cgi?id=11847) demo scene graphics demo
From bug 4733 comment #13
Reported fixed. Please reopen separate new bug reports for any packers that
still don't work.
http://bugs.winehq.org/show_bug.cgi?id=12358
--- Comment #1 from Artem S. Tashkinov t.artem@mailcity.com 2008-04-04 13:29:51 --- Created an attachment (id=11848) --> (http://bugs.winehq.org/attachment.cgi?id=11848) Wine crash log.
http://bugs.winehq.org/show_bug.cgi?id=12358
--- Comment #2 from James Hawkins truiken@gmail.com 2008-04-04 13:32:30 --- geez we asked you to open a new bug report, but not with the exact same name. Please fix the summary to describe the name of the application and what exactly doesn't work. That backtrace doesn't have debugging symbols, so it's pretty useless. Either install the debug package for wine or install wine from source. Also, nothing in that backtrace alludes to this being about "optimized/compressed/packed executables".
http://bugs.winehq.org/show_bug.cgi?id=12358
Artem S. Tashkinov t.artem@mailcity.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #11848|0 |1 is obsolete| |
--- Comment #3 from Artem S. Tashkinov t.artem@mailcity.com 2008-04-04 14:58:32 --- Created an attachment (id=11852) --> (http://bugs.winehq.org/attachment.cgi?id=11852) crash with debug symbols
http://bugs.winehq.org/show_bug.cgi?id=12358
Artem S. Tashkinov t.artem@mailcity.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Severity|enhancement |normal Priority|P2 |P3 Summary|Get |Demo scene application |optimized/compressed/packed |crashes at start up |executables (non-upx) | |working [2] |
--- Comment #4 from Artem S. Tashkinov t.artem@mailcity.com 2008-04-04 15:01:29 --- Under winedbg I managed to successfully run the application ...
http://bugs.winehq.org/show_bug.cgi?id=12358
Lei Zhang thestig@google.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|kernel32 |gdi32 Keywords| |download
--- Comment #5 from Lei Zhang thestig@google.com 2008-04-07 11:20:09 --- The crash log says Wine crashed in ChangeDisplaySettingsExA. It looks like Wine may have actually crashed in GdiConvertToDevmodeW though.
http://bugs.winehq.org/show_bug.cgi?id=12358
--- Comment #6 from Dmitry Timoshkov dmitry@codeweavers.com 2008-04-08 01:43:29 --- Attached demo works just fine here with today's git.
http://bugs.winehq.org/show_bug.cgi?id=12358
--- Comment #7 from Artem S. Tashkinov t.artem@mailcity.com 2008-04-21 14:21:05 --- Still crashes with Wine-0.9.60 release.
http://bugs.winehq.org/show_bug.cgi?id=12358
--- Comment #8 from Dmitry Timoshkov dmitry@codeweavers.com 2008-04-21 22:12:17 --- Works perfectly here with 0.9.60
http://bugs.winehq.org/show_bug.cgi?id=12358
--- Comment #9 from Austin English austinenglish@gmail.com 2008-04-21 23:55:25 --- 767405e95214de5de589b09e0098dd297dd48890 pocket.exe 6ef0e950c22bdd86a3db21491faa20d01dd91972 bm-safari.zip
I see the crash as well in git and wine 0.9.59.
http://bugs.winehq.org/show_bug.cgi?id=12358
--- Comment #10 from Dmitry Timoshkov dmitry@codeweavers.com 2008-04-22 00:30:57 --- I'm using the one attached to this bug:
d7648565fd4e98d6a9ad45f64bc4f812 bm-safari.zip
http://bugs.winehq.org/show_bug.cgi?id=12358
--- Comment #11 from Austin English austinenglish@gmail.com 2008-04-22 01:04:45 --- (In reply to comment #10)
I'm using the one attached to this bug:
d7648565fd4e98d6a9ad45f64bc4f812 bm-safari.zip
Yes, it's the same (mine was a sha1sum).
http://bugs.winehq.org/show_bug.cgi?id=12358
--- Comment #12 from Artem S. Tashkinov t.artem@mailcity.com 2008-04-27 11:02:31 --- Dmitry,
what's your compiler version and compilation flags?
It looks like this bug is a result of GCC miscompilation or some other quirk.
http://bugs.winehq.org/show_bug.cgi?id=12358
--- Comment #13 from Dmitry Timoshkov dmitry@codeweavers.com 2008-04-28 00:09:29 --- (In reply to comment #12)
what's your compiler version and compilation flags?
[dmitry@ubuntu:]$ gcc --version gcc (GCC) 4.1.2 (Ubuntu 4.1.2-0ubuntu4) Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
This is the compiler provided with Ubuntu 7.04 (64-bit), I never use any special compilation flags.
http://bugs.winehq.org/show_bug.cgi?id=12358
Artem S. Tashkinov t.artem@mailcity.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #11852|0 |1 is obsolete| |
--- Comment #14 from Artem S. Tashkinov t.artem@mailcity.com 2008-05-03 11:01:09 --- Created an attachment (id=12672) --> (http://bugs.winehq.org/attachment.cgi?id=12672) crash with debug symbols
Can anyone explain what is exactly in wine's backtrace? I suppose the problem is with some wine routines:
...
Backtrace: =>1 0xb7c9f8ac memcpy+0x1c() in libc.so.6 (0x0032fd28) 2 0x7da6d2df ChangeDisplaySettingsExA+0x4f(devname=0x0, devmode=<register ESI not in topmost frame>, hwnd=0x0, flags=0x4, lparam=0x0) [/tmp/wine-0.9.61/dlls/user32/sysparams.c:3007] in user32 (0x0032fd68) 3 0x7da6d3dc ChangeDisplaySettingsA+0x3c(devmode=0x32fddc, flags=0x4) [/tmp/wine-0.9.61/dlls/user32/sysparams.c:2979] in user32 (0x0032fd88) 4 0x00407178 in pocket (+0x7178) (0x00400000) 5 0x00000003 (0x00905a4d) 6 0x00000000 (0x00000000) 0xb7c9f8ac memcpy+0x1c in libc.so.6: repe movsl (%esi),%es:(%edi) Modules:
...
http://bugs.winehq.org/show_bug.cgi?id=12358
joaopa jeremielapuree@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr
--- Comment #15 from joaopa jeremielapuree@yahoo.fr 2008-05-03 15:28:37 --- I confirm the crash with current git
Joaopa
http://bugs.winehq.org/show_bug.cgi?id=12358
--- Comment #16 from joaopa jeremielapuree@yahoo.fr 2008-05-03 15:32:48 --- and debug traces confirm Hawkin'v idea: the crash occurs in GdiConvertToDevmodeW(devmode);
Joaopa
http://bugs.winehq.org/show_bug.cgi?id=12358
--- Comment #17 from joaopa jeremielapuree@yahoo.fr 2008-05-03 17:38:08 --- The culprit is in the line
if (dmA->dmDriverExtra) memcpy((char *)dmW + dmW_size, (const char *)dmA + dmA_size, dmA->dmDriverExtra);
Joaopa
http://bugs.winehq.org/show_bug.cgi?id=12358
--- Comment #18 from Dmitry Timoshkov dmitry@codeweavers.com 2008-05-03 21:43:35 --- (In reply to comment #17)
The culprit is in the line if (dmA->dmDriverExtra) memcpy((char *)dmW + dmW_size, (const char *)dmA + dmA_size, dmA->dmDriverExtra);
What values do have dmA->dmSize and dmA->dmDriverExtra on GdiConvertToDevmodeW entry?
http://bugs.winehq.org/show_bug.cgi?id=12358
--- Comment #19 from joaopa jeremielapuree@yahoo.fr 2008-05-03 22:30:33 --- dmA->dmDriverExtra = 32160 adress of dmA = 0x32fddc adress of dmW = 0x124bc0 dmA_size = 148 dmW_size = 212
Joaopa
http://bugs.winehq.org/show_bug.cgi?id=12358
--- Comment #20 from joaopa jeremielapuree@yahoo.fr 2008-05-03 22:37:23 --- dmA->dmDriverExtra = 32161 adress of dmA = 0x32fddc adress of dmW = 0x124bc0 dmA_size = 148 dmW_size = 212 dmA->dmSize = 148
These are the differents values just before the call of the line if(dmA->dmDriverExtra)........
Joaopa
http://bugs.winehq.org/show_bug.cgi?id=12358
--- Comment #21 from Dmitry Timoshkov dmitry@codeweavers.com 2008-05-03 22:51:54 --- (In reply to comment #19)
dmA->dmDriverExtra = 32160 adress of dmA = 0x32fddc
Here I have address of dmA 0033fddc, dmA->dmSize 148, dmA->dmDriverExtra 0
If I set dmA->dmDriverExtra to 32160 and call GdiConvertToDevmodeW XP crashes. You need to figure out why dmA->dmDriverExtra is set to 32160 on your system, i.e. where it comes from.
http://bugs.winehq.org/show_bug.cgi?id=12358
--- Comment #22 from joaopa jeremielapuree@yahoo.fr 2008-05-03 23:07:30 --- In what function is dmA->dmDriverExtra put?
Joaopa
http://bugs.winehq.org/show_bug.cgi?id=12358
--- Comment #23 from Dmitry Timoshkov dmitry@codeweavers.com 2008-05-03 23:12:30 --- (In reply to comment #22)
In what function is dmA->dmDriverExtra put?
I wouldn't ask you to figure that out if I'd knew the answer.
http://bugs.winehq.org/show_bug.cgi?id=12358
--- Comment #24 from joaopa jeremielapuree@yahoo.fr 2008-05-04 08:14:34 --- A funny thing: With WINEDEBUG=+relay wine pocket.exe the crash is disapeared.
Joaopa
http://bugs.winehq.org/show_bug.cgi?id=12358
--- Comment #25 from Artem S. Tashkinov t.artem@mailcity.com 2008-05-04 10:30:24 --- The same here - no crash with WINEDEBUG=+relay
timing issue?
http://bugs.winehq.org/show_bug.cgi?id=12358
--- Comment #26 from Dmitry Timoshkov dmitry@codeweavers.com 2008-05-18 04:48:34 --- The following patch should fix the crashes:
http://www.winehq.org/pipermail/wine-patches/2008-May/054948.html
http://bugs.winehq.org/show_bug.cgi?id=12358
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED
--- Comment #27 from Dmitry Timoshkov dmitry@codeweavers.com 2008-05-19 09:43:07 --- The patch has been committed.
http://bugs.winehq.org/show_bug.cgi?id=12358
--- Comment #28 from joaopa jeremielapuree@yahoo.fr 2008-05-19 11:02:55 --- Indeed the bug is fixed.
Joaopa
http://bugs.winehq.org/show_bug.cgi?id=12358
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #29 from Alexandre Julliard julliard@winehq.org 2008-05-23 10:37:44 --- Closing bugs fixed in 1.0-rc2.
http://bugs.winehq.org/show_bug.cgi?id=12358
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|CVS/GIT |unspecified
https://bugs.winehq.org/show_bug.cgi?id=12358
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Demo scene application |Demoscene 64k 'pocket |crashes at start up |safari' demo by Black | |Maiden crashes at start up Component|gdi32 |user32 CC| |focht@gmx.net Fixed by SHA1| |47b496012938917f7bb37feb7e9 | |71a442456feda Version|unspecified |0.9.59. URL|http://www.blackmaiden.de/r |https://web.archive.org/web |eleases/safari/ |/20180812122337/http://arch | |ive.scene.org/pub/parties/2 | |003/symphony03/in64/bm-safa | |ri.zip
--- Comment #30 from Anastasius Focht focht@gmx.net --- Hello folks,
filling/fixing some fields...
The attached binary from comment #0 is most likely this:
http://www.pouet.net/prod.php?which=10133
Adding stable download link via Internet Archive:
https://web.archive.org/web/20180812122337/http://archive.scene.org/pub/part...
I guess the attachment could be removed although the demoscene guys might not have a hard-on for this kind of "redistribution".
$ sha1sum bm-safari.zip 6ef0e950c22bdd86a3db21491faa20d01dd91972 bm-safari.zip
$ du -sh bm-safari.zip 64K bm-safari.zip
Regards