On Fri, 21 Sep 2001, Stas Bekman wrote:
 
> It seems to me like a bug in gdb. What version of gdb do you run, doug?
> Mine is GNU gdb 20010813 (MI_OUT).

% gdb -v
GNU gdb 5.0
Copyright ...
 
> I've debugged it under strace and all this time that the server doesn't
> start, it runs a huge loop of calls like:
> ptrace(PTRACE_PEEKTEXT, 14438, 0x401f27d0, [0]) = 0
> which according to the ptrace manpage, is gdb trying to read a word from
> the text or data segments. when this loop ends, the server is then
> listening and we run tests. can you strace your gdb and see what you get?

same.  ptrace() is how gdb talks to the process, you'll see similar
(lots of ptrace) if you strace strace, example:
% strace strace perl -e0

> also watch this, the non-mod_perl httpd doesn't seem to be right.
> 
>  % gdb /home/stas/httpd/2.0/bin/httpd
> (gdb) run
> Starting program: /home/stas/httpd/2.0/bin/httpd
> [New Thread 1024 (LWP 14867)]
> 
> Program exited normally.
> (gdb)
> 
> error_log:
> [Fri Sep 21 15:13:47 2001] [notice] Apache/2.0.26-dev (Unix) mod_ssl/3.0a0
> OpenSSL/0.9.6b DAV/2 configured -- resuming normal operations
> 
> why's that?

what are you expecting?  you didn't run with -d or -f arguments.
 
> BTW, while messing with debug I've fixed this code to use writefile(), is
> that OK?

"fixed"?  i don't see anything wrong with the existing code.  what is
gained by using writefile() ?




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to