[Bug 48689] New: Wine 5.3 on Mac OS X 10.13.6 High Sierra: Segmentation fault
https://bugs.winehq.org/show_bug.cgi?id=48689 Bug ID: 48689 Summary: Wine 5.3 on Mac OS X 10.13.6 High Sierra: Segmentation fault Product: Wine Version: 5.3 Hardware: x86-64 OS: Mac OS X Status: UNCONFIRMED Severity: critical Priority: P2 Component: -unknown Assignee: wine-bugs(a)winehq.org Reporter: tobbi.bugs(a)googlemail.com Since updating to Wine 5.3, I keep getting a segmentation fault when starting any kind of program. The issue is reproducible with a new wine prefix as well (so my prefix is not the culprit). $ wine --version wine-5.3 My lldb doesn't really give any verbose information. $ lldb wine explorer (lldb) target create "wine" Current executable set to 'wine' (i386). (lldb) settings set -- target.run-args "explorer" (lldb) r Process 15164 launched: '/Applications/Wine Devel.app/Contents/Resources/wine/bin/wine' (i386) Process 15164 stopped * thread #2, stop reason = exec frame #0: 0x7c405230 dyld`_dyld_start dyld`_dyld_start: -> 0x7c405230 <+0>: popl %edx 0x7c405231 <+1>: pushl $0x0 0x7c405233 <+3>: movl %esp, %ebp 0x7c405235 <+5>: andl $-0x10, %esp Target 0: (wine-preloader) stopped. (lldb) bt * thread #2, stop reason = exec * frame #0: 0x7c405230 dyld`_dyld_start -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=48689 Olivier F. R. Dierick <o.dierick(a)piezo-forte.be> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |o.dierick(a)piezo-forte.be --- Comment #1 from Olivier F. R. Dierick <o.dierick(a)piezo-forte.be> --- Hello, Please, attach a normal (=without WINEDEBUG) terminal output. Instructions to get a log can be found there: https://wiki.winehq.org/FAQ#get_log If you can compile wine yourself, a regression test may help speed up things for the developers: https://wiki.winehq.org/Regression_Testing Regards. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=48689 --- Comment #2 from Ken Thomases <ken(a)codeweavers.com> --- (In reply to Tobias (:Tobbi) Markus from comment #0)
My lldb doesn't really give any verbose information.
$ lldb wine explorer (lldb) target create "wine" Current executable set to 'wine' (i386). (lldb) settings set -- target.run-args "explorer" (lldb) r Process 15164 launched: '/Applications/Wine Devel.app/Contents/Resources/wine/bin/wine' (i386) Process 15164 stopped * thread #2, stop reason = exec frame #0: 0x7c405230 dyld`_dyld_start dyld`_dyld_start: -> 0x7c405230 <+0>: popl %edx 0x7c405231 <+1>: pushl $0x0 0x7c405233 <+3>: movl %esp, %ebp 0x7c405235 <+5>: andl $-0x10, %esp Target 0: (wine-preloader) stopped.
lldb always stops when the process uses the exec system call to change what program it's running. So, the above does not illustrate the real issue. Just issue the "continue" command. Hopefully, it will proceed to the real issue. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=48689 --- Comment #3 from Tobias (:Tobbi) Markus <tobbi.bugs(a)googlemail.com> --- Here we go: (lldb) continue Process 54649 resuming Process 54649 stopped * thread #7, stop reason = EXC_BAD_ACCESS (code=1, address=0x48) frame #0: 0x7bc3db58 -> 0x7bc3db58: movl 0x48(%eax), %edi 0x7bc3db5b: cmpw $0x0, (%edi) 0x7bc3db5f: je 0x7bc3dbf6 0x7bc3db65: movl $0xc0000100, 0x24(%esp) ; imm = 0xC0000100 Target 0: (wine) stopped. (lldb) bt * thread #7, stop reason = EXC_BAD_ACCESS (code=1, address=0x48) * frame #0: 0x7bc3db58 frame #1: 0x7bc5b55d frame #2: 0x7bc595e1 frame #3: 0x7bc59573 frame #4: 0x7bc54ca0 frame #5: 0xa75884d5 libsystem_pthread.dylib`_pthread_body + 347 frame #6: 0xa758837a libsystem_pthread.dylib`_pthread_start + 357 frame #7: 0xa7587a56 libsystem_pthread.dylib`thread_start + 34 -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=48689 Ken Thomases <ken(a)codeweavers.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 CC| |ken(a)codeweavers.com Status|UNCONFIRMED |NEW Regression SHA1| |64dc42e34ffb0178fd9679359f4 | |1d09fca76d5df --- Comment #4 from Ken Thomases <ken(a)codeweavers.com> --- I've bisected this to commit 64dc42e34ffb0178fd9679359f41d09fca76d5df. That commit introduced code which runs on macOS and Android, but not Linux. That's why it wasn't detected before being committed. The issue is that init_unix_codepage() is called before init_user_process_params(), but the former depends on stuff set up by the latter. In particular, the backtrace is: * frame #0: 0x000000007bc3a614 ntdll.dll.so`RtlQueryEnvironmentVariable_U(env=0x0000000000000000, name=0x000070000fdf6bf0, value=0x000070000fdf6c50) at env.c:945:55 [opt] frame #1: 0x000000007bc5a0a6 ntdll.dll.so`NtGetNlsSectionPtr [inlined] open_nls_data_file(type=<unavailable>, id=<unavailable>) at locale.c:648:9 [opt] frame #2: 0x000000007bc59cde ntdll.dll.so`NtGetNlsSectionPtr(type=<unavailable>, id=<unavailable>, unknown=<unavailable>, ptr=<unavailable>, size=0x000070000fdf6d78) at locale.c:1120 [opt] frame #3: 0x000000007bc5852e ntdll.dll.so`load_norm_table(form=1, info=0x000070000fdf6da8) at locale.c:223:23 [opt] frame #4: 0x000000007bc584c6 ntdll.dll.so`init_unix_codepage at locale.c:800:5 [opt] frame #5: 0x000000007bc53934 ntdll.dll.so`__wine_process_init at loader.c:4257:5 [opt] The crash happens on this line: var = NtCurrentTeb()->Peb->ProcessParameters->Environment; because NtCurrentTeb()->Peb->ProcessParameters is NULL. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=48689 Ken Thomases <ken(a)codeweavers.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|wine-bugs(a)winehq.org |julliard(a)winehq.org -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=48689 Ken Thomases <ken(a)codeweavers.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |avenjames(a)live.com --- Comment #5 from Ken Thomases <ken(a)codeweavers.com> --- *** Bug 48693 has been marked as a duplicate of this bug. *** -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=48689 Nikolay Sivov <bunglehead(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |ntdll Keywords| |regression -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=48689 --- Comment #6 from Alexandre Julliard <julliard(a)winehq.org> --- Created attachment 66574 --> https://bugs.winehq.org/attachment.cgi?id=66574 Delay norm table init You can try something like this. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=48689 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rmkk(a)atlas.cz --- Comment #7 from Alexandre Julliard <julliard(a)winehq.org> --- *** Bug 48704 has been marked as a duplicate of this bug. *** -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=48689 Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Fixed by SHA1| |35c223850e1bc9e8f97bfaf403b | |fabca69db3447 Resolution|--- |FIXED --- Comment #8 from Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> --- Fixed by https://source.winehq.org/git/wine.git/?a=commit;h=35c223850e1bc9e8f97bfaf40... -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=48689 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #9 from Alexandre Julliard <julliard(a)winehq.org> --- Closing bugs fixed in 5.4. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (1)
-
WineHQ Bugzilla