http://bugs.winehq.org/show_bug.cgi?id=24499
Summary: Crestron Toolbox Product: Wine Version: 1.3.3 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: major Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: ironiridis@gmail.com
Created an attachment (id=30915) --> (http://bugs.winehq.org/attachment.cgi?id=30915) Log with backtrace
Install fails here:
wine: Unhandled page fault on read access to 0x06000087 at address 0x6000087 (thread 0032), starting debugger...
May be related to attempting to install USB drivers for connecting to Crestron products. It'd be nice if those driver install attempts could be stubbed out since practically all Crestron products are managed via TCP.
$ uname -a Linux chariot 2.6.35-gentoo-r5 #1 SMP Mon Aug 30 17:43:45 CDT 2010 i686 Intel(R) Core(TM)2 Duo CPU E8200 @ 2.66GHz GenuineIntel GNU/Linux
$ wine --version wine-1.3.3
$ emerge -pv wine [ebuild R ] app-emulation/wine-1.3.3 USE="X gecko gnutls jpeg png ssl threads truetype xml -alsa -capi -cups -custom-cflags -dbus -esd -fontconfig -gphoto2 -gsm -hal -jack -lcms -ldap -mp3 -nas -ncurses -openal -opengl -oss -perl -pulseaudio -samba -scanner -test -win32 (-win64) -xcomposite -xinerama" 0 kB
http://bugs.winehq.org/show_bug.cgi?id=24499
Juan Lang juan_lang@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Severity|major |normal
--- Comment #1 from Juan Lang juan_lang@yahoo.com 2010-09-22 11:41:42 CDT --- http://bugs.winehq.org/page.cgi?id=fields.html#importance
You can't vote for your own bugs.
http://bugs.winehq.org/show_bug.cgi?id=24499
Juan Lang juan_lang@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #30915|application/octet-stream |text/plain mime type| |
http://bugs.winehq.org/show_bug.cgi?id=24499
--- Comment #2 from Andrew Nguyen arethusa26@gmail.com 2010-09-22 11:42:56 CDT --- Is there a download for this application? Your backtrace lacks debugging symbols; can you reattach another with symbolic information?
http://bugs.winehq.org/show_bug.cgi?id=24499
Juan Lang juan_lang@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Crestron Toolbox |Crestron Toolbox installer | |crashes
http://bugs.winehq.org/show_bug.cgi?id=24499
--- Comment #3 from Christopher Harrington ironiridis@gmail.com 2010-09-22 12:16:32 CDT --- (In reply to comment #1)
http://bugs.winehq.org/page.cgi?id=fields.html#importance
You can't vote for your own bugs.
Oop, sorry, wasn't aware of the policy. Won't happen again.
(In reply to comment #2)
Is there a download for this application? Your backtrace lacks debugging symbols; can you reattach another with symbolic information?
http://chariot.acsdi.com/toolbox-binaries.tar
Unfortunately it's a bit of a beast; 233mb to download. Untar and install device_database first, crestron_database second, then crestron_toolbox last.
I'm currently rebuilding wine with debug symbols.
http://bugs.winehq.org/show_bug.cgi?id=24499
Christopher Harrington ironiridis@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #30915|0 |1 is obsolete| |
--- Comment #4 from Christopher Harrington ironiridis@gmail.com 2010-09-22 12:39:13 CDT --- Created an attachment (id=30916) --> (http://bugs.winehq.org/attachment.cgi?id=30916) Log with backtrace (and symbols)
http://bugs.winehq.org/show_bug.cgi?id=24499
Christopher Harrington ironiridis@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #30916|application/octet-stream |text/plain mime type| |
http://bugs.winehq.org/show_bug.cgi?id=24499
--- Comment #5 from Juan Lang juan_lang@yahoo.com 2010-09-22 12:47:07 CDT --- The crash is somewhere in some DLL's DllRegisterServer function. Please attach a +relay,+seh,+tid log.
http://bugs.winehq.org/show_bug.cgi?id=24499
--- Comment #6 from Christopher Harrington ironiridis@gmail.com 2010-09-22 13:09:36 CDT --- (In reply to comment #5)
The crash is somewhere in some DLL's DllRegisterServer function. Please attach a +relay,+seh,+tid log.
Compressed log posted at http://chariot.acsdi.com/toolbox.relay.seh.tid.log.bz2 (4.1M compressed, 236M original)
I abort after the first regsvr32 crash since the same crash repeats 10-15 times.
http://bugs.winehq.org/show_bug.cgi?id=24499
Juan Lang juan_lang@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |mscoree
--- Comment #7 from Juan Lang juan_lang@yahoo.com 2010-09-22 13:22:30 CDT --- It appears as though it's related to the mscoree fixme:
0023:Call PE DLL (proc=0x1000a446,module=0x10000000 L"CmDeviceInterops.dll",reason=PROCESS_ATTACH,res=(nil)) 0023:Call mscoree._CorDllMain(10000000,00000001,00000000) ret=7ef95725 0023:fixme:mscoree:_CorDllMain (0x10000000, 1, (nil)): stub 0023:Call KERNEL32.DisableThreadLibraryCalls(10000000) ret=7e4a628f 0023:Ret KERNEL32.DisableThreadLibraryCalls() retval=00000001 ret=7e4a628f 0023:Ret mscoree._CorDllMain() retval=00000001 ret=7ef95725 0023:Ret PE DLL (proc=0x1000a446,module=0x10000000 L"CmDeviceInterops.dll",reason=PROCESS_ATTACH,res=(nil)) retval=1 0023:Ret KERNEL32.LoadLibraryExA() retval=10000000 ret=7ed7c6f6 0023:Call KERNEL32.GetProcAddress(10000000,7ed7cf9d "DllRegisterServer") ret=7ed7c73f 0023:Ret KERNEL32.GetProcAddress() retval=1000a380 ret=7ed7c73f 0023:trace:seh:raise_exception code=c0000005 flags=0 addr=0x6000087 ip=06000087 tid=0023
That is, the dll CmDeviceInterops.dll is loaded, and in its DllMain it's calling _CorDllMain. Immediately after this, its DllRegisterServer is called, and it crashes. It appears that it expects something to happen in _CorDllMain that isn't. Setting component to mscoree.
http://bugs.winehq.org/show_bug.cgi?id=24499
--- Comment #8 from Vincent Povirk madewokherd@gmail.com 2010-09-22 13:33:12 CDT --- MSDN claims _CorDllMain is supposed to call the entry point of the DLL.
This seems odd to me because AFAIK the act of loading a library in C# or another CLR language does not cause any code to execute. Any such initialization happens during class constructors before their first use.
Maybe if I had a copy of the DLL, I could inspect its entry point and figure out what's supposed to happen.
http://bugs.winehq.org/show_bug.cgi?id=24499
--- Comment #9 from Christopher Harrington ironiridis@gmail.com 2010-09-22 13:39:53 CDT --- Created an attachment (id=30917) --> (http://bugs.winehq.org/attachment.cgi?id=30917) CmDeviceInterops.dll
http://bugs.winehq.org/show_bug.cgi?id=24499
--- Comment #10 from Vincent Povirk madewokherd@gmail.com 2010-09-22 13:57:16 CDT --- The DLL does not have an entry point, but it does have fields named PostDllMain and PostRawDllMain. I don't see any documentation for them, and their semantics are not obvious to me.
http://bugs.winehq.org/show_bug.cgi?id=24499
--- Comment #11 from Christopher Harrington ironiridis@gmail.com 2010-09-22 14:02:51 CDT --- (In reply to comment #10)
The DLL does not have an entry point, but it does have fields named PostDllMain and PostRawDllMain. I don't see any documentation for them, and their semantics are not obvious to me.
The complete installer is available in Comment #3 if that's useful. Otherwise, can I be providing additional information to assist?
http://bugs.winehq.org/show_bug.cgi?id=24499
--- Comment #12 from Vincent Povirk madewokherd@gmail.com 2010-09-22 14:35:28 CDT --- What I need is an explanation of how these PostDllMain and PostRawDllMain things are supposed to work. If you can ask the authors of this software whether they wrote any functions named something like DllMain for that dll, and if they can point out any documentation regarding their use, that might help.
http://bugs.winehq.org/show_bug.cgi?id=24499
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download URL| |http://chariot.acsdi.com/to | |olbox-binaries.tar
http://bugs.winehq.org/show_bug.cgi?id=24499
--- Comment #13 from Vincent Povirk madewokherd@gmail.com 2011-10-01 15:27:00 CDT --- By sheer coincidence, I think I know what's going on. I have a test case (madewokherd.nfshost.com/dllexporttest.dll) that uses something called a "method transition thunk". The dll has a section containing function tags that we need to replace with addresses to native code for those functions, in _CorDllMain. It turns out that the crash we get from that test case looks very much like the crash on this bug. So hopefully implementing that feature will make this work as well.
http://bugs.winehq.org/show_bug.cgi?id=24499
--- Comment #14 from Christopher Harrington ironiridis@gmail.com 2011-10-01 18:42:17 CDT --- (In reply to comment #13)
By sheer coincidence, I think I know what's going on.
Vincent, please let me know if there is anything I can provide for you that will help with solving this problem. I am at your disposal.
http://bugs.winehq.org/show_bug.cgi?id=24499
Vincent Povirk madewokherd@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1
--- Comment #15 from Vincent Povirk madewokherd@gmail.com 2011-10-02 00:31:12 CDT --- Uh, nope, I think it's pretty well understood now. I just need to do the work.
http://bugs.winehq.org/show_bug.cgi?id=24499
--- Comment #16 from Vincent Povirk madewokherd@gmail.com 2013-02-06 09:39:43 CST --- Method thunks are implemented now, please retest.
http://bugs.winehq.org/show_bug.cgi?id=24499
--- Comment #17 from Christopher Harrington ironiridis@gmail.com 2013-02-07 23:03:32 CST --- (In reply to comment #16)
Method thunks are implemented now, please retest.
Retest against current release, or against git?
http://bugs.winehq.org/show_bug.cgi?id=24499
--- Comment #18 from Christopher Harrington ironiridis@gmail.com 2013-02-08 00:11:19 CST --- (In reply to comment #16)
Method thunks are implemented now, please retest.
Wine commit b288f7be1860c6373555b3d412fe849a656fe165...
Install completes (with several regsvr32.exe crashes) but the software still doesn't launch. Last line on console is:
err:module:LdrInitializeThunk Main exe initialization for L"C:\Program Files\Crestron\Toolbox\Toolbox.exe" failed, status c0000135
Let me know what type of log you'd like me to produce, if any.
https://bugs.winehq.org/show_bug.cgi?id=24499
super_man@post.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |super_man@post.com
--- Comment #19 from super_man@post.com --- The download gives login window. How to download this?
https://bugs.winehq.org/show_bug.cgi?id=24499
--- Comment #20 from Christopher Harrington ironiridis@gmail.com --- (In reply to super_man from comment #19)
The download gives login window. How to download this?
I'm no longer with the company that was hosting that server, so I am unable to restore the download link. I may be able to privately provide the binary to you to test if you like, but I can't obtain the version from 2010 anymore. It may not matter.
https://bugs.winehq.org/show_bug.cgi?id=24499
winetest@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |00cpxxx@gmail.com, | |winetest@luukku.com
--- Comment #21 from winetest@luukku.com --- (In reply to Christopher Harrington from comment #20)
(In reply to super_man from comment #19)
The download gives login window. How to download this?
I'm no longer with the company that was hosting that server, so I am unable to restore the download link. I may be able to privately provide the binary to you to test if you like, but I can't obtain the version from 2010 anymore. It may not matter.
Suggesting to close this bug and open new ones that can be tested easier. If the new binary doesn't work and it's not a dupe of existing bugs it needs to be analyzed why it doesn't work and it can be difficult.
https://bugs.winehq.org/show_bug.cgi?id=24499
joaopa jeremielapuree@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr
--- Comment #22 from joaopa jeremielapuree@yahoo.fr --- Was private software. OP can not share it Can an administrator close this bug as ABANDONED?
https://bugs.winehq.org/show_bug.cgi?id=24499
Christopher Harrington ironiridis@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Keywords|download | Resolution|--- |ABANDONED URL|http://chariot.acsdi.com/to | |olbox-binaries.tar |
--- Comment #23 from Christopher Harrington ironiridis@gmail.com --- I'm unable to obtain the software for this anymore, and even if I had access I'd likely not be able to test the version that failed in 2010. Closing as ABANDONED
https://bugs.winehq.org/show_bug.cgi?id=24499
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #24 from Austin English austinenglish@gmail.com --- Closing.