http://bugs.winehq.org/show_bug.cgi?id=27538
Summary: oSpy: attaching or creating a process fails claiming ospy must be run with administrative priveleges Product: Wine Version: 1.2.3 Platform: x86-64 URL: http://code.google.com/p/ospy/downloads/list OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: asb@asbradbury.org
Created an attachment (id=35202) --> (http://bugs.winehq.org/attachment.cgi?id=35202) terminal output when trying to attach to process
If you go Capture->Create process or Capture->Attach to process then an error dialog with the text "You need to run oSpy with administrative priveleges in order to do this."
To set up and environment to reproduce this: Download and unzip ospy, and set up a new WINEPREFIX with `winetricks -q dotnet20 gdiplus`. dotnet20 is necessary as the program does not work with mono210, gdiplus is not strictly necessary but resolves the problem of corrupted menus. I have attached a log but there doesn't seem to be anything very relevant there. Both oSpy and EasyHook (which it uses) are open source.
I am running wine on Ubuntu 11.04 x86_64. I encounter this same problem with wine-1.3.22-203-gac90c1b, 1.3.22, and 1.2.3. This report was made using oSpy 1.10.4: $ sha1sum ../oSpy-1.10.4.zip 7856f0281f3bebae2430760cfe0d61f8131e65e4 ../oSpy-1.10.4.zip
http://bugs.winehq.org/show_bug.cgi?id=27538
Alex Bradbury asb@asbradbury.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download
--- Comment #1 from Alex Bradbury asb@asbradbury.org 2011-06-19 11:15:27 CDT --- Adding download keyword. I haven't added dotnet keyword because I am not able to determine that this bug is "related to this dotNet usage instead of being independent bugs".
http://bugs.winehq.org/show_bug.cgi?id=27538
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |dotnet Status|UNCONFIRMED |RESOLVED CC| |focht@gmx.net Resolution| |DUPLICATE Summary|oSpy: attaching or creating |oSpy reports missing |a process fails claiming |administrative privileges |ospy must be run with |when trying to attach or |administrative priveleges |create a process (main | |assembly installation into | |WinSxS fails, missing | |reparse point/junction | |support)
--- Comment #2 from Anastasius Focht focht@gmx.net 2011-06-19 12:26:34 CDT --- Hello,
the app installs a couple of managed assemblies into GAC and the side-by-side cache as part of "capture process" prerequisite. See code here:
http://ospy.googlecode.com/svn/trunk/oSpy1/MainForm.cs -> PrepareCapture()
http://ospy.googlecode.com/svn/trunk/EasyHook/EasyHook/Config.cs -> Register()
http://ospy.googlecode.com/svn/trunk/EasyHook/EasyHookDll/gacutil.cpp -> GacInstallAssembly()
List of assemblies to be installed: "oSpy", "EasyHook.dll", "oSpy.exe", "oSpyAgent.dll"
The installation of managed assemblies into shared GAC works.
--- snip --- 0027:CALL EasyHook32._GacInstallAssembly@16(<unknown, check return>) ret=03f55653 0027:Call shlwapi.PathFindExtensionW(009eb098 L"Z:\home\focht\Downloads\oSpy-1.10.4\EasyHook.dll") ret=7a13c09b ... 0027:RET EasyHook32._GacInstallAssembly@16(04da8138,009eb098,008a7008,00a17680) retval=00000001 ret=03f55653 --- snip ---
The installation of managed executable into side-by-side cache (WinSxS) does not:
--- snip --- 0027:CALL EasyHook32._GacInstallAssembly@16(04da8138,00a11420,008a7008,00a17748) ret=03f55653 0027:Call shlwapi.PathFindExtensionW(00a11420 L"Z:\home\focht\Downloads\oSpy-1.10.4\oSpy.exe") ret=7a13c09b ... 0027:Call KERNEL32.MoveFileW(001e9534 L"C:\windows\assembly\tmp\ZYINJFB8",001ddb00 L"C:\windows\WinSxS\MSIL_oSpy_f38f19e9943b6121_1.10.4.0_x-ww_4df60e36") ret=7a126499 0027:Ret KERNEL32.MoveFileW() retval=00000001 ret=7a126499 ... 0027:Call KERNEL32.GetFileAttributesW(0032ccc0 L"C:\windows\WinSxS\MSIL_oSpy_f38f19e9943b6121_1.10.4.0_x-ww_4df60e36") ret=79eb7b18 0027:Ret KERNEL32.GetFileAttributesW() retval=00000010 ret=79eb7b18 0027:Call KERNEL32.CreateFileW(0032dfd8 L"C:\windows\assembly\GAC_MSIL\oSpy\1.10.4.0__f38f19e9943b6121",c0000000,00000003,00000000,00000003,02200000,00000000) ret=79ea0464 0027:Ret KERNEL32.CreateFileW() retval=00000270 ret=79ea0464 ... 0027:Call KERNEL32.DeviceIoControl(00000270,000900a4,001ddb90,00000128,00000000,00000000,0032caa0,00000000) ret=7a13f846 0027:fixme:ntdll:server_ioctl_file Unsupported ioctl 900a4 (device=9 access=0 func=29 method=0) 0027:Ret KERNEL32.DeviceIoControl() retval=00000000 ret=7a13f846 0027:Call KERNEL32.GetLastError() ret=7a13f856 0027:Ret KERNEL32.GetLastError() retval=00000032 ret=7a13f856 ... 0027:RET EasyHook32._GacInstallAssembly@16() retval=00000000 ret=03f55653 ... 0027:Call KERNEL32.RaiseException(e0434f4d,00000001,00000001,0032eaa8) ret=79f97065 0027:trace:seh:raise_exception code=e0434f4d flags=1 addr=0x7b839f9b ip=7b839f9b tid=0027 0027:trace:seh:raise_exception info[0]=80131600 0027:trace:seh:raise_exception eax=7b825f1d ebx=7b893ff4 ecx=80131600 edx=0032e9a8 esi=0032ea88 edi=0032ea00 0027:trace:seh:raise_exception ebp=0032e9e8 esp=0032e984 cs=0073 ds=007b es=007b fs=0033 gs=003b flags=00000207 ... 0027:Call user32.MessageBoxW(00010096,009ea7ac L"You need to run oSpy with administrative privileges in order to do this.",009ea850 L"Permission Denied",00000010) ret=03f557cf --- snip ---
The reason is unfortunately a well known bug, the missing junction/reparse point support (bug 10601)
Regards
*** This bug has been marked as a duplicate of bug 10601 ***
http://bugs.winehq.org/show_bug.cgi?id=27538
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #3 from Austin English austinenglish@gmail.com 2011-07-07 16:15:34 CDT --- Closing.