httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruce Korb <>
Subject Re: Debugging help, please?
Date Wed, 02 Jan 2002 22:45:05 GMT
Thomas Eibner wrote:
> On Wed, Jan 02, 2002 at 02:24:41PM -0800, Bruce Korb wrote:
> > I'll see what I can do tonight, when I get home.  Thanks.
> > I'm not really sure I've ever been able to capture a
> > child with gdb, though.  It's easy with UnixWare's Debug,
> > but I'll see what I can do.  Thanks! - Bruce
> That's why you run apache in the single process mode (-X).

In that case, it won't work.  I need to be able to debug
my program:

in the context of running as a CGI service.  I.e., spawned by
httpd.  Therefore, I first tried cloning the environment
by using a shell wrapper:

  #! /bin/sh
  exec 3> /tmp/
  env | sed "s,^\([a-zA-Z_]*\)=\(.*\),export \1='\2'" >&3
  cat > /tmp/
  echo "autogen $@ < /tmp/" >&3
  exec 3>&-
  autogen $@ < /tmp/

That failed.  This succeeded:

  env - ksh /tmp/

leaving me quite baffled.  On Solaris and UnixWare,
just running the autogen binary directly works fine.
Only Linux.  The question I need to find an answer for
is, "why?"  :-(

View raw message