Re: PerChild Error

2003-06-23 Thread gregames
Pablo Yaggi wrote:
It doesn't dump anything, i have this
CoreDumpDirectory /tmp/
and it dumps nothing there.
ok, that looks good so far...

What I saw is that a new process for the site (user pablo)
is being started about 2 seconds all the time and
each process logs what I mention before, so I think
the process is not even starting in the right way.
The main process is starting, because I can stablish
a connection with a browser, but the request is never
attended.
Please let me know how I can log something else or
dump the core. I can't open the process with gdb because
the process is dieing permantly, is it any usefull for you a dump from
the main process? wich kind ?.
Yes I 'm using linux, version 2.4.21 from mandrake 9.1
There is a fix in the open source version of 2.0.46

http://www.apache.org/dist/httpd/httpd-2.0.46.tar.gz

...which allows coredumps on Linux when you start httpd as root and code 
CoreDumpDirectory in httpd.conf.  If you start httpd as non-root, it should just 
work (i.e., you don't need the fix), assuming CoreDumpDirectory points to 
somewhere like /tmp where the non-root user can create files.

Pablo Yaggi wrote:
 I forgot this in my last post, output from httpd -V

 Server version: Apache-AdvancedExtranetServer/2.0.46
I don't know what is in this vendor's version of Apache.  You might want to talk 
to them, or try the open source version.

Greg



Re: PerChild Error

2003-06-23 Thread gregames
[EMAIL PROTECTED] wrote:

There is a fix in the open source version of 2.0.46

http://www.apache.org/dist/httpd/httpd-2.0.46.tar.gz

...which allows coredumps on Linux when you start httpd as root and code 
CoreDumpDirectory in httpd.conf.  If you start httpd as non-root, it 
should just work (i.e., you don't need the fix), assuming 
CoreDumpDirectory points to somewhere like /tmp where the non-root user 
can create files.
ps.  This fix is mainly to os/unix/unixd.c::unixd_setup_child() .  That 
function is not called by the perchild mpm, so it won't help your situation.

I'm assuming perchild does its own setuid calls, since the user ids are a unique 
feature of perchild.  You could look for this and code prctl(PR_SET_DUMPABLE,1) 
after the setuid.  Here's what I did in the mainstream code:

http://cvs.apache.org/viewcvs.cgi/httpd-2.0/os/unix/unixd.c.diff?r1=1.56r2=1.57diff_format=h

Good luck!

Greg not about to become the PerChild maintainer Ames



Re: PerChild Error

2003-06-23 Thread Pablo Yaggi
No, it was running as less privileged user ,
and the version Extranet is just somthing mandrake puted there, 
I'm recompiling mandrakes rpms, maybe there's some patch there that stops the dumps, 
i'll try
to rebuild the source.

But now I'm trying muxmpm cause somebody told me that perchild it was not
working at all, did you manage to make it work ?
if it is so, are you cgi working at right userid ? do you have php running ?
what happens with ssl request on namebased virtual hosts ? who attends ?

Thank's
Pablo




On Monday 23 June 2003 11:36 am, [EMAIL PROTECTED] wrote:
 Pablo Yaggi wrote:
  It doesn't dump anything, i have this
  CoreDumpDirectory /tmp/
  and it dumps nothing there.

 ok, that looks good so far...

  What I saw is that a new process for the site (user pablo)
  is being started about 2 seconds all the time and
  each process logs what I mention before, so I think
  the process is not even starting in the right way.
  The main process is starting, because I can stablish
  a connection with a browser, but the request is never
  attended.
 
  Please let me know how I can log something else or
  dump the core. I can't open the process with gdb because
  the process is dieing permantly, is it any usefull for you a dump from
  the main process? wich kind ?.
 
  Yes I 'm using linux, version 2.4.21 from mandrake 9.1

 There is a fix in the open source version of 2.0.46

 http://www.apache.org/dist/httpd/httpd-2.0.46.tar.gz

 ...which allows coredumps on Linux when you start httpd as root and code
 CoreDumpDirectory in httpd.conf.  If you start httpd as non-root, it should
 just work (i.e., you don't need the fix), assuming CoreDumpDirectory points
 to somewhere like /tmp where the non-root user can create files.

 Pablo Yaggi wrote:
   I forgot this in my last post, output from httpd -V
  
   Server version: Apache-AdvancedExtranetServer/2.0.46

 I don't know what is in this vendor's version of Apache.  You might want to
 talk to them, or try the open source version.

 Greg



Re: PerChild Error

2003-06-23 Thread gregames
Pablo Yaggi wrote:
No, it was running as less privileged user ,
and the version Extranet is just somthing mandrake puted there, 
I'm recompiling mandrakes rpms, maybe there's some patch there that stops the dumps, i'll try
to rebuild the source.
you might want to have a look at my other post where I talked about prctl(). 
PerChild might need something like that in order to dump on Linux, if it does 
its own setuid().

But now I'm trying muxmpm cause somebody told me that perchild it was not
working at all, 
I've heard that too.

did you manage to make it work ?
haven't tried it, and I don't plan on it in the near future.

Greg



Re: PerChild Error

2003-06-21 Thread Pablo Yaggi
I forgot this in my last post, output from httpd -V

Server version: Apache-AdvancedExtranetServer/2.0.46
Server built:   Jun 20 2003 04:31:08
Server's Module Magic Number: 20020903:3
Architecture:   32-bit
Server compiled with
 -D APACHE_MPM_DIR=server/mpm/experimental/perchild
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D APR_USE_SYSVSEM_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D HTTPD_ROOT=/etc/httpd/2.0
 -D SUEXEC_BIN=/usr/sbin/apache2-suexec
 -D DEFAULT_PIDLOG=/var/run/httpd.pid
 -D DEFAULT_LOCKFILE=/var/run/accept.lock
 -D DEFAULT_ERRORLOG=logs/error_log
 -D AP_TYPES_CONFIG_FILE=conf/mime.types
 -D SERVER_CONFIG_FILE=conf/httpd2.conf

Pablo



PerChild Error

2003-06-20 Thread Pablo Yaggi
Hi, 
well after the chat about worker hungs..., by the way Bill, Cliff did you 
check my last post ? the question about the prefork, is it fixable ?
besides is prefork using threads ?

i installed a server with perchild and this is a strip from my error log:

[Fri Jun 20 18:29:52 2003] [notice] child pid 14291 exit signal Segmentation fault (11)
[Fri Jun 20 18:29:52 2003] [emerg] (13)Permission denied: apr_proc_mutex_lock failed. 
Attempting to shutdown process gracefully.
[Fri Jun 20 18:29:52 2003] [emerg] (13)Permission denied: apr_proc_mutex_unlock 
failed. Attempting to shutdown process gracefully.
[Fri Jun 20 18:29:52 2003] [emerg] (13)Permission denied: apr_proc_mutex_lock failed. 
Attempting to shutdown process gracefully.
[Fri Jun 20 18:29:52 2003] [emerg] (13)Permission denied: apr_proc_mutex_unlock 
failed. Attempting to shutdown process gracefully.
[Fri Jun 20 18:29:52 2003] [emerg] (13)Permission denied: apr_proc_mutex_lock failed. 
Attempting to shutdown process gracefully.
[Fri Jun 20 18:29:52 2003] [emerg] (13)Permission denied: apr_proc_mutex_unlock 
failed. Attempting to shutdown process gracefully.

any advice ?

this is a strip from my conf, my local domain name server is responding for test.local

IfModule perchild.c
NumServers   5
StartThreads 5
MinSpareThreads  5
MaxSpareThreads 10
MaxThreadsPerChild  20
MaxRequestsPerChild  0
/IfModule

NameVirtualHost *
UseCanonicalName Off
ChildPerUserID pablo apache 1
VirtualHost *
 ServerName test.local
 AssignUserID pablo apache
/VirtualHost




Re: PerChild Error

2003-06-20 Thread gregames
Pablo Yaggi wrote:

 besides is prefork using threads ?

prefork does not use threads.

	i installed a server with perchild and this is a strip from my error log:

[Fri Jun 20 18:29:52 2003] [notice] child pid 14291 exit signal Segmentation fault (11)
do you have a coredump?  We the backtrace from it if so.  otherwise, we can't do 
squat with these messages.

If this is Linux, you should see more text at the end of this message saying 
that there is a possible coredump.  Make sure you have CoreDumpDir 
/directory/writeable/by/Apache/User  in your httpd.conf or it's hard to get 
coredumps.

[Fri Jun 20 18:29:52 2003] [emerg] (13)Permission denied: apr_proc_mutex_lock failed. 
Attempting to shutdown process gracefully.
[Fri Jun 20 18:29:52 2003] [emerg] (13)Permission denied: apr_proc_mutex_unlock 
failed. Attempting to shutdown process gracefully.
[Fri Jun 20 18:29:52 2003] [emerg] (13)Permission denied: apr_proc_mutex_lock failed. 
Attempting to shutdown process gracefully.
[Fri Jun 20 18:29:52 2003] [emerg] (13)Permission denied: apr_proc_mutex_unlock 
failed. Attempting to shutdown process gracefully.
[Fri Jun 20 18:29:52 2003] [emerg] (13)Permission denied: apr_proc_mutex_lock failed. 
Attempting to shutdown process gracefully.
[Fri Jun 20 18:29:52 2003] [emerg] (13)Permission denied: apr_proc_mutex_unlock 
failed. Attempting to shutdown process gracefully.
what kind of locking is your apr using?  (hint:  bin/httpd -V)

Greg



Re: PerChild Error

2003-06-20 Thread Pablo Yaggi
It doesn't dump anything, i have this
CoreDumpDirectory /tmp/
and it dumps nothing there.

What I saw is that a new process for the site (user pablo)
is being started about 2 seconds all the time and
each process logs what I mention before, so I think
the process is not even starting in the right way.
The main process is starting, because I can stablish
a connection with a browser, but the request is never
attended.

Please let me know how I can log something else or
dump the core. I can't open the process with gdb because
the process is dieing permantly, is it any usefull for you a dump from
the main process? wich kind ?.

Yes I 'm using linux, version 2.4.21 from mandrake 9.1

Regards,
Pablo


[Fri Jun 20 18:29:52 2003] [notice] child pid 14291 exit signal
is in the log all the

On Friday 20 June 2003 06:35 pm, [EMAIL PROTECTED] wrote:
 Pablo Yaggi wrote:
   besides is prefork using threads ?

 prefork does not use threads.

  i installed a server with perchild and this is a strip from my error
  log:
 
  [Fri Jun 20 18:29:52 2003] [notice] child pid 14291 exit signal
  Segmentation fault (11)

 do you have a coredump?  We the backtrace from it if so.  otherwise, we
 can't do squat with these messages.

 If this is Linux, you should see more text at the end of this message
 saying that there is a possible coredump.  Make sure you have CoreDumpDir
 /directory/writeable/by/Apache/User  in your httpd.conf or it's hard to
 get coredumps.

  [Fri Jun 20 18:29:52 2003] [emerg] (13)Permission denied:
  apr_proc_mutex_lock failed. Attempting to shutdown process gracefully.
  [Fri Jun 20 18:29:52 2003] [emerg] (13)Permission denied:
  apr_proc_mutex_unlock failed. Attempting to shutdown process gracefully.
  [Fri Jun 20 18:29:52 2003] [emerg] (13)Permission denied:
  apr_proc_mutex_lock failed. Attempting to shutdown process gracefully.
  [Fri Jun 20 18:29:52 2003] [emerg] (13)Permission denied:
  apr_proc_mutex_unlock failed. Attempting to shutdown process gracefully.
  [Fri Jun 20 18:29:52 2003] [emerg] (13)Permission denied:
  apr_proc_mutex_lock failed. Attempting to shutdown process gracefully.
  [Fri Jun 20 18:29:52 2003] [emerg] (13)Permission denied:
  apr_proc_mutex_unlock failed. Attempting to shutdown process gracefully.

 what kind of locking is your apr using?  (hint:  bin/httpd -V)

 Greg