Wait-Queue Panic while loading the Kext
Wait-Queue Panic while loading the Kext
- Subject: Wait-Queue Panic while loading the Kext
- From: JanakiRam <email@hidden>
- Date: Sat, 25 Aug 2007 11:09:22 +0530
Hi ALL,
I'm newbie to Kernel Panics.While loading my kext using kextload , my system is panicking. I've used the two machine debugging mechanism to get some more info abt the panic.But still have no clues. Can any one provide some clues on this one. ?
The BackTrace is not showing the entire info. Some one is internally calling the semaphore_wait_internal. I've used the Kernel Debug Kit and added kgmacros , mach_kernel to gdb. I've also created symbol file for my kext and its added to gdb.
The Problem i'm facing is i'm unable to interpret the address 0x42E26C34 (some more : 0x42E63F30 0x42E64B98 0x42E4FCB0 0x42E25FF8 0x42E26404 0x42E65DD0 ). The address starting with 0x000 pattern , the x/i command is working its showing the proper source for the cause, but for the address pattern 0x42 , its unable to interpret.
Please help me to solve this. Thanks in Advance.
-----------------------------------------
Kernel Panic Log :
(gdb) paniclog
panic(cpu 0 caller 0x00036B48): wait queue deadlock - wq=0x38d5c68, cpu=0
Latest stack backtrace for cpu 0:
Backtrace:
0x000952D8 0x000957F0 0x00026898 0x00036B48 0x42E26C34 0x42E26834 0x42E63F30 0x42E64B98
0x42E4FCB0 0x42E25FF8 0x42E26404 0x42E65DD0 0x000912A8 0x00091514 0x00044C18 0x0002921C
0x000233F8 0x000ABCAC 0x2F2F2F2F
Kernel loadable modules in backtrace (with dependencies):
com.yourcompany.kext.mykext(1.0.0d1)@0x42e1f000
Proceeding back via exception chain:
Exception state (sv=0x4E387000)
PC=0x9000B4C8; MSR=0x0200F030; DAR=0x42E79888; DSISR=0x40000000; LR=0x9000B41C; R1=0xBFFFF140; XCP=0x00000030 (0xC00 - System call)
-----------------------------------------
(gdb) backtrace full
#0 Debugger (message=0x30d6a4 "panic") at /SourceCache/xnu/xnu-792.17.14/osfmk/ppc/model_dep.c:639
pi_size = 804
spl = 0
#1 0x00026898 in panic (str=0x30d33c "wait queue deadlock - wq=0x%x, cpu=%d\n") at /SourceCache/xnu/xnu-
792.17.14/osfmk/kern/debug.c:202
listp = 0x2c873964 ""
s = 0
wq = (wait_queue_t) 0x0
#2 0x00036b48 in semaphore_wait_internal (wait_semaphore=0x38d5c60, signal_semaphore=0x0, wait_timep=0x0, caller_cont=0) at /SourceCache/xnu/xnu-
792.17.14/osfmk/kern/sync_sema.c:587
nonblocking = 1
wait_result = 56749440
spl_level = 1
kr = 30
#3 0x42e26c34 in ?? ()
-----------------------------------------
Interpreting the address specified in panic backtrace
(gdb) x/i 0x000952D8
0x952d8 <print_backtrace+176>: bne+ cr4,0x953a8 <print_backtrace+384>
(gdb) x/i 0x000957F0
0x957f0 <Debugger+108>: lwz r0,556(r31)
(gdb) x/i 0x00026898
0x26898 <panic+476>: lwz r0,560(r30)
(gdb) x/i 0x00036B48
0x36b48 <semaphore_wait_internal+112>: cmpwi cr4,r29,0
(gdb) x/i 0x000912A8
0x912a8 <kmod_start_or_stop+224>: cmpwi cr7,r30,0
(gdb) x/i 0x00091514
0x91514 <kmod_control+128>: b 0x9152c <kmod_control+152>
(gdb) x/i 0x00044C18
0x44c18 <_Xkmod_control+256>: mr. r3,r3
(gdb) x/i 0x0002921C
0x2921c <ipc_kobject_server+324>: b 0x29280 <ipc_kobject_server+424>
(gdb) x/i 0x000233F8
0x233f8 <mach_msg_overwrite_trap+3032>: cmpwi cr7,r3,0
(gdb) x/i 0x000ABCAC
0xabcac <.L_mach_return>: srawi r0,r3,31
(gdb) x/i0x2F2F2F2F
0x2f2f2f2f: Cannot access memory at address 0x2f2f2f2f
(gdb) x/i 0xC00
0xc00 <get_association+88>: Cannot access memory at address 0xc00
-JanakiRam.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden