• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
bpfdetach blocked on lck_mtx_lock
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bpfdetach blocked on lck_mtx_lock


  • Subject: bpfdetach blocked on lck_mtx_lock
  • From: "Bhavesh Davda" <email@hidden>
  • Date: Fri, 16 Feb 2007 14:36:42 -0800

I've got a P_WEXIT state process stuck in bpfdetach while closing all
its fds from proc_exit().

I can't figure out why lck_mtx_lock() blocked trying to lock the
bpf_mlock mutex. None of the other processes/threads in the system
seem to be in anything related to bpf code.

How do I debug this?

Here's its partial stack backtrace (sanitized):


#0 0x001354b9 in thread_invoke (old_thread=0x3d5cf78, new_thread=0x3d5d9a4, reason=0) at /SourceCache/xnu/xnu-792.13.8/osfmk/kern/sched_prim.c:1424 #1 0x001358e0 in thread_block_reason (continuation=0, parameter=0x0, reason=0) at /SourceCache/xnu/xnu-792.13.8/osfmk/kern/sched_prim.c:1692 #2 0x0013596e in thread_block (continuation=0) at /SourceCache/xnu/xnu-792.13.8/osfmk/kern/sched_prim.c:1714 #3 0x0012f488 in lck_mtx_lock_wait (lck=0x3821750, holder=0x3d5cf78) at /SourceCache/xnu/xnu-792.13.8/osfmk/kern/locks.c:569 #4 0x00197a0c in lck_mtx_lock () #5 0x001fe8b6 in bpfdetach (ifp=0x41efa04) at /SourceCache/xnu/xnu-792.13.8/bsd/net/bpf.c:1556 #6 0x002031fc in ifp_use_reached_zero (ifp=0x41efa04) at /SourceCache/xnu/xnu-792.13.8/bsd/net/dlil.c:1605 #7 0x00203850 in dlil_if_detach (ifp=0x41efa04) at /SourceCache/xnu/xnu-792.13.8/bsd/net/dlil.c:2447 #8 0x0021a7e5 in ifnet_detach (interface=0x41efa04) at /SourceCache/xnu/xnu-792.13.8/bsd/net/kpi_interface.c:197 ... #11 0x003345be in ctl_disconnect (so=0x3f1b1d8) at /SourceCache/xnu/xnu-792.13.8/bsd/kern/kern_control.c:378 #12 0x0035d2f0 in sodisconnectlocked (so=0x3f1b1d8) at /SourceCache/xnu/xnu-792.13.8/bsd/kern/uipc_socket.c:1000 #13 0x0035ec48 in soclose_locked (so=0x3f1b1d8) at /SourceCache/xnu/xnu-792.13.8/bsd/kern/uipc_socket.c:770 #14 0x0035ede1 in soclose (so=0x3f1b1d8) at /SourceCache/xnu/xnu-792.13.8/bsd/kern/uipc_socket.c:826 #15 0x00330464 in closef_locked (fp=0x3a2c590, fg=0x3f84190, p=0x3fcf5dc) at /SourceCache/xnu/xnu-792.13.8/bsd/kern/kern_descrip.c:2767 #16 0x003305f6 in fdfree (p=0x3fcf5dc) at /SourceCache/xnu/xnu-792.13.8/bsd/kern/kern_descrip.c:2283 #17 0x00337b2c in proc_exit (p=0x3fcf5dc) at /SourceCache/xnu/xnu-792.13.8/bsd/kern/kern_exit.c:313 #18 0x0013b4ed in thread_terminate_self () at /SourceCache/xnu/xnu-792.13.8/osfmk/kern/thread.c:302 #19 0x0013cd13 in special_handler (rh=0x3d5d220, thread=0x3d5cf78) at /SourceCache/xnu/xnu-792.13.8/osfmk/kern/thread_act.c:787 #20 0x0013cb70 in act_execute_returnhandlers () at /SourceCache/xnu/xnu-792.13.8/osfmk/kern/thread_act.c:696 #21 0x0012741d in ast_taken (reasons=4294967295, enable=1) at /SourceCache/xnu/xnu-792.13.8/osfmk/kern/ast.c:154 #22 0x001a1e3d in i386_astintr (preemption=0) at /SourceCache/xnu/xnu-792.13.8/osfmk/i386/trap.c:1061 #23 0x0019a836 in return_from_trap ()




-- Bhavesh P. Davda _______________________________________________ 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
  • Follow-Ups:
    • Re: bpfdetach blocked on lck_mtx_lock
      • From: Quinn <email@hidden>
  • Prev by Date: Re: How to compare IOMedia->getName() return string with user input string in start () routine of driver
  • Next by Date: New kernel not running.
  • Previous by thread: Re: How to compare IOMedia->getName() return string with user input string in start () routine of driver
  • Next by thread: Re: bpfdetach blocked on lck_mtx_lock
  • Index(es):
    • Date
    • Thread