[Bug 49254] New: Firefox 76.0 for win64-aarch64 crashes on startup (unwinding for "set thread name" MSVC exception 0x406D1388 fails)

WineHQ Bugzilla wine-bugs at winehq.org
Tue May 26 16:23:45 CDT 2020


https://bugs.winehq.org/show_bug.cgi?id=49254

            Bug ID: 49254
           Summary: Firefox 76.0 for win64-aarch64 crashes on startup
                    (unwinding for "set thread name" MSVC exception
                    0x406D1388 fails)
           Product: Wine
           Version: 5.9
          Hardware: aarch64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ntdll
          Assignee: wine-bugs at winehq.org
          Reporter: focht at gmx.net
      Distribution: ---

Hello folks,

as it says.

Download:

https://web.archive.org/web/20200526201306/https://archive.mozilla.org/pub/firefox/releases/76.0/win64-aarch64/en-US/Firefox%20Setup%2076.0.exe

--- snip ---
$ WINEDEBUG=+seh,+relay,+ntdll,+module wine64 ./firefox.exe >>log.txt 2>&1
...
00f8:Starting thread proc 0x4c6ceb0 (arg=0x12e1d100)
00f8:Call ntdll.RtlAcquireSRWLockExclusive(12e1d110) ret=04c6ced4
00f8:Ret  ntdll.RtlAcquireSRWLockExclusive() retval=12e1d110 ret=04c6ced4
00f8:Call ntdll.RtlReleaseSRWLockExclusive(12e1d110) ret=04c6cee4
00f8:Ret  ntdll.RtlReleaseSRWLockExclusive() retval=12e1d110 ret=04c6cee4
00f8:Call ntdll.NtCurrentTeb() ret=7fbe306220
00f8:Ret  ntdll.NtCurrentTeb() retval=7ff9c000 ret=7fbe306220
00f8:Call KERNEL32.RaiseException(406d1388,00000000,00000003,14ebfe08)
ret=04bb70f4
00f8:Call kernelbase.RaiseException(406d1388,00000000,00000003,14ebfe08)
ret=7fbea40780
00f8:Call ntdll.memcpy(14ebfc38,14ebfe08,00000018) ret=7fbe21bc40
00f8:Ret  ntdll.memcpy() retval=14ebfc38 ret=7fbe21bc40
00f8:trace:seh:raise_exception code=406d1388 flags=0 addr=0x7fbea55ff8
pc=7fbea55ff8 tid=00f8
00f8:trace:seh:raise_exception  info[0]=0000000000001000
00f8:trace:seh:raise_exception  info[1]=0000000007011630
00f8:trace:seh:raise_exception  info[2]=00000000000000f8
00f8:trace:seh:raise_exception   x0=ffffff80ffffffc8  x1=0000000000000002 
x2=0000000000000000  x3=0000000000000000
00f8:trace:seh:raise_exception   x4=0000000014edf2e8  x5=0000000014edf0e0 
x6=0000000014edf0e0  x7=70636d656d2e6c6c
00f8:trace:seh:raise_exception   x8=0000000000000000  x9=0000007fbea55fdc
x10=3d6c617674657220 x11=3833636662653431
00f8:trace:seh:raise_exception  x12=6266373d74657220 x13=0a30346362313265
x14=0000000000000032 x15=0000000000000000
00f8:trace:seh:raise_exception  x16=0000007fbeaed0f0 x17=0000007fbec7f978
x18=000000007ff9c000 x19=0000000014ebfc18
00f8:trace:seh:raise_exception  x20=0000000014ebfd40 x21=0000000000220367
x22=0000007fbe2a92c0 x23=0000000000000000
00f8:trace:seh:raise_exception  x24=0000000000000000 x25=0000000000000000
x26=0000000000000000 x27=0000000000000000
00f8:trace:seh:raise_exception  x28=0000000000000000  fp=0000000014ebfc00 
lr=0000007fbea55ff8  sp=0000000014ebfc10
00f8:trace:seh:call_vectored_handlers calling handler at 0x59c24e0
code=406d1388 flags=0
00f8:trace:seh:call_vectored_handlers handler at 0x59c24e0 returned 0
00f8:trace:seh:libunwind_virtual_unwind ip 0x7fbea55ff8 function
0x7fbea55fdc-0x7fbea56024 personality 0 lsda 0 fde 0
00f8:trace:seh:libunwind_virtual_unwind next function pc=0000007fbe21bc50
00f8:trace:seh:libunwind_virtual_unwind   x0=ffffff80ffffffc8 
x1=0000000000000002  x2=0000000000000000  x3=0000000000000000
00f8:trace:seh:libunwind_virtual_unwind   x4=0000000014edf2e8 
x5=0000000014edf0e0  x6=0000000014edf0e0  x7=70636d656d2e6c6c
00f8:trace:seh:libunwind_virtual_unwind   x8=0000000000000000 
x9=0000007fbea55fdc x10=3d6c617674657220 x11=3833636662653431
00f8:trace:seh:libunwind_virtual_unwind  x12=6266373d74657220
x13=0a30346362313265 x14=0000000000000032 x15=0000000000000000
00f8:trace:seh:libunwind_virtual_unwind  x16=0000007fbeaed0f0
x17=0000007fbec7f978 x18=000000007ff9c000 x19=0000000014ebfd40
00f8:trace:seh:libunwind_virtual_unwind  x20=0000000014ebfd40
x21=0000000000220367 x22=0000007fbe2a92c0 x23=0000000000000000
00f8:trace:seh:libunwind_virtual_unwind  x24=0000000000000000
x25=0000000000000000 x26=0000000000000000 x27=0000000000000000
00f8:trace:seh:libunwind_virtual_unwind  x28=0000000000000000 
fp=0000000014ebfcb0  lr=0000007fbe21bc50  sp=0000000014ebfc10
00f8:trace:seh:libunwind_virtual_unwind ip 0x7fbe21bc50 function
0x7fbe21bbf4-0x7fbe21bc5c personality 0 lsda 0 fde 0
00f8:trace:seh:libunwind_virtual_unwind next function pc=0000007fbea40780
00f8:trace:seh:libunwind_virtual_unwind   x0=ffffff80ffffffc8 
x1=0000000000000002  x2=0000000000000000  x3=0000000000000000
00f8:trace:seh:libunwind_virtual_unwind   x4=0000000014edf2e8 
x5=0000000014edf0e0  x6=0000000014edf0e0  x7=70636d656d2e6c6c
00f8:trace:seh:libunwind_virtual_unwind   x8=0000000000000000 
x9=0000007fbea55fdc x10=3d6c617674657220 x11=3833636662653431
00f8:trace:seh:libunwind_virtual_unwind  x12=6266373d74657220
x13=0a30346362313265 x14=0000000000000032 x15=0000000000000000
00f8:trace:seh:libunwind_virtual_unwind  x16=0000007fbeaed0f0
x17=0000007fbec7f978 x18=000000007ff9c000 x19=0000000014ebfd40
00f8:trace:seh:libunwind_virtual_unwind  x20=0000000014ebfd40
x21=0000000000220367 x22=0000007fbe2a92c0 x23=0000000000000000
00f8:trace:seh:libunwind_virtual_unwind  x24=0000000000000000
x25=0000000000000000 x26=0000000000000000 x27=0000000000000000
00f8:trace:seh:libunwind_virtual_unwind  x28=0000000000000000 
fp=0000000014ebfcc0  lr=0000007fbea40780  sp=0000000014ebfcc0
00f8:trace:seh:libunwind_virtual_unwind no info found for 7fbea40780 ip
7fbe21bbf4-7fbe21bc5c, assuming leaf function
00f8:trace:seh:libunwind_virtual_unwind no info found for 7fbea40780 ip
7fbe21bbf4-7fbe21bc5c, assuming leaf function 
...
00f8:trace:seh:libunwind_virtual_unwind no info found for 7fbea40780 ip
7fbe21bbf4-7fbe21bc5c, assuming leaf function
00f8:trace:seh:call_function_handlers found wine frame 0x14ebfee0 rsp 14ebfee8
handler 0x7fbea70e40
00f8:trace:seh:call_teb_handler calling TEB handler 0x7fbea70e40
(rec=0x14ebfc18, frame=0x14ebfee0 context=0x14ebec40, dispatch=0x14ebeb00)
00f8:Call kernelbase.UnhandledExceptionFilter(14ebeac0) ret=7fbea13d78
00f8:Call ntdll.NtCurrentTeb() ret=7fbe21c04c
00f8:Ret  ntdll.NtCurrentTeb() retval=7ff9c000 ret=7fbe21c04c
00f8:Call ntdll.RtlEnterCriticalSection(0766b490) ret=04a4a9e4
00f8:Ret  ntdll.RtlEnterCriticalSection() retval=00000000 ret=04a4a9e4
00f8:Call KERNEL32.SetUnhandledExceptionFilter(14003ec30) ret=04a3f89c
00f8:Call kernelbase.SetUnhandledExceptionFilter(14003ec30) ret=7fbea40780
00f8:Ret  kernelbase.SetUnhandledExceptionFilter() retval=04a4a1b0
ret=7fbea40780
00f8:Ret  KERNEL32.SetUnhandledExceptionFilter() retval=04a4a1b0 ret=04a3f89c
00f8:Call ucrtbase._set_invalid_parameter_handler(00000000) ret=04a4aa40
00f8:Ret  ucrtbase._set_invalid_parameter_handler() retval=04a4a2e0
ret=04a4aa40
00f8:Call ucrtbase._set_purecall_handler(00000000) ret=04a4aa4c
00f8:Ret  ucrtbase._set_purecall_handler() retval=04a4a490 ret=04a4aa4c 
--- snip ---

The Firefox executable contains PE exception/unwind information. The problem
seems rather with libunwind and builtins. Didn't look further yet tho.

Wine was built with Clang C/C++ cross compiler, integrated with a
custom/self-built Yocto/Poky distro for HiKey960 platform, producing
traditional ELF executables (no llvm-mingw/PE).

--- snip ---
$ $CLANGCC -v

clang version 7.0.0 (https://github.com/llvm-mirror/clang.git
0513b409d5e34b2d2a28ae21b6d620cc52de0e57)
(https://github.com/llvm-mirror/llvm.git
65ce2e56889af84e8be8e311f484a4dfe4b62d7a)
Target: aarch64-poky-linux
Thread model: posix
InstalledDir:
/home/focht/projects/poky/sdk-install/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux
Found candidate GCC installation:
/home/focht/projects/poky/sdk-install/sysroots/aarch64-poky-linux/usr/lib64//aarch64-poky-linux/8.2.0
Found candidate GCC installation:
/home/focht/projects/poky/sdk-install/sysroots/aarch64-poky-linux/usr/lib64/gcc/aarch64-poky-linux/8.2.0
Selected GCC installation:
/home/focht/projects/poky/sdk-install/sysroots/aarch64-poky-linux/usr/lib64//aarch64-poky-linux/8.2.0
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Selected multilib: .;@m64
--- snip ---

Note: The "bootstrapper" installer from the website is win64-aarch64. When run
on target hw, it unwraps another installer which is x86 and tries to start it.
This obviously can't work on aarch64 Linux / Wine. You can just unpack the
bootstrapper and run win64-aarch64 Firefox directly, bypassing the intermediate
x86 installer.

--- snip ---
$  7z l Firefox\ Setup\ 76.0.exe 

Scanning the drive for archives:
1 file, 77689880 bytes (75 MiB)

Listing archive: Firefox Setup 76.0.exe

--
Path = Firefox Setup 76.0.exe
Type = PE
Physical Size = 77689880
CPU = 0xAA64
64-bit = +
Characteristics = Executable LargeAddress
Created = 2019-09-23 20:08:10
Headers Size = 1024
Checksum = 77712930
Name = 7zSD.sfx
Image Size = 360448
Section Alignment = 4096
File Alignment = 512
Code Size = 181760
Initialized Data Size = 166912
Uninitialized Data Size = 0
Linker Version = 14.22
OS Version = 6.2
Image Version = 0.0
Subsystem Version = 6.2
Subsystem = Windows GUI
DLL Characteristics = Relocated NX-Compatible TerminalServerAware 0x20
Stack Reserve = 1048576
Stack Commit = 4096
Heap Reserve = 1048576
Heap Commit = 4096
Image Base = 5368709120
Comment = FileVersion: 18.5.0.0
FileVersion: 18.05
ProductVersion: 18.5.0.0
ProductVersion: 18.05
CompanyName: Mozilla
FileDescription: Firefox
InternalName: 7zSD.sfx
LegalCopyright: Mozilla
OriginalFilename: 7zSD.sfx
ProductName: Firefox
----
Path = [0]
Size = 77345104
Packed Size = 77345104
Virtual Size = 77345104
Offset = 335872
--
Path = [0]
Type = 7z
Offset = 81
Physical Size = 77345022
Tail Size = 1
Headers Size = 1387
Method = LZMA:25 BCJ2
Solid = +
Blocks = 1

   Date      Time    Attr         Size   Compressed  Name
------------------- ----- ------------ ------------  ------------------------
2020-04-29 22:42:06 ....A         2312     77343635  core/precomplete
2020-04-29 22:42:07 ....A           16               core/removed-files
2020-04-29 22:42:06 ....A        23037              
core/browser/VisualElements/VisualElements_150.png
2020-04-29 22:42:06 ....A         8763              
core/browser/VisualElements/VisualElements_70.png
2020-04-29 22:42:06 ....A        58010              
core/browser/features/doh-rollout at mozilla.org.xpi
2020-04-29 22:42:06 ....A       639608              
core/browser/features/formautofill at mozilla.org.xpi
2020-04-29 22:42:06 ....A       340280              
core/browser/features/screenshots at mozilla.org.xpi
2020-04-29 22:42:06 ....A        26397              
core/browser/features/webcompat-reporter at mozilla.org.xpi
2020-04-29 22:42:06 ....A       110202              
core/browser/features/webcompat at mozilla.org.xpi
2020-04-29 22:42:07 ....A          557              
core/firefox.VisualElementsManifest.xml
2020-04-29 22:42:06 ....A          429              
core/defaults/pref/channel-prefs.js
2020-04-29 22:42:07 ....A          887               core/application.ini
2020-04-29 22:42:06 ....A          787              
core/browser/crashreporter-override.ini
2020-04-29 22:42:06 ....A         4003               core/crashreporter.ini
2020-04-29 22:42:07 ....A          164               core/platform.ini
2020-04-29 22:42:07 ....A          132               core/update-settings.ini
2020-04-29 22:42:06 ....A         1245               core/updater.ini
2020-04-29 22:42:06 ....A      1244336              
core/fonts/TwemojiMozilla.ttf
2020-04-29 22:42:06 ....A       239816               core/crashreporter.exe
2020-04-29 22:42:06 ....A       120008              
core/default-browser-agent.exe
2020-04-29 22:42:06 ....A       547016               core/firefox.exe
2020-04-29 22:42:07 ....A       957640               core/uninstall/helper.exe
2020-04-29 22:42:07 ....A       234696              
core/maintenanceservice.exe
2020-04-29 22:42:06 ....A       162536              
core/maintenanceservice_installer.exe
2020-04-29 22:42:06 ....A       698568               core/minidump-analyzer.exe
2020-04-29 22:42:06 ....A        74440               core/pingsender.exe
...
2020-04-29 22:42:06 D....            0            0 
core/browser/VisualElements
2020-04-29 22:42:06 D....            0            0  core/browser/features
2020-04-29 22:42:06 D....            0            0  core/browser
2020-04-29 22:42:07 D....            0            0  core
------------------- ----- ------------ ------------  ------------------------
2020-04-29 22:42:07          289972447     77343635  69 files, 13 folders
--- snip ---

$ sha1sum Firefox\ Setup\ 76.0.exe 
27c4abd83cf6bd20e0fe1982709c3a35902cad1a  Firefox Setup 76.0.exe

$ du -sh Firefox\ Setup\ 76.0.exe 
75M    Firefox Setup 76.0.exe

$ wine --version
wine-5.9

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.


More information about the wine-bugs mailing list