http://bugs.winehq.org/show_bug.cgi?id=19720
Summary: Game (Amelie's Cafe) cannot be starten Product: Wine Version: 1.1.27 Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: kernel32 AssignedTo: wine-bugs@winehq.org ReportedBy: pascal.bouman@gmail.com CC: pascal.bouman@gmail.com
Dear sir, madam,
I have a problem starting a game with wine. The output is in the attachment.
With kind regard, Pascal
http://bugs.winehq.org/show_bug.cgi?id=19720
--- Comment #1 from pascal.bouman@gmail.com 2009-08-13 11:35:52 --- Created an attachment (id=23045) --> (http://bugs.winehq.org/attachment.cgi?id=23045) Error log
http://bugs.winehq.org/show_bug.cgi?id=19720
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #23045|application/octet-stream |text/plain mime type| | Attachment #23045|Amelie error |Amelie error.txt filename| |
http://bugs.winehq.org/show_bug.cgi?id=19720
--- Comment #2 from Austin English austinenglish@gmail.com 2009-08-13 11:46:25 --- Is there any terminal output? Does native msxml3 help?
http://bugs.winehq.org/show_bug.cgi?id=19720
Juan Lang juan_lang@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|kernel32 |-unknown
--- Comment #3 from Juan Lang juan_lang@yahoo.com 2009-08-13 13:11:12 --- Also please try with a more recent version of Wine.
http://bugs.winehq.org/show_bug.cgi?id=19720
--- Comment #4 from pascal.bouman@gmail.com 2009-08-13 13:36:28 --- Tnx for the fast replies.
I'm currently using version: 1.1.27
Terminal output:
fixme:mountmgr:harddisk_ioctl unsupported ioctl 2d1400 fixme:mountmgr:harddisk_ioctl unsupported ioctl 74080
wine: Unhandled page fault on read access to 0x00341000 at address 0xb7eb71ca (thread 001c), starting debugger... Unhandled exception: page fault on read access to 0x00341000 in 32-bit code (0xb7e961ca). Register dump: CS:0073 SS:007b DS:007b ES:007b FS:0033 GS:003b EIP:b7e961ca ESP:0032b7f0 EBP:0032b80c EFLAGS:00010216( R- -- I -A-P- ) EAX:000127ff EBX:7b8b8ff4 ECX:00000000 EDX:0000b7d3 ESI:7f7ed472 EDI:00341000 Stack dump: 0x0032b7f0: 00000000 00000010 0000acf4 7bc346df 0x0032b800: 00340ffe 7f7f8019 00000000 0032b85c 0x0032b810: 7b860b2c 00000000 0032b8b2 7f7f8019 0x0032b820: 00000000 00000000 00000000 00000000 0x0032b830: 00000000 00ec0000 00000002 00000000 0x0032b840: 00000000 00000000 00000000 0001340a Backtrace: =>0 0xb7e961ca wine_utf8_wcstombs+0x16a() in libwine.so.1 (0x0032b80c) 1 0x7b860b2c WideCharToMultiByte+0x29c() in kernel32 (0x0032b85c) 2 0x7d96e37d in msxml3 (+0xe37d) (0x0032b89c) 3 0x0053daa2 in amelie.rwg (+0x13daa2) (0x0033ecd0) 4 0x0053ac2f in amelie.rwg (+0x13ac2f) (0x0033ff08) 5 0x7b878500 in kernel32 (+0x58500) (0x0033ffe8) 6 0xb7e93e1d wine_call_on_stack+0x1d() in libwine.so.1 (0x00000000) 0xb7e961ca wine_utf8_wcstombs+0x16a in libwine.so.1: movzwl 0x0(%edi),%ecx Modules: Module Address Debug info Name (104 modules) PE 400000- 67a000 Export amelie.rwg PE 10000000-10059000 Deferred squall PE 65340000-653d2000 Deferred oleaut32 PE 65f00000-65fc2000 Deferred ole32 ELF 7b800000-7b96e000 Export kernel32<elf> -PE 7b820000-7b96e000 \ kernel32 ELF 7bc00000-7bcb1000 Deferred ntdll<elf> -PE 7bc10000-7bcb1000 \ ntdll ELF 7bf00000-7bf04000 Deferred <wine-loader> ELF 7d631000-7d6a0000 Deferred msvcrt<elf> -PE 7d640000-7d6a0000 \ msvcrt ELF 7d6a0000-7d6b6000 Deferred psapi<elf> -PE 7d6b0000-7d6b6000 \ psapi ELF 7d6b6000-7d705000 Deferred dbghelp<elf> -PE 7d6c0000-7d705000 \ dbghelp ELF 7d71d000-7d754000 Deferred libxslt.so.1 ELF 7d754000-7d777000 Deferred mpr<elf> -PE 7d760000-7d777000 \ mpr ELF 7d777000-7d7cd000 Deferred wininet<elf> -PE 7d780000-7d7cd000 \ wininet ELF 7d7cd000-7d812000 Deferred urlmon<elf> -PE 7d7d0000-7d812000 \ urlmon ELF 7d812000-7d94e000 Deferred libxml2.so.2 ELF 7d94e000-7d99f000 Export msxml3<elf> -PE 7d960000-7d99f000 \ msxml3 ELF 7d99f000-7d9f7000 Deferred ddraw<elf> -PE 7d9b0000-7d9f7000 \ ddraw ELF 7d9f7000-7da0b000 Deferred lz32<elf> -PE 7da00000-7da0b000 \ lz32 ELF 7da0b000-7da26000 Deferred version<elf> -PE 7da10000-7da26000 \ version ELF 7da26000-7da3b000 Deferred midimap<elf> -PE 7da30000-7da3b000 \ midimap ELF 7da3b000-7da61000 Deferred msacm32<elf> -PE 7da40000-7da61000 \ msacm32 ELF 7da61000-7da79000 Deferred msacm32<elf> -PE 7da70000-7da79000 \ msacm32 ELF 7e27a000-7e280000 Deferred libattr.so.1 ELF 7e280000-7e287000 Deferred libgdbm.so.3 ELF 7e287000-7e2e6000 Deferred libpulse.so.0 ELF 7e2f7000-7e300000 Deferred librt.so.1 ELF 7e300000-7e3c8000 Deferred libasound.so.2 ELF 7e3cd000-7e3d2000 Deferred libcap.so.2 ELF 7e3d2000-7e3d9000 Deferred libasound_module_pcm_pulse.so ELF 7e3d9000-7e410000 Deferred winealsa<elf> -PE 7e3e0000-7e410000 \ winealsa ELF 7e45e000-7e491000 Deferred uxtheme<elf> -PE 7e460000-7e491000 \ uxtheme ELF 7e491000-7e49a000 Deferred libxcursor.so.1 ELF 7e49a000-7e49f000 Deferred libxfixes.so.3 ELF 7e49f000-7e4a3000 Deferred libxcomposite.so.1 ELF 7e4a3000-7e4ab000 Deferred libxrandr.so.2 ELF 7e4ab000-7e4b5000 Deferred libxrender.so.1 ELF 7e4b5000-7e4bb000 Deferred libxxf86vm.so.1 ELF 7e4bb000-7e4dc000 Deferred imm32<elf> -PE 7e4c0000-7e4dc000 \ imm32 ELF 7e4dc000-7e4e1000 Deferred libxdmcp.so.6 ELF 7e4e1000-7e4fb000 Deferred libxcb.so.1 ELF 7e4fb000-7e4ff000 Deferred libxau.so.6 ELF 7e4ff000-7e504000 Deferred libuuid.so.1 ELF 7e504000-7e5f3000 Deferred libx11.so.6 ELF 7e5f3000-7e603000 Deferred libxext.so.6 ELF 7e603000-7e61b000 Deferred libice.so.6 ELF 7e61b000-7e624000 Deferred libsm.so.6 ELF 7e635000-7e6d4000 Deferred winex11<elf> -PE 7e640000-7e6d4000 \ winex11 ELF 7e70d000-7e734000 Deferred libexpat.so.1 ELF 7e734000-7e761000 Deferred libfontconfig.so.1 ELF 7e772000-7e788000 Deferred libz.so.1 ELF 7e788000-7e7ff000 Deferred libfreetype.so.6 ELF 7e7ff000-7e84c000 Deferred dsound<elf> -PE 7e810000-7e84c000 \ dsound ELF 7e84c000-7e862000 Deferred libresolv.so.2 ELF 7e862000-7e882000 Deferred iphlpapi<elf> -PE 7e870000-7e882000 \ iphlpapi ELF 7e882000-7e8b0000 Deferred ws2_32<elf> -PE 7e890000-7e8b0000 \ ws2_32 ELF 7e8b0000-7e8cb000 Deferred wsock32<elf> -PE 7e8c0000-7e8cb000 \ wsock32 ELF 7e8cb000-7e967000 Deferred winmm<elf> -PE 7e8e0000-7e967000 \ winmm ELF 7e967000-7ea2f000 Deferred comctl32<elf> -PE 7e970000-7ea2f000 \ comctl32 ELF 7ea2f000-7ea86000 Deferred advapi32<elf> -PE 7ea40000-7ea86000 \ advapi32 ELF 7ea86000-7eb28000 Deferred gdi32<elf> -PE 7eaa0000-7eb28000 \ gdi32 ELF 7eb28000-7ec74000 Deferred user32<elf> -PE 7eb40000-7ec74000 \ user32 ELF 7ec74000-7ecd2000 Deferred shlwapi<elf> -PE 7ec80000-7ecd2000 \ shlwapi ELF 7ecd2000-7ee60000 Deferred shell32<elf> -PE 7ece0000-7ee60000 \ shell32 ELF 7ee60000-7ee6c000 Deferred libnss_files.so.2 ELF 7ee6c000-7ee85000 Deferred libnsl.so.1 ELF 7ee85000-7ee8e000 Deferred libnss_compat.so.2 ELF 7ee8e000-7ee91000 Deferred libxinerama.so.1 ELF 7efc9000-7efef000 Deferred libm.so.6 ELF 7eff5000-7f000000 Deferred libnss_nis.so.2 ELF b7cfa000-b7cfe000 Deferred libdl.so.2 ELF b7cfe000-b7e61000 Deferred libc.so.6 ELF b7e62000-b7e7b000 Deferred libpthread.so.0 ELF b7e8c000-b7fc8000 Export libwine.so.1 ELF b7fca000-b7fe8000 Deferred ld-linux.so.2 Threads: process tid prio (all id:s are in hex) 00000008 0000001f 0 00000009 0 0000000e 00000016 0 00000015 0 00000014 0 00000010 0 0000000f 0 00000011 00000018 0 00000017 0 00000013 0 00000012 0 00000019 0000001a 0 0000001b (D) C:\Program Files\Amelies Cafe\Amelie.RWG 00000020 0 0000001c 0 <== 0000001d 0000001e 0 Backtrace: =>0 0xb7e961ca wine_utf8_wcstombs+0x16a() in libwine.so.1 (0x0032b80c) 1 0x7b860b2c WideCharToMultiByte+0x29c() in kernel32 (0x0032b85c) 2 0x7d96e37d in msxml3 (+0xe37d) (0x0032b89c) 3 0x0053daa2 in amelie.rwg (+0x13daa2) (0x0033ecd0) 4 0x0053ac2f in amelie.rwg (+0x13ac2f) (0x0033ff08) 5 0x7b878500 in kernel32 (+0x58500) (0x0033ffe8) 6 0xb7e93e1d wine_call_on_stack+0x1d() in libwine.so.1 (0x00000000)
http://bugs.winehq.org/show_bug.cgi?id=19720
--- Comment #5 from pascal.bouman@gmail.com 2009-08-13 13:37:16 --- (In reply to comment #4) Sorry I should have attached this in a file...
http://bugs.winehq.org/show_bug.cgi?id=19720
--- Comment #6 from pascal.bouman@gmail.com 2009-08-13 13:38:21 --- (In reply to comment #2)
Is there any terminal output? Does native msxml3 help?
Tnx, I could sure try this. How do I install this native msxml3?
http://bugs.winehq.org/show_bug.cgi?id=19720
--- Comment #7 from Austin English austinenglish@gmail.com 2009-08-13 14:00:46 --- (In reply to comment #6)
(In reply to comment #2)
Is there any terminal output? Does native msxml3 help?
Tnx, I could sure try this. How do I install this native msxml3?
$ wget kegel.com/wine/winetricks && sh winetricks msxml3
http://bugs.winehq.org/show_bug.cgi?id=19720
pascal.bouman@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |WORKSFORME
--- Comment #8 from pascal.bouman@gmail.com 2009-08-13 14:48:54 --- (In reply to comment #7)
(In reply to comment #6)
(In reply to comment #2)
Is there any terminal output? Does native msxml3 help?
Tnx, I could sure try this. How do I install this native msxml3?
$ wget kegel.com/wine/winetricks && sh winetricks msxml3
Yes, works. Tnx!
http://bugs.winehq.org/show_bug.cgi?id=19720
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |UNCONFIRMED Component|-unknown |msxml3 Resolution|WORKSFORME |
--- Comment #9 from Nikolay Sivov bunglehead@gmail.com 2009-08-13 14:55:11 --- Not resolved. You just confirmed component with this override.
http://bugs.winehq.org/show_bug.cgi?id=19720
--- Comment #10 from Austin English austinenglish@gmail.com 2009-08-13 17:33:25 --- (In reply to comment #8)
(In reply to comment #7)
(In reply to comment #6)
(In reply to comment #2)
Is there any terminal output? Does native msxml3 help?
Tnx, I could sure try this. How do I install this native msxml3?
$ wget kegel.com/wine/winetricks && sh winetricks msxml3
Yes, works. Tnx!
Please attach a +msxml trace (without native).
http://bugs.winehq.org/show_bug.cgi?id=19720
--- Comment #11 from pascal.bouman@gmail.com 2009-08-13 23:48:44 --- (In reply to comment #10)
Please attach a +msxml trace (without native).
Sorry, I change user.reg to use msxml3 builtin
Then I did: windebug=+msxml3 wine amelie.exe. But I guess that last statement is incorrect. How can I make an +msxml trace?
http://bugs.winehq.org/show_bug.cgi?id=19720
--- Comment #12 from Vitaliy Margolen vitaliy@kievinfo.com 2009-08-14 19:31:36 --- (In reply to comment #11)
Sorry, I change user.reg to use msxml3 builtin
Unchange it. We need log with builtin not native dll.
http://bugs.winehq.org/show_bug.cgi?id=19720
--- Comment #13 from pascal.bouman@gmail.com 2009-08-17 23:46:20 --- (In reply to comment #12)
Unchange it. We need log with builtin not native dll.
Sorry, but can somebody help me with how to make this +MSXML log that you need?
Tnx upfront.
http://bugs.winehq.org/show_bug.cgi?id=19720
--- Comment #14 from Vitaliy Margolen vitaliy@kievinfo.com 2009-08-18 08:22:00 --- WINEDEBUG=+msxml wine myprogram.exe &> msxml_log.txt
Replace "myprogram.exe" with the actual executable for your program.
http://bugs.winehq.org/show_bug.cgi?id=19720
--- Comment #15 from pascal.bouman@gmail.com 2009-08-18 12:27:30 --- Created an attachment (id=23168) --> (http://bugs.winehq.org/attachment.cgi?id=23168) Log with native msxml
http://bugs.winehq.org/show_bug.cgi?id=19720
--- Comment #16 from pascal.bouman@gmail.com 2009-08-18 12:28:30 --- Created an attachment (id=23169) --> (http://bugs.winehq.org/attachment.cgi?id=23169) Log with builtin msxml
http://bugs.winehq.org/show_bug.cgi?id=19720
--- Comment #17 from pascal.bouman@gmail.com 2009-08-18 12:30:27 --- (In reply to comment #14)
WINEDEBUG=+msxml wine myprogram.exe &> msxml_log.txt
Replace "myprogram.exe" with the actual executable for your program.
Tnx!
The program neither works with native or with builtin msxml. With native it starts, but crashes after a while.
http://bugs.winehq.org/show_bug.cgi?id=19720
--- Comment #18 from Vitaliy Margolen vitaliy@kievinfo.com 2009-08-18 23:17:32 --- Where are the debug symbols? Install them before attaching any crashes! If you can't get one from your packager, compile Wine yourself.
http://bugs.winehq.org/show_bug.cgi?id=19720
pascal.bouman@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #23169|0 |1 is obsolete| |
--- Comment #19 from pascal.bouman@gmail.com 2009-08-19 13:26:58 --- Created an attachment (id=23182) --> (http://bugs.winehq.org/attachment.cgi?id=23182) Log with builtin MSXML
http://bugs.winehq.org/show_bug.cgi?id=19720
pascal.bouman@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #23168|0 |1 is obsolete| |
--- Comment #20 from pascal.bouman@gmail.com 2009-08-19 13:27:46 --- Created an attachment (id=23183) --> (http://bugs.winehq.org/attachment.cgi?id=23183) Log with native msxml
http://bugs.winehq.org/show_bug.cgi?id=19720
--- Comment #21 from pascal.bouman@gmail.com 2009-08-19 13:29:11 --- (In reply to comment #18)
Where are the debug symbols? Install them before attaching any crashes! If you can't get one from your packager, compile Wine yourself.
Ok. I tried to do what you said. I first installed a lot of dependencies I found on several different websites. Then I compiled en installed Wine. I attached the new logs. I hope I did it correctly.
Tnx.
http://bugs.winehq.org/show_bug.cgi?id=19720
--- Comment #22 from Vitaliy Margolen vitaliy@kievinfo.com 2009-08-19 19:41:41 --- (In reply to comment #21)
I attached the new logs. I hope I did it correctly.
Yes, thank you.
http://bugs.winehq.org/show_bug.cgi?id=19720
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |leslie_alistair@hotmail.com
--- Comment #23 from Alistair Leslie-Hughes leslie_alistair@hotmail.com 2009-08-20 01:04:59 --- In function bstr_to_utf8, the SysStringLen(bstr) call is returning a string length greater than the actual string, thus it buffer overruns.
If you change the call SysStringLen to strlenW, it appears to doesn't crash in the bstr_to_utf8 anymore, but properly not the right fix.
http://bugs.winehq.org/show_bug.cgi?id=19720
--- Comment #24 from Juan Lang juan_lang@yahoo.com 2009-08-20 16:58:07 --- (In reply to comment #23)
In function bstr_to_utf8, the SysStringLen(bstr) call is returning a string length greater than the actual string, thus it buffer overruns.
The question is, why is the length of the BSTR bogus? Are they passing a WCHAR * as a BSTR, and the length before it is whatever happens to be before it in memory? This seems reasonably likely, as the length value seen in the log is: =>0 0xb7e0d1da wine_utf8_wcstombs+0x16a(flags=<is not available>, src=0x341000, srclen=2139062297, dst=0x0, dstlen=0) [/home/pbouman/Bureaublad/wine-1.1.27/libs/wine/utf8.c:69] in libwine.so.1 (0x0032b80c)
2139062297 is 0x7f7f8019, which, at first glance, seems like an unreasonably large XML document.
If you change the call SysStringLen to strlenW, it appears to doesn't crash in the bstr_to_utf8 anymore, but properly not the right fix.
I don't see why not: UTF8 is also NULL-terminated, so converting additional characters after the first NULL doesn't seem like it could be useful. A BSTR is both length-prefixed and NULL-terminated, so if a NULL isn't found there's an application bug anyway.
As always, tests would help. Two tests come to mind: 1. How does native behave with a BSTR that has a valid length (prefix), but no NULL terminator? 2. How does native behave when passed a WCHAR * rather than a BSTR?
http://bugs.winehq.org/show_bug.cgi?id=19720
--- Comment #25 from pascal.bouman@gmail.com 2009-08-30 06:57:15 ---
As always, tests would help. Two tests come to mind:
- How does native behave with a BSTR that has a valid length (prefix), but no
NULL terminator? 2. How does native behave when passed a WCHAR * rather than a BSTR?
Sorry, maybe these are test that I should do... But how :O ?
http://bugs.winehq.org/show_bug.cgi?id=19720
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED
--- Comment #26 from Alistair Leslie-Hughes leslie_alistair@hotmail.com 2010-04-20 17:40:30 --- Fixed by commit http://source.winehq.org/git/wine.git/?a=commit;h=2060d80d24980b1c85ca144b2c...
http://bugs.winehq.org/show_bug.cgi?id=19720
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #27 from Alexandre Julliard julliard@winehq.org 2010-05-07 13:29:33 --- Closing bugs fixed in 1.1.44.