Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: kernel panic when stopping userland driver in gdb



On Monday, February 17, 2003, at 08:49 PM, Hado Hein wrote:

I have some usb stuff that works fine. Except one thing :
When in gdb I hit pause to debug my program. Usually the program stops
executing in the middle of nowhere.
I have some threads and some timers and sockets open.

In the stack frames there are functions like "CFRunLoopinMode" and two
or three "mach_trap_dobidoo" on top of my last function (stack frame).

If I hit stop at that point the kernel crashes instantly. No big deal -
I just step over until I'm in my stackframe again and stopping works.

But ... if I run the program in terminal the same happens when I hit
ctrl-c. Not reproducable but every three or four times.

Is there a way to avoid / catch this ?

Care to post the panic backtrace? Without knowing what went wrong it's impossible to suggest way to avoid it :-)

--Umesh
--
Umesh Vaishampayan
Mac OS X - Kernel
_______________________________________________
darwin-drivers mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-drivers
Do not post admin requests to the list. They will be ignored.

References: 
 >kernel panic when stopping userland driver in gdb (From: email@hidden (Hado Hein))



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.