https://bugs.winehq.org/show_bug.cgi?id=43472
Bug ID: 43472 Summary: R-Link 2 Toolbox crashes on startup Product: Wine Version: 2.13 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: [email protected] Reporter: [email protected] Distribution: ---
Created attachment 58852 --> https://bugs.winehq.org/attachment.cgi?id=58852 R-Link 2 Toolbox Backtrace
The Renault R-Link 2 Toolbox application crashes upon launch.
The installer manages to install just fine, but when trying to launch the actual application, the crash dialog pops up. See attached backtrace.
The shell window from which the application was started says:
wine: Unhandled page fault on execute access to 0x00000000 at address (nil) (thread 0009), starting debugger...
Tried with emulation set to Windows 10, Windows 7, Windows Server 2003; all failed with the same error. SELinux is in permissive mode.
https://bugs.winehq.org/show_bug.cgi?id=43472
Fabian Maurer [email protected] changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected]
--- Comment #1 from Fabian Maurer [email protected] --- Can you attach the terminal output?
https://bugs.winehq.org/show_bug.cgi?id=43472
Anastasius Focht [email protected] changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download Ever confirmed|0 |1 CC| |[email protected] Summary|R-Link 2 Toolbox crashes on |R-Link 2 Toolbox crashes on |startup |startup (Wine's | |'packager.dll' is preferred | |over native, causing | |failure to load app | |provided library with same | |name) URL| |https://rcs-rlmanager.aw.at | |os.net/archives/win/RLink2T | |oolbox-latest.exe Status|UNCONFIRMED |NEW
--- Comment #2 from Anastasius Focht [email protected] --- Hello folks,
confirming.
Relevant part of trace log.
--- snip --- $ pwd /home/focht/.wine/drive_c/users/focht/Local Settings/Application Data/R-Link 2 Toolbox
$ WINEDEBUG=+tid,+seh,+relay,+loaddll,+module wine ./R-Link\ 2\ Toolbox.exe
log.txt 2>&1
... 00b8:Call KERNEL32.GetCommandLineW() ret=004021a9 00b8:Ret KERNEL32.GetCommandLineW() retval=00115968 ret=004021a9 00b8:Call shell32.CommandLineToArgvW(00115968 L""C:\users\focht\Local Settings\Application Data\R-Link 2 Toolbox\R-Link 2 Toolbox.exe"",0033fd88) ret=004021b0 ... 00b8:Ret shell32.CommandLineToArgvW() retval=00136948 ret=004021b0 00b8:Call KERNEL32.LoadLibraryW(004031f0 L"packager.dll") ret=004021c1 00b8:trace:module:load_dll looking for L"packager.dll" in L"C:\users\focht\Local Settings\Application Data\R-Link 2 Toolbox;.;C:\windows\system32;C:\windows\system;C:\windows;C:\windows\system32;C:\windows;C:\windows\system32\wbem" ... 00b8:trace:module:get_load_order looking for L"C:\users\focht\Local Settings\Application Data\R-Link 2 Toolbox\packager.dll" 00b8:trace:module:get_load_order got hardcoded default for L"C:\users\focht\Local Settings\Application Data\R-Link 2 Toolbox\packager.dll" 00b8:trace:module:load_builtin_dll Trying built-in L"C:\users\focht\Local Settings\Application Data\R-Link 2 Toolbox\packager.dll" ... 00b8:warn:module:load_builtin_dll failed to load .so lib for builtin L"C:\users\focht\Local Settings\Application Data\R-Link 2 Toolbox\packager.dll": /home/focht/.wine/dosdevices/c:/users/focht/Local Settings/Application Data/R-Link 2 Toolbox/packager.dll: invalid ELF header 00b8:trace:module:load_builtin_dll Trying built-in L"packager.dll" ... 00b8:trace:module:load_builtin_callback loaded packager.dll 0x136c60 0x7e2d0000 00b8:trace:loaddll:load_builtin_dll Loaded L"C:\windows\system32\packager.dll" at 0x7e2d0000: builtin 00b8:Call PE DLL (proc=0x7e2e24c9,module=0x7e2d0000 L"packager.dll",reason=WINE_PREATTACH,res=(nil)) 00b8:Ret PE DLL (proc=0x7e2e24c9,module=0x7e2d0000 L"packager.dll",reason=WINE_PREATTACH,res=(nil)) retval=1 00b8:trace:module:load_dll Loaded module L"C:\users\focht\Local Settings\Application Data\R-Link 2 Toolbox\packager.dll" (builtin) at 0x7e2d0000 00b8:trace:module:process_attach (L"packager.dll",(nil)) - START 00b8:Call PE DLL (proc=0x7e2e24c9,module=0x7e2d0000 L"packager.dll",reason=PROCESS_ATTACH,res=(nil)) 00b8:Call KERNEL32.DisableThreadLibraryCalls(7e2d0000) ret=7e2e24b4 00b8:Ret KERNEL32.DisableThreadLibraryCalls() retval=00000001 ret=7e2e24b4 00b8:Ret PE DLL (proc=0x7e2e24c9,module=0x7e2d0000 L"packager.dll",reason=PROCESS_ATTACH,res=(nil)) retval=1 00b8:trace:module:process_attach (L"packager.dll",(nil)) - END 00b8:Ret KERNEL32.LoadLibraryW() retval=7e2d0000 ret=004021c1 00b8:Call KERNEL32.GetProcAddress(7e2d0000,00403224 "start_launcher") ret=004022e8 00b8:Ret KERNEL32.GetProcAddress() retval=00000000 ret=004022e8 00b8:Call KERNEL32.GetProcAddress(7e2d0000,00403234 "stop_launcher") ret=004022f2 00b8:Ret KERNEL32.GetProcAddress() retval=00000000 ret=004022f2 00b8:trace:seh:raise_exception code=c0000005 flags=0 addr=(nil) ip=00000000 tid=00b8 00b8:trace:seh:raise_exception info[0]=00000008 00b8:trace:seh:raise_exception info[1]=00000000 00b8:trace:seh:raise_exception eax=00000000 ebx=00000001 ecx=0041162c edx=0000007f esi=00136948 edi=00000000 00b8:trace:seh:raise_exception ebp=7e2d0000 esp=0033fd6c cs=0023 ds=002b es=002b fs=0063 gs=006b flags=00010202 00b8:trace:seh:call_stack_handlers calling handler at 0x4027e9 code=c0000005 flags=0 00b8:Call msvcr120._except_handler4_common(0040400c,0040244a,0033fd14,0033fe30,0033fa48,0033f8fc) ret=00402807 00b8:trace:seh:_except_handler4_common exception c0000005 flags=0 at (nil) handler=0x4027e9 0x33fa48 0x33f8fc cookie=773ce092 scope table=0x4035d8 cookies=-2/0,-52/0 00b8:trace:seh:_except_handler4_common level 0 prev -2 filter 0x402721 00b8:Call msvcr120._XcptFilter(c0000005,0033f7a4) ret=00402732 00b8:trace:seh:_XcptFilter (c0000005,0x33f7a4) 00b8:Ret msvcr120._XcptFilter() retval=00000000 ret=00402732 00b8:trace:seh:_except_handler4_common filter returned CONTINUE_SEARCH 00b8:trace:seh:_except_handler4_common reached -2, returning ExceptionContinueSearch 00b8:Ret msvcr120._except_handler4_common() retval=00000001 ret=00402807 00b8:trace:seh:call_stack_handlers handler at 0x4027e9 returned 1 00b8:trace:seh:call_stack_handlers calling handler at 0x7bcad785 code=c0000005 flags=0 00b8:Call KERNEL32.UnhandledExceptionFilter(0033f864) ret=7bcad7c0 wine: Unhandled page fault on execute access to 0x00000000 at address (nil) (thread 00b8), starting debugger... ... Backtrace: =>0 0x00000000 (0x7e2d0000) 1 0x00000003 (0x00905a4d) 0x00000000: -- no code accessible -- Modules: Module Address Debug info Name (40 modules) PE 400000- 408000 Deferred r-link 2 toolbox ELF 7b400000-7b7f0000 Deferred kernel32<elf> -PE 7b420000-7b7f0000 \ kernel32 ELF 7bc00000-7bd09000 Deferred ntdll<elf> -PE 7bc30000-7bd09000 \ ntdll ELF 7c000000-7c004000 Deferred <wine-loader> ELF 7e2ce000-7e2e7000 Deferred packager<elf> -PE 7e2d0000-7e2e7000 \ packager ELF 7e2e7000-7e30c000 Deferred imm32<elf> -PE 7e2f0000-7e30c000 \ imm32 ... Threads: process tid prio (all id:s are in hex) ... 000000b7 (D) C:\users\focht\Local Settings\Application Data\R-Link 2 Toolbox\R-Link 2 Toolbox.exe 000000b8 0 <== --- snip ---
The app ships a library named 'packager.dll' in its install directory.
--- snip --- $ pwd /home/focht/.wine/drive_c/users/focht/Local Settings/Application Data/R-Link 2 Toolbox
$ ls -1sh total 3.6M 0 app 448K msvcp120.dll 756K msvcr100.dll 952K msvcr120.dll 208K packager.dll 24K R-Link 2 Toolbox.exe 8.0K R-Link 2 Toolbox.ico 0 runtime 44K unins000.dat 1.2M unins000.exe --- snip ---
Wine provides a builtin 'packager.dll' which is currently a stub for Microsoft's Windows OLE Package Manager (Object Packager 2 component). The builtin library is preferred by default over any native version (app provided one). The symbol lookup fails because the library has an entirely different meaning -> different exports.
You can work around by:
--- snip --- $ WINEDLLOVERRIDES=packager=n wine ./R-Link\ 2\ Toolbox.exe --- snip ---
or setting the override permanently in registry using 'winecfg'.
Wine should prefer native over builtin (DLL_WINE_PREATTACH -> FALSE) for this component.
https://source.winehq.org/git/wine.git/blob/HEAD:/dlls/packager/packager_mai...
--- snip --- 673 BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, void *reserved) 674 { 675 TRACE("(%p, %u, %p)\n", instance, reason, reserved); 676 677 switch(reason){ 678 case DLL_PROCESS_ATTACH: 679 g_instance = instance; 680 DisableThreadLibraryCalls(instance); 681 break; 682 } 683 684 return TRUE; 685 } --- snip ---
$ sha1sum RLink2Toolbox-latest.exe de7a9b3d62047d3cb4161b7e9a842269434b1762 RLink2Toolbox-latest.exe
$ du -sh RLink2Toolbox-latest.exe 48M RLink2Toolbox-latest.exe
$ wine --version wine-2.13-94-g5d9a4c4dbd
Regards
https://bugs.winehq.org/show_bug.cgi?id=43472
--- Comment #3 from Steven Bakker [email protected] --- (In reply to Anastasius Focht from comment #2)
You can work around by:
--- snip --- $ WINEDLLOVERRIDES=packager=n wine ./R-Link\ 2\ Toolbox.exe --- snip ---
or setting the override permanently in registry using 'winecfg'.
Hi,
Thanks, this solves the crash! Right now, I'm getting a black window, but at least that's better than a crash dialog. :-)
https://bugs.winehq.org/show_bug.cgi?id=43472
Sebastian Lackner [email protected] changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |STAGED Staged patchset| |https://github.com/wine-com | |pholio/wine-staging/tree/ma | |ster/patches/packager-DllMa | |in CC| |[email protected], | |erich.e.hoover@wine-staging | |.com, [email protected], | |[email protected]
https://bugs.winehq.org/show_bug.cgi?id=43472
Anastasius Focht [email protected] changed:
What |Removed |Added ---------------------------------------------------------------------------- Staged patchset|https://github.com/wine-com |https://github.com/wine-sta |pholio/wine-staging/tree/ma |ging/wine-staging/tree/mast |ster/patches/packager-DllMa |er/patches/packager-DllMain |in |
--- Comment #4 from Anastasius Focht [email protected] --- Hello folks,
revisiting, obviously still present.
$ wine --version wine-3.3
Regards
https://bugs.winehq.org/show_bug.cgi?id=43472
Zebediah Figura [email protected] changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected]
--- Comment #5 from Zebediah Figura [email protected] --- Should this be considered a duplicate of bug 14980?
https://bugs.winehq.org/show_bug.cgi?id=43472
--- Comment #6 from Anastasius Focht [email protected] --- Hello Zebediah,
--- quote --- Should this be considered a duplicate of bug 14980? --- quote ---
No, the decision whether to allow a native module being preferred over Wine builtin should be done on per-module basis, separated by different tickets.
For example the root cause of changing 'riched20' load order is an entirely different problem domain than for 'packager'. Putting these things into a single "collector" ticket would mess up the tracebility of the root cause.
Also the 'riched20' ticket is referenced in many places (appdb, wikis, forums) etc. It would confuse a lot of users seeing a list of unrelated modules and applications "merged" in a single ticket.
Regards
https://bugs.winehq.org/show_bug.cgi?id=43472
Louis Lenders [email protected] changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] | |om
--- Comment #7 from Louis Lenders [email protected] --- *** Bug 47064 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=43472
Louis Lenders [email protected] changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|R-Link 2 Toolbox crashes on |Several apps (R-Link 2 |startup (Wine's |Toolbox/boulangerie |'packager.dll' is preferred |patisserie Mavimplant) |over native, causing |crash on startup (Wine's |failure to load app |'packager.dll' is preferred |provided library with same |over native, causing |name) |failure to load app | |provided library with same | |name) CC| |[email protected]
--- Comment #8 from Louis Lenders [email protected] --- update title
https://bugs.winehq.org/show_bug.cgi?id=43472
Anastasius Focht [email protected] changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected]
--- Comment #9 from Anastasius Focht [email protected] --- *** Bug 47228 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=43472
Anastasius Focht [email protected] changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Several apps (R-Link 2 |Several apps (R-Link 2 |Toolbox/boulangerie |Toolbox, boulangerie |patisserie Mavimplant) |patisserie Mavimplant, |crash on startup (Wine's |Kundenkartei 5) crash on |'packager.dll' is preferred |startup (Wine's |over native, causing |'packager.dll' is preferred |failure to load app |over native, causing |provided library with same |failure to load app |name) |provided library with same | |name)
https://bugs.winehq.org/show_bug.cgi?id=43472
Anastasius Focht [email protected] changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Several apps (R-Link 2 |Several apps (R-Link 2 |Toolbox, boulangerie |Toolbox, Mavimplant 1.0, |patisserie Mavimplant, |Kundenkartei 5) crash on |Kundenkartei 5) crash on |startup (Wine's |startup (Wine's |'packager.dll' is preferred |'packager.dll' is preferred |over native, causing |over native, causing |failure to load app |failure to load app |provided library with same |provided library with same |name) |name) | URL|https://rcs-rlmanager.aw.at |https://web.archive.org/web |os.net/archives/win/RLink2T |/20190519005619/https://rcs |oolbox-latest.exe |-rlmanager.aw.atos.net/arch | |ives/win/RLink2Toolbox-late | |st.exe
--- Comment #10 from Anastasius Focht [email protected] --- Hello folks,
I've generated stable links for the affected apps for reproducing:
https://web.archive.org/web/20190519005619/https://rcs-rlmanager.aw.atos.net... ('R-Link 2 Toolbox')
https://web.archive.org/web/20190426094447/http://boulangerie-patisserie-mav... ('Mavimplant 1.0')
https://web.archive.org/web/20190519003329/https://kundenkartei.net/download... ('Kundenkartei 5')
---
Tidbit: It seems all these apps are Java-based and 'packager.dll' is JavaFX native packager/bootstrapper.
https://github.com/ojdkbuild/lookaside_openjfx/blob/eb808358baee9c8ff13ba04c...
https://github.com/ojdkbuild/lookaside_openjfx/blob/eb808358baee9c8ff13ba04c...
--- snip --- $ pwd /home/focht/.wine/drive_c/users/focht/Local Settings/Application Data/R-Link 2 Toolbox
$ winedump -j export packager.dll Contents of packager.dll: 214016 bytes
Exports table:
Name: packager.dll Characteristics: 00000000 TimeDateStamp: 5B332FEA Wed Jun 27 08:34:18 2018 Version: 0.00 Ordinal base: 1 # of functions: 6 # of Names: 6 Addresses of functions: 00030D08 Addresses of name ordinals: 00030D38 Addresses of names: 00030D20
Entry Pt Ordn Name 00003530 1 _Java_jdk_packager_services_userjvmoptions_LauncherUserJvmOptions__1getUserJvmOptionDefaultKeys@8 00003540 2 _Java_jdk_packager_services_userjvmoptions_LauncherUserJvmOptions__1getUserJvmOptionDefaultValue@12 00003560 3 _Java_jdk_packager_services_userjvmoptions_LauncherUserJvmOptions__1getUserJvmOptionKeys@8 00003570 4 _Java_jdk_packager_services_userjvmoptions_LauncherUserJvmOptions__1getUserJvmOptionValue@12 00003590 5 _Java_jdk_packager_services_userjvmoptions_LauncherUserJvmOptions__1setUserJvmKeysAndValues@16 000133F0 6 start_launcher
Done dumping packager.dll --- snip ---
$ wine --version wine-4.8-202-g61aea5a987
Regards
https://bugs.winehq.org/show_bug.cgi?id=43472
Andrew Nguyen [email protected] changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|STAGED |RESOLVED Resolution|--- |FIXED Fixed by SHA1| |74239c9853a08083137917d3184 | |e52dd25ef4c25
--- Comment #11 from Andrew Nguyen [email protected] --- Fixed by https://gitlab.winehq.org/wine/wine/-/commit/74239c9853a08083137917d3184e52d...
https://bugs.winehq.org/show_bug.cgi?id=43472
Andrew Nguyen [email protected] changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected]
--- Comment #12 from Andrew Nguyen [email protected] --- *** Bug 57125 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=43472
Alexandre Julliard [email protected] changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #13 from Alexandre Julliard [email protected] --- Closing bugs fixed in 9.17.