Trust No Program
This topic is locked: you cannot edit posts or make replies.
tzuk


Joined: 22 Jun 2004
Posts: 15008
Reply with quote
wraithdu, you might remember that I said I revised the immediate recovery mechanism to scan the set of open files so it knows for sure when the program is done with the file. Well by "scan" I mean get the name of an open file, and that is something that is prone to lock ups if done the "proper" way with official APIs. (You can google "obquerynamestring hang" if you want to know more.) At first I thought I could work around it but the debug logs here show it didn't work as I expected. But even in the best case scenario (i.e. if it succeeds in preventing the lock up) it would still introduce intermittent delays. Luckily I have a driver available to me Smile so I was able to do it some other way, which requires a driver, and seems to produce much better results.

I'd like to take this opportunity to thank everyone who had this problem for your patience and I'm glad to hear the latest revision resolves the problem.

_________________
tzuk
View user's profileSend private message
wraithdu


Joined: 29 Jun 2007
Posts: 1410
Reply with quote
I'm somewhat familiar with finding open file handles, and I've run into the same problems while messing around with it in AutoIt (user mode only). I was only querying file objects (using NtQueryObject), but it came down to skipping objects with particular 'GrantedAccess' values. But even then there were certain processes with open handles that would still hang (most notably the BtStackServer process associated with my bluetooth adapter on Vista).

In the end I abandoned it, but I know there's a way to do it reliably with a driver, since Sysinternal's Process Explorer does it all the time. However I've been unable to find a full description of how it accomplishes this through google Sad
View user's profileSend private message
tzuk


Joined: 22 Jun 2004
Posts: 15008
Reply with quote
NtQueryObject -- right, that's actually what I meant and what I too was using. In a driver it's a straightforward thing. Given a handle to a file (which you might get from NtQuerySystemInformation) you can easily reference the file object, and it contains the name of the file.

There some more complicated aspects to this for Process Explorer, because that driver is probably executing in the context of ProcExp.exe, but needs to look at handles that belong to other processes. So that would probably involve either duplicating the handle into ProcExp.exe first, or perhaps instead the driver is doing KeStackAttachProcess on the target process.

Either way, that's complicated stuff. For me it's much easier because the sandboxed process is enumerating itself, so everything is in the same process context.
View user's profileSend private message
MikeH


Joined: 04 Mar 2007
Posts: 129
Reply with quote
tzuk wrote:
Please try version 3.37.08.

tzuk:

You can also count me among your long list of satisfied customers in regards to the Immediate Recovery issue.

Thank you.

Regards,
Mike
View user's profileSend private message
FF hangs cured
D.S.
Guest

Reply with quote
Just reporting in to add to the list of happy users.

XP Home Edition ver 5.1.2600 SP-3 Build 2600
Sandboxie ver 3.37.10 beta (Now)
FF ver 3.0.7
Comodo Firewall ver 3.8.65951.477
PC Tools Antivirus 2008 ver 5.0.1.1

With the latest Snadboxie version, (non-beta) I was also having the same FF hang problems many others were reporting. Hanging after --import, quick recovery, virus scan.

I just downloaded Sandboxie 3.37.10 beta and tried again.
Download, quick recovery, scan, works perfectly. Excellent fix Tzuk. Thanks!!!
Freezes/crashes related to Immediate Recover
You cannot post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 2 of 2  

Use the RSS feed to watch this topic for replies
  
  
 This topic is locked: you cannot edit posts or make replies.  

Sandboxie is Copyright © 2004-2012 by Sandboxie Holdings LLC.  All rights reserved.
Sandboxie.com | Contact Author
This site has been viewed 208,671,896 times since June 2004