http://bugs.winehq.org/show_bug.cgi?id=11030
Summary: JIT debugger not found Product: Wine Version: unspecified Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: wine-debug AssignedTo: wine-bugs@winehq.org ReportedBy: danny.piccirillo@gmail.com
I installed Neuro-Programmer 2 - http://thepiratebay.org/tor/3960649/Neuro-Programmer_2
and then when i launched it, i got the following "No debugger found." error message:
Registered JIT debugger it not available. An attempt to launch a JIT debugger with the following command resulted in an error code of 0x2 (2). Please check computer settings.
cordbg.exe !a 0x15
Click on Retry to have the process wait while attaching a debugger manually. Click on Cancel to abort the JIT debugger request.
http://bugs.winehq.org/show_bug.cgi?id=11030
Lei Zhang thestig@google.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|wine-debug |wine-misc
--- Comment #1 from Lei Zhang thestig@google.com 2008-01-04 12:58:58 --- What version of wine are you using?
Is this the actual website for the program? http://www.transparentcorp.com/products/np/download.php
http://bugs.winehq.org/show_bug.cgi?id=11030
DPic danny.piccirillo@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|unspecified |0.9.46.
http://bugs.winehq.org/show_bug.cgi?id=11030
--- Comment #2 from DPic danny.piccirillo@gmail.com 2008-01-04 23:47:55 --- (In reply to comment #1)
What version of wine are you using?
Is this the actual website for the program? http://www.transparentcorp.com/products/np/download.php
I'm using 0.9.46 and yes, that's the official website for the program
http://bugs.winehq.org/show_bug.cgi?id=11030
DPic danny.piccirillo@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Alias|DPic |JITdebug
http://bugs.winehq.org/show_bug.cgi?id=11030
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Keywords| |download Summary|JIT debugger not found |JIT fails to launch
--- Comment #3 from Austin English austinenglish@gmail.com 2008-11-03 21:36:42 --- Fails to launch in git, with no error, just an exception. I'll attach the output/+relay,+seh,+tid.
http://bugs.winehq.org/show_bug.cgi?id=11030
--- Comment #4 from Austin English austinenglish@gmail.com 2008-11-03 21:36:58 --- Created an attachment (id=17076) --> (http://bugs.winehq.org/attachment.cgi?id=17076) output in git
http://bugs.winehq.org/show_bug.cgi?id=11030
--- Comment #5 from Austin English austinenglish@gmail.com 2008-11-03 21:38:22 --- Created an attachment (id=17077) --> (http://bugs.winehq.org/attachment.cgi?id=17077) +relay,+seh,+tid
http://bugs.winehq.org/show_bug.cgi?id=11030
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |focht@gmx.net
--- Comment #6 from Anastasius Focht focht@gmx.net 2008-11-04 01:40:36 --- Hello,
Xenocode Virtual Appliance Runtime again. Wine still seems to have holes in native API compatibility (despite solving bug 12830). Will look into it when I get more time.
Regards
http://bugs.winehq.org/show_bug.cgi?id=11030
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dank@kegel.com
--- Comment #7 from Austin English austinenglish@gmail.com 2008-11-04 08:20:01 --- *** Bug 15554 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=11030
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |obfuscation
--- Comment #8 from Austin English austinenglish@gmail.com 2008-11-04 08:20:31 --- Download link: http://www.transparentcorp.com/downloads/NP2_Install.exe
http://bugs.winehq.org/show_bug.cgi?id=11030
--- Comment #9 from Anastasius Focht focht@gmx.net 2009-05-09 10:53:37 --- Hello,
well after some hours of debugging it seems that Wine's paradigm of having some ntdll API serving only as thin wrappers, calling other ntdll API being the problem.
As already mentioned in other bug reports/analysis Xenocode hooks a considerable amount of native API (ntdll). The trampolines are used to redirect execution to "virtualized" functions (API completely emulated) or to functions that modify caller parameters in place and then use the original OS functionality to carry out actions.
Example of "good" case, run with relay thunks enabled to prevent API from being hooked by Xenocode.
--- snip --- ... 0009:Call KERNEL32.SetEnvironmentVariableW(007b7394 L"__VMAPI",001ead58 L"00810CB8") ret=007f79f7 0009:Ret KERNEL32.SetEnvironmentVariableW() retval=00000001 ret=007f79f7 ... 0009:Call ntdll.NtOpenFile(0032f050,00120089,0032f088,0032f0c8,00000001,00000021) ret=007c2b9e ... 0009:trace:ntdll:NtOpenFile handle=0x32f050 access=00120089 name=L"\??\C:\users\focht\Local Settings\Application Data\Xenocode\XSandbox\Neuro-Programmer 2\2.5.0.0\2008.11.19T21.07" objattr=00000040 root=(nil) sec=(nil) io=0x32f0c8 sharing=00000001 options=00000021 ... 0009:trace:ntdll:NtCreateFile handle=0x32f050 access=00120089 name=L"\??\C:\users\focht\Local Settings\Application Data\Xenocode\XSandbox\Neuro-Programmer 2\2.5.0.0\2008.11.19T21.07" objattr=00000040 root=(nil) sec=(nil) io=0x32f0c8 alloc_size=(nil) attr=00000000 sharing=00000001 disp=1 options=00000021 ea=(nil).0x00000000 ... 0009: create_file( access=00120089, attributes=00000040, sharing=00000001, create=1, options=00000021, attrs=00000000, objattr={rootdir=0000,sd={},name=L""}, filename="/home/focht/.wine/dosdevices/c:/users/focht/Local Settings/Application Data/Xenocode/XSandbox/Neuro-Programmer 2/2.5.0.0/2008.11.19T21.07" ) 0009: create_file() = 0 { handle=003c } 0009:trace:ntdll:NtOpenFile result=0 0009:Ret ntdll.NtOpenFile() retval=00000000 ret=007c2b9e 0009:Call ntdll.NtClose(0000003c) ret=007ea94d 0009: close_handle( handle=003c ) 0009: close_handle() = 0 0009:Ret ntdll.NtClose() retval=00000000 ret=007ea94d ... --- snip ---
In the "bad" case with no relay thunks active some ntdll API get hooked and some not.
NtOpenFile() vs. NtCreateFile(): Calls to Wine's NtOpenFile() go straight to NtCreateFile(). This is something that Xenocode doesn't expect. NtOpenFile() is not hooked while NtCreateFile() is hooked. This results in a recursive call chain, getting the stack eaten up. Same applies to NtQueryAttributesFile() and NtQueryFullAttributesFile().
Moving the code to internal (non exported) function and having both calling this function makes Xenocode happy. It goes much further - only to display error message box which is another problem deserving a separate bug.
---
Move code from NtCreateFile() to internal (non exported) function or just rename it and create another wrapper with original exported name. Have NtOpenFile() and NtCreateFile() call this internal function.
Move code from NtQueryFullAttributesFile() to internal (non exported) function or just rename it and create another wrapper with original exported name. Have NtQueryAttributesFile() and NtQueryFullAttributesFile() call this internal function.
Regards
http://bugs.winehq.org/show_bug.cgi?id=11030
--- Comment #10 from Dan Kegel dank@kegel.com 2009-05-09 20:05:01 --- How popular are Xenocoded apps?
http://bugs.winehq.org/show_bug.cgi?id=11030
--- Comment #11 from Anastasius Focht focht@gmx.net 2009-05-10 05:35:44 --- Hello,
--- quote --- How popular are Xenocoded apps? --- quote ---
Well I honestly don't know so I did some research.
An hour with google turned up interesting results/stories. It seems there is a connection between Micro$oft, Xenocode, Novell and possibly others. Xenocode was founded by former Micro$oft employees (http://dotnet.sys-con.com/node/833698/print)
How I like "The company claims thousands of followers" phrases/marketing blurb :-)
--- quote --- ...applications deployed with Xenocode have essentially the same performance characteristics as native executables. “Xenocoded” applications require no setup, configuration, clients, or device drivers, are isolated from external DLL and dependency conflicts, and run properly on Windows Vista and locked-down desktops. Xenocode-virtualized applications can be easily deployed on USB devices, corporate intranets, the Internet, or existing desktop management infrastructure software such as Microsoft SMS, LANDesk Management Suite, BMC Configuration Management and Novell ZENworks. --- quote ---
--- quote --- Novell today announced the launch of Novell ZENworks Application Virtualization (Zav). Born from a partnership with Xenocode, a company founded by former Microsoft engineers, Novell Zav makes it possible to package Windows applications inside a virtual container to ease their deployment while minimizingrisks of application conflicts and compatibility problems between applications --- quote ---
--- quote --- Xenocode, a next-generation virtualization company, today announced the licensing of its best-in-class application virtualization technology to Novell. The recently announced Novell ZENworks Application Virtualization solution leverages Xenocode’s virtualization technology to allow customers to deploy their applications inside a “virtual container” requiring no installation or configuration. Virtual application deployment eliminates application conflicts and compatibility problems on Windows desktops, allowing organizations to run legacy applications on Windows Vista and deploy multiple versions of applications side-by-side in isolated “sandboxes.”
“We are especially excited about combining our leadership in virtualization technology with Novell’s best-of-breed ZENworks management infrastructure platform,” said Kenji Obata, Xenocode founder and CEO. “This licensing agreement provides a powerful, integrated solution for large organizations to assure instant availability of applications across all versions and desktop platforms.” --- quote ---
So this application virtualization _might_ be a big thing considering this axis of evil or just another a flash in the pan.
A mentionable net event was this Xenocode browser-in-a-sandbox stuff. Though from what I've read (mainly german sites) it wasn't spectaculary successful and in the end it turned out not-so-sandbox like ;-)
If you are afraid of this, just don't spread hope everywhere: http://www.worthlessgenius.com/2008/10/08/software-spotlight-neuro-programme...
Anyway ... I'm only interested in challenging bugs, making apps to work is of secondary interest (if any) ;-)
Regards
http://bugs.winehq.org/show_bug.cgi?id=11030
Nicholas lazar.dobrescu@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |lazar.dobrescu@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=11030
--- Comment #12 from Anastasius Focht focht@gmx.net 2009-05-21 10:00:53 --- Hello,
a bit off-topic but there is similar "application virtualization" solution called "Thinstall" from VMWare.
This blog talks about "Thinstall" and incidentally Wine project ;-)
http://www.brianmadden.com/blogs/brianmadden/archive/2008/05/15/thinstall-wi...
Regarding Xenocode ... I already mentioned this "browser-in-a-sandbox" in my previous comment: http://www.xenocode.com/Browsers/
This might be a good testbed for Wine - though I didn't look into yet. Feel free to try some out and report bugs.
Regards
http://bugs.winehq.org/show_bug.cgi?id=11030
--- Comment #13 from Nikolay Sivov bunglehead@gmail.com 2009-06-05 09:03:54 --- (In reply to comment #9)
Move code from NtCreateFile() to internal (non exported) function or just rename it and create another wrapper with original exported name. Have NtOpenFile() and NtCreateFile() call this internal function.
Move code from NtQueryFullAttributesFile() to internal (non exported) function or just rename it and create another wrapper with original exported name. Have NtQueryAttributesFile() and NtQueryFullAttributesFile() call this internal function.
Both case use internal helper now:
http://source.winehq.org/git/wine.git?a=commit;h=1880a786d131126220f9784d033... http://source.winehq.org/git/wine.git?a=commit;h=e11c2496c5d40c93f5c7f67bf00...
So it's needed to retest.
http://bugs.winehq.org/show_bug.cgi?id=11030
--- Comment #14 from Anastasius Focht focht@gmx.net 2009-06-05 14:28:57 --- Hello,
yes, this specific issue is now fixed.
Xenocode proceeds further only to encounter another Wine bug (instead of stack overflow you get a message box now) ;-) Please file another bug for the next issue, I'll add another analysis there.
I suggest to close this one as each Xenocode/Wine ntdll issue should be documented separately.
Regards
http://bugs.winehq.org/show_bug.cgi?id=11030
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Component|-unknown |ntdll Resolution| |FIXED
--- Comment #15 from Nikolay Sivov bunglehead@gmail.com 2009-06-05 14:36:14 --- (In reply to comment #14)
Xenocode proceeds further only to encounter another Wine bug (instead of stack overflow you get a message box now) ;-) Please file another bug for the next issue, I'll add another analysis there.
Will do.
I suggest to close this one as each Xenocode/Wine ntdll issue should be documented separately.
Regards
Thanks for testing.
http://bugs.winehq.org/show_bug.cgi?id=11030
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #16 from Alexandre Julliard julliard@winehq.org 2009-06-19 10:57:45 --- Closing bugs fixed in 1.1.24.
http://bugs.winehq.org/show_bug.cgi?id=11030
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |e11c2496c5d40c93f5c7f67bf00 | |d862c288d440a URL| |http://www.transparentcorp. | |com/downloads/NP2_Install.e | |xe