Doug MacEachern wrote:

> 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 ...


the same here 5.0 something.


>>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


ok, so this doesn't help.


>>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.


sorry, my mistake, I've rerun with -DONE_PROCESS

(gdb)

  Starting program: /home/stas/httpd/2.0/bin/httpd -DONE_PROCESS


the plain httpd is available for serving almost immediately (takes about 
  3 sec to switch to accept()). With mod_perl it's a few minutes.

Any other ideas to look at?


>>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() ?

oh, never mind, I just thought that instead of pasing the fh around, 

we could just throw the content in. not much gain just simpler. it doesn't 

fix anything otherwise, I've used a wrong word.



_____________________________________________________________________
Stas Bekman              JAm_pH     --   Just Another mod_perl Hacker
http://stason.org/       mod_perl Guide  http://perl.apache.org/guide
mailto:[EMAIL PROTECTED]   http://apachetoday.com http://eXtropia.com/
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/



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

Reply via email to