Mailing Lists: Apple Mailing Lists

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

kdp screwup ?



I put a break point in my kext with PE_enter_debugger(). It is the first line in a my fs mount callback. The debugger breaks into this fine, but as soon as I do a backtrace or try to step back into the function, the kernel panics when kdp tries to resolve an address in the argument list to the mount call and everything dies.

Here is a gdb session:

Program received signal SIGTRAP, Trace/breakpoint trap.
0x00081214 in Debugger ()
(gdb) bt 5
#0 0x00081214 in Debugger ()
#1 0x001fb62c in PE_enter_debugger ()
kdp_reply_wait: error from kdp_receive: receive timeout exceeded
kdp_transaction (kdp_xfer_memory): transation timed out
kdp_transaction (kdp_xfer_memory): re-sending transaction
^Ckdp_reply_wait: error from kdp_receive: RR_RECV_INTR
...
^Ckdp_reply_wait: error from kdp_receive: RR_RECV_INTR
#2 0x1e79c7dc in my_mount (mp=0x28b5520, path=0x206c "", data=0xbffff9ac <Error reading address 0xbffff9ac: Interrupted system call>, ndp=Error accessing memory address 0x1811bd94: Interrupted system call.
) at dd/vfs/ncp_vfsops.c:116
^Ckdp_reply_wait: error from kdp_receive: RR_RECV_INTR
^Ckdp_reply_wait: error from kdp_receive: RR_RECV_INTR
Error accessing memory address 0x1811bcd0: Interrupted system call.

The data arg is the address of structure on the stack in my userland mount program.

Anyone know what is going on here? I'm not even getting to my first copyin call to copy the 'data' arg..

TIA.
--
Brian Bergstrand
<http://www.classicalguitar.net/brian/> PGP Key ID: 0xB6C7B6A2
Fig Newton: The force required to accelerate a fig 39.37 inches per second. - J. Hart
_______________________________________________
darwin-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-development
Do not post admin requests to the list. They will be ignored.


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.