Program won't run in debugger

Eric Pouech pouech-eric at wanadoo.fr
Thu Oct 2 13:37:06 CDT 2003


Shachar Shemesh wrote:
> Hi all,
> 
> I am trying to find out why Wine is not working with some closed 
> application, and fix it. I have narrowed it down from the logs to 
> something to do with MDI (Multiple Documents Interface). However - 
> trying to connect with a debugger to the program causes the program to 
> bomb quite bombastically.
> 
> It appears that someone (ddd/gdb won't give me a stack frame, so I can 
> only assume this is in the PE portion of the native application, rather 
> than inside Wine) keeps calling STI and CLI (Set Interrupt and Clear 
> Interrupt). This generates a segmentation fault (makes sense - this is 
> priveleged command). If I do "cont", things continue (I can't vouch as 
> to how long they do), but another sementation fault is right around the 
> corner then.
> 
> On the other hand, if I detach the debugger from the process, the 
> process runs fine. I am at a loss as to what might be the cause.
> 
> Is there any way to tell gdb to ignore the segmentation fault, and just 
> let the builtin handler take care of it?
> 
> Will using winedbg instead do me any good?
you can try the pass command (instead of cont) in winedbg
it will let the exception walk up the chain of exceptions handlers, and 
may cli/sti will get a proper handling

A+
-- 
Eric Pouech




More information about the wine-devel mailing list