EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Application Freezes under debugger

Posted: 12/23/2013 09:52:44
by Oleg Savelos (Standard support level)
Joined: 08/25/2008
Posts: 21

I have a strange option with the 3.2 build of CBFS.
Whenever a debugger is attached the whole process hangs when Read or Write request are made by CBFS. The behavior is not replicated when there is no debugger attached to process. This makes almost impossible to debug the applications CBFS related code.
Posted: 12/23/2013 10:08:34
by Eugene Mayevski (Team)

The OS was not designed with things like CBFS in mind, so locking under debugging is kind of natural behavior. If debugging works - that's great. If you want to single-step in callbacks - that will very likely cause a BSOD or deadlocking.

The reason is that when the callback is called, certain system-wide resources are locked by the OS. Debugger might perform some action that causes either recurrent access to the disk or to locked resources, thus causing trouble.

The general rule is the less you do in callbacks, the better.

Sincerely yours
Eugene Mayevski



Topic viewed 1811 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS business operates as a division of /n software, inc. For more information, please read the announcement.

Got it!