Re: How to get a core dump

2004-11-08 Thread Stas Bekman
Marc Gracia wrote: Sorry, here the backtrace... #0 0x4018de75 in Perl_hv_free_ent (my_perl=0x85ba6d8, hv=0xd103fd0, entry=0xcfdb698) at hv.c:1592 #1 0x4018e11b in S_hfreeentries (my_perl=0x85ba6d8, hv=0x85ba6d8) at hv.c:1681 #2 0x4018e182 in Perl_hv_undef (my_perl=0x85ba6d8, hv=0xd103fd0)

Re: How to get a core dump

2004-11-08 Thread David Hodgkinson
On 8 Nov 2004, at 14:39, Marc Gracia wrote: So, my question is... There is any way to force apache to dump a coredump file? I suppose I'm forgotting something but I really desperate... Yes. As root, you need to do the ulimit magic and then start the server. My question is: do you *really* need to d

Re: How to get a core dump

2004-11-08 Thread Marc Gracia
Yes, I've just taked in account that it happens at clean-up time, at perl shutdown. So I suppose that's nothing wrong with this. Don't know why, I supposed it was related to the GTopLimit automatic server kill. Now I see that it can be true. My intention was to try to find out if this coredumps wh

Re: How to get a core dump

2004-11-08 Thread Marc Gracia
Sorry, here the backtrace... #0 0x4018de75 in Perl_hv_free_ent (my_perl=0x85ba6d8, hv=0xd103fd0, entry=0xcfdb698) at hv.c:1592 #1 0x4018e11b in S_hfreeentries (my_perl=0x85ba6d8, hv=0x85ba6d8) at hv.c:1681 #2 0x4018e182 in Perl_hv_undef (my_perl=0x85ba6d8, hv=0xd103fd0) at hv.c:1707 #3 0x

Re: How to get a core dump

2004-11-08 Thread Marc Gracia
Well at last the core where produced. When called gdb with the httpd executable and the core file, gdb shows this: Core was generated by `/usr/eBD/bin/httpd'. Program terminated with signal 11, Segmentation fault. Reading symbols from /lib/tls/libpthread.so.0...done. Loaded symbols for /lib/tls/l

Re: How to get a core dump

2004-11-08 Thread Marc Gracia
Hi, Well, It's only 2 hours of on line testing, but seems that the recompilation and upgrade to apache-1.3.33 I did with "-g" to get debug info on coredumps solved the problem I used exactly the same configure options on apache,mod_ssl and mod_perl (I used the same shell script, in fact) Now

Re: How to get a core dump

2004-11-05 Thread Marc Gracia
Many Thanks Stass and Glenn, I'll try all this anf will get back.. On dv, 2004-11-05 at 13:38, Marc Gracia wrote: > Hi everybody. > I have a problem on a production cluster with a somewhat big mod_perl > app, and I just cannot get any clue of what is happening. > > The problem is that the servers

Re: How to get a core dump

2004-11-05 Thread Glenn Strauss
On Fri, Nov 05, 2004 at 01:38:44PM +0100, Marc Gracia wrote: > So, my question is... There is any way to force apache to dump a > coredump file? I suppose I'm forgotting something but I really > desperate... On Linux, create a directory that is writable by the httpd user mkdir /var/tmp/apache-co

Re: How to get a core dump

2004-11-05 Thread Stas Bekman
Marc Gracia wrote: [...] So, my question is... There is any way to force apache to dump a coredump file? I suppose I'm forgotting something but I really desperate... Please read: http://perl.apache.org/docs/2.0/devel/debug/c.html#Getting_the_core_File_Dumped A secondary question is, some of the ser

How to get a core dump

2004-11-05 Thread Marc Gracia
Hi everybody. I have a problem on a production cluster with a somewhat big mod_perl app, and I just cannot get any clue of what is happening. The problem is that the servers just exit with Segmentation fault randomly. The problem is rare, hapens 10/20 times each day in each of the 6 frontends, w