Re: do_execve() finding vmspace_destroyed set under load

From: Kris Kennaway (kris_at_obsecurity.org)
Date: 01/30/05

  • Next message: Poul-Henning Kamp: "tcp_isn_tick() / dummynet() callout madness ?"
    Date: Sun, 30 Jan 2005 02:57:33 -0800
    To: "David G. Lawrence" <dg@dglawrence.com>
    
    
    

    On Sun, Jan 30, 2005 at 02:14:03AM -0800, David G. Lawrence wrote:
    > > > > Needless to say, the scripts get pretty unhappy when they're summarily
    > > > > aborted. What is the cause of this?
    > > >
    > > > There are many reasons why an exec can fail - you'd need to collect
    > > > more info to be able to say specifically. Speaking generally, the above
    > > > code happens because something failed after the process's address space
    > > > had been cleared, so there is no process executable image to return
    > > > to. The only thing to do in that case is to kill off the process. If
    > > > you're only seeing the problem under load, it is probably indicating
    > > > that your running out of a kernel VM pool of some kind.
    > >
    > > Any suggestions on what to look at to try and debug this further?
    >
    > The first thing to do is to add some kernel printf's to do_execve()
    > in each of the 'if (error)' cases to determine where the error is occuring.
    > It's probably not worth putting them in cases prior to the 'loop through
    > the list of image activators', since the vmspace isn't destroyed until
    > then.
    > Once you've done that, the cause of the problem should become obvious.

    Thanks.

    Kris

    
    



  • Next message: Poul-Henning Kamp: "tcp_isn_tick() / dummynet() callout madness ?"

    Relevant Pages

    • Re: do_execve() finding vmspace_destroyed set under load
      ... >> Any suggestions on what to look at to try and debug this further? ... > The first thing to do is to add some kernel printf's to do_execve ... It's the error branch here: ... Kris ...
      (freebsd-current)
    • [patch 1/2] infrastructure to debug (dynamic) objects
      ... problem spot are kernel timers, where the detection of the problem ... While working on a timer related bug report I had to hack in ... This debug hack was fine for temporary use, ...
      (Linux-Kernel)
    • Re: Error 4309 returned when writing files
      ... kernel (or at least debug version of filesys) and enable all debug zones ... I enabled KITL and the kernel debugger in my retail build and set ... on Sector 4040 ...
      (microsoft.public.windowsce.platbuilder)
    • Re: Capturing debug messages using CeLog on a release terminal
      ... Don't set the shipbuild flag in your retail kernel (because it will #define RETAILMSG and DEBUGMSG into nirvana) and don't set Enable CE Target control and don't set Enable Kernel Debugger. ... I'm not entirely sure if DEBUGMSGs (as opposed to RETAILMSGs) still work when replacing dll's in a retail build with their debug counterparts. ...
      (microsoft.public.windowsce.platbuilder)
    • [patch 0/2] object debugging infrastructure
      ... problem spot are kernel timers, where the detection of the problem ... While working on a timer related bug report I had to hack in ... This debug hack was fine for temporary use, ... Instead of creating specialized debugging code for the timer subsystem ...
      (Linux-Kernel)