Re: proxy segfault in httpd-trunk

2013-05-14 Thread Thomas Eckert
> BTW: I ask myself why we need a global mutex to protect a pool. Wouldn't a thread mutex be sufficient? I figured accessing a pool inside a module config is something that needs to be protected across process boundaries, hence the global lock. Are module configs not globally unique in the sense t

Re: RFC: Handling abnormally large chunk sizes

2013-05-14 Thread Roy T. Fielding
On May 14, 2013, at 8:58 AM, Graham Leggett wrote: > Hi all, > > I am currently getting to the bottom of a test case that checks httpd's > response to an abnormally large chunk extension from a reverse proxy server. > What httpd does now is trigger an error, causing both the upstream and > dow

Re: proxy segfault in httpd-trunk

2013-05-14 Thread Ruediger Pluem
I guess a call to apr_global_mutex_child_init is missing in the child_init hook of mod_proxy. BTW: I ask myself why we need a global mutex to protect a pool. Wouldn't a thread mutex be sufficient? Plus why are we not using the httpd mutex API to make the mutex method configurable? Regards Rü

Re: proxy segfault in httpd-trunk

2013-05-14 Thread Nick Kew
On 14 May 2013, at 19:54, Graham Leggett wrote: > Hi all, > > I am currently getting a segfault in the proxy during httpd-test, it looks > like conf->mutex is being used before being initialised: http://svn.eu.apache.org/viewvc?view=revision&revision=1480627 The logic looks screwed to me: it'

proxy segfault in httpd-trunk

2013-05-14 Thread Graham Leggett
Hi all, I am currently getting a segfault in the proxy during httpd-test, it looks like conf->mutex is being used before being initialised: Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_INVALID_ADDRESS at address: 0x0010 0x0001007cc8c0 in apr_globa

RFC: Handling abnormally large chunk sizes

2013-05-14 Thread Graham Leggett
Hi all, I am currently getting to the bottom of a test case that checks httpd's response to an abnormally large chunk extension from a reverse proxy server. What httpd does now is trigger an error, causing both the upstream and downstream connections to be terminated and truncated. Is this the

re: ap_rgetline_core in protocol.c

2013-05-14 Thread Marion et Christophe JAILLET
Hi,   I wanted to have a look at http://prefetch.net/blog/index.php/2005/12/12/profiling-apache-modules-with-dtrace/ but had no time to look at it for now.   May it help you ?     Personnaly, I have activated the pool profiling functions in APR which give me information of what and from w

ap_rgetline_core in protocol.c

2013-05-14 Thread kalyan sita
Hi Chris, Can you please tell me in what way we can debug the ap_rgetline_core in protocol.c. I would like to know how you are calling ap_rgetline_core in protocol.c. Thanks in advance, Kalyan

optimization of apache httpd source code for arm processor

2013-05-14 Thread kalyan sita
Hi All, I am working on optimizing the apache httpd source code for arm processor. Can anyone give me hints of how to do it? Right now I am thinking to optimize assembly level code that is apr_arch_atomic.h etc Thanks, kalyan

Re: Regarding apache server debugging source code

2013-05-14 Thread kalyan sita
Hi William, Your reply helped me . I launched httpd -X and used gdb and the debugger went into child_main function of prefork.c and it is remaining in while loop in the same function. What I would want is to see what module is getting invoked when a php script is run? What module is invoked when