Re: apache 2.2 crashes at the start time in mod_dbd.c then preparing AuthDBDUserPWQuery

2006-08-18 Thread paritosh
Hi Nick, I'm using the latest revision of mod_dbd.c and I still get a segfault on startup. My setup: CONFIGURE FLAGS: ./configure --enable-so --enable-auth-digest --enable-dbd --enable-authn-dbd --with-mysql=/usr HTTPD.CONF: DBDriver mysql DBDParams dbname=xxx user=xxx pass=xxx Location

Re: apache 2.2 crashes at the start time in mod_dbd.c then preparing AuthDBDUserPWQuery

2006-08-18 Thread Nick Kew
On Friday 18 August 2006 08:19, paritosh wrote: Hi Nick, I'm using the latest revision of mod_dbd.c and I still get a segfault on startup. My setup: CONFIGURE FLAGS: ./configure --enable-so --enable-auth-digest --enable-dbd --enable-authn-dbd --with-mysql=/usr So that's static compilation

Re: apache 2.2 crashes at the start time in mod_dbd.c then preparing AuthDBDUserPWQuery

2006-08-18 Thread paritosh
On Fri, 2006-08-18 at 10:23 +0100, Nick Kew wrote: On Friday 18 August 2006 08:19, paritosh wrote: Hi Nick, I'm using the latest revision of mod_dbd.c and I still get a segfault on startup. My setup: CONFIGURE FLAGS: ./configure --enable-so --enable-auth-digest --enable-dbd

Re: apache 2.2 crashes at the start time in mod_dbd.c then preparing AuthDBDUserPWQuery

2006-08-18 Thread Nick Kew
On Friday 18 August 2006 12:35, paritosh wrote: recompiled everything with -O0, the new backtrace is: #2 0xb7d5626f in apr_hash_get (ht=0x813f270, key=0x0, klen=-1) at tables/apr_hash.c:330 Aha! NULL key. That should be the server name. #3 0x0808c433 in ap_dbd_prepare (s=0x80eaab0,

Re[2]: apache 2.2 crashes at the start time in mod_dbd.c then preparing AuthDBDUserPWQuery

2006-08-17 Thread paritosh
Hi all, I had a working installation of apache 2.2.2 with mod_dbd and mod_authn_dbd configured. Recently I upgraded to 2.2.3 and the server crashes with the same backtrace. ( it crashes in apr_hashfunc_default at tables/apr_hash.c:228 ). Have there been any developments towards resolving this ?

Re: apache 2.2 crashes at the start time in mod_dbd.c then preparing AuthDBDUserPWQuery

2006-08-17 Thread Nick Kew
On Thursday 17 August 2006 14:51, paritosh wrote: Hi all, I had a working installation of apache 2.2.2 with mod_dbd and mod_authn_dbd configured. Recently I upgraded to 2.2.3 and the server crashes with the same backtrace. ( it crashes in apr_hashfunc_default at tables/apr_hash.c:228 ).

Re[2]: apache 2.2 crashes at the start time in mod_dbd.c then preparing AuthDBDUserPWQuery

2006-07-27 Thread Anton Golubev
Hello Nick, I did some tests again with mod_dbd, but now against trunk versions of httpd, apr, apr-utils. And it seems to me, that the problem persists. It crashes with the same symptoms as I posted last week. Function ap_dbd_prepare called with corrupted arguments (s=0x80e6ed0,

Re: apache 2.2 crashes at the start time in mod_dbd.c then preparing AuthDBDUserPWQuery

2006-07-23 Thread Henrik Nordstrom
sön 2006-07-23 klockan 00:10 +0100 skrev Nick Kew: But if you look at the full traceback and crossreference it to the source, I think that looks improbable. Do you have sufficient gcc/gdb expertise to shed real light on this? Not really, only experience.. From what I have seen the causes to

Re[2]: apache 2.2 crashes at the start time in mod_dbd.c then preparing AuthDBDUserPWQuery

2006-07-23 Thread Anton Golubev
Hi Nick, I think you are right about crash reason. It probably was an incompatibility of http and apr-util, which I built separately to overcame configuration issues. Once I've had the clean build, the problem disappeared. There are three issues with the current auto-configuration regarding

Re: apache 2.2 crashes at the start time in mod_dbd.c then preparing AuthDBDUserPWQuery

2006-07-23 Thread Nick Kew
On Sunday 23 July 2006 19:41, Anton Golubev wrote: Hi Nick, I think you are right about crash reason. It probably was an incompatibility of http and apr-util, which I built separately to overcame configuration issues. Once I've had the clean build, the problem disappeared. That's a relief

Re[2]: apache 2.2 crashes at the start time in mod_dbd.c then preparing AuthDBDUserPWQuery

2006-07-23 Thread Anton Golubev
Hello Nick, What I'd like to see is dynamic loading of apr-util modules, and a build process as simple as apxs. But that's another subject. I agree, they are both important features to stimulate wider deployment and courage users to write extensions for this relatively new module. That

Re: apache 2.2 crashes at the start time in mod_dbd.c then preparing AuthDBDUserPWQuery

2006-07-22 Thread Nick Kew
On Thursday 20 July 2006 23:33, Anton Golubev wrote: This configuration (almost taken from documentation) also crashes the server: Not for me it doesn't. But putting your Directory inside a VirtualHost gets the crash. So the basic issue is that we're using the server_rec when we may not have

Re: apache 2.2 crashes at the start time in mod_dbd.c then preparing AuthDBDUserPWQuery

2006-07-22 Thread Nick Kew
On Saturday 22 July 2006 11:09, Nick Kew wrote: I've hacked a quick patch against trunk, that saves the definitions to a global hash and retrieves them at child_init, when the server_rec is known to be valid. Will commit if it looks right after reflection:-) child_init? Bah, lazy - just

Re: apache 2.2 crashes at the start time in mod_dbd.c then preparing AuthDBDUserPWQuery

2006-07-22 Thread Nick Kew
On Saturday 22 July 2006 11:21, Nick Kew wrote: child_init? Bah, lazy - just 'cos there's already a child_init hook. Should use post_config instead! Another cuppa tea, another patch :-) -- Nick Kew Index: mod_dbd.c === ---

Re[2]: apache 2.2 crashes at the start time in mod_dbd.c then preparing AuthDBDUserPWQuery

2006-07-22 Thread Anton Golubev
Hello Nick, It doesn't crash for you with my config? Well, this might be a problem with my configuration/compilation options, but I can't remember anything special there. You can see my build details in my first post here about this issue. Here is another backtrace, which you may find

Re: apache 2.2 crashes at the start time in mod_dbd.c then preparing AuthDBDUserPWQuery

2006-07-22 Thread Nick Kew
On Saturday 22 July 2006 13:31, Anton Golubev wrote: Hello Nick, It doesn't crash for you with my config? Well, this might be a problem with my configuration/compilation options, but I can't remember anything special there. You can see my build details in my first post here about this issue.

Re[2]: apache 2.2 crashes at the start time in mod_dbd.c then preparing AuthDBDUserPWQuery

2006-07-22 Thread Anton Golubev
Hello Nick, No, you just cut too much before posting. Actually, I'm not. It was the full working minimal httpd.conf, which I cleaned up from unrelated options in order to proof myself with exact problem source. Other values are optional defaults. What happens when you apply the (second) patch

Re: apache 2.2 crashes at the start time in mod_dbd.c then preparing AuthDBDUserPWQuery

2006-07-22 Thread Nick Kew
On Saturday 22 July 2006 15:47, Anton Golubev wrote: Hello Nick, No, you just cut too much before posting. Actually, I'm not. It was the full working minimal httpd.conf, which I cleaned up from unrelated options in order to proof myself with exact problem source. Other values are optional

Re: apache 2.2 crashes at the start time in mod_dbd.c then preparing AuthDBDUserPWQuery

2006-07-22 Thread Henrik Nordstrom
lör 2006-07-22 klockan 18:00 +0100 skrev Nick Kew: #3 0x08081d67 in ap_dbd_prepare (s=0x8daf5a0, query=0x Address 0x out of bounds, label=0x Address 0x out of bounds) at mod_dbd.c:150 Note: Could maybe be -O2 or higher optimizing away the variables when

Re: apache 2.2 crashes at the start time in mod_dbd.c then preparing AuthDBDUserPWQuery

2006-07-22 Thread Nick Kew
On Saturday 22 July 2006 22:34, Henrik Nordstrom wrote: lör 2006-07-22 klockan 18:00 +0100 skrev Nick Kew: #3 0x08081d67 in ap_dbd_prepare (s=0x8daf5a0, query=0x Address 0x out of bounds, label=0x Address 0x out of bounds) at mod_dbd.c:150 Note:

Re: apache 2.2 crashes at the start time in mod_dbd.c then preparing AuthDBDUserPWQuery

2006-07-21 Thread Chris Darroch
Anton Golubev wrote: It's the same, but I don't agree it is Virtual Host specific, as you said. This configuration (almost taken from documentation) also crashes the server: ServerRoot /usr/local/apache Listen 80 User nobody Group nobody DocumentRoot /home/ivc2/public_html DBDriver

Re: Re[2]: apache 2.2 crashes at the start time in mod_dbd.c then preparing AuthDBDUserPWQuery

2006-07-20 Thread Brian J. France
I think this is the same issue I had: http://www.mail-archive.com/dev@httpd.apache.org/msg31299.html Not sure if there was a fix committed into the code tree or not. Brian On Jul 20, 2006, at 3:52 PM, Anton Golubev wrote: Hello Nick, Here is here the minimal complete config, which crashes

Re: apache 2.2 crashes at the start time in mod_dbd.c then preparing AuthDBDUserPWQuery

2006-07-20 Thread Nick Kew
On Thursday 20 July 2006 22:12, Brian J. France wrote: I think this is the same issue I had: http://www.mail-archive.com/dev@httpd.apache.org/msg31299.html Hmmm, looks similar. Your patch is slightly problematic because it changes the API, albeit not substantially. On Jul 20, 2006, at 3:52

Re[4]: apache 2.2 crashes at the start time in mod_dbd.c then preparing AuthDBDUserPWQuery

2006-07-20 Thread Anton Golubev
Hi Brian, It's the same, but I don't agree it is Virtual Host specific, as you said. This configuration (almost taken from documentation) also crashes the server: httpd-mini.conf ServerRoot /usr/local/apache Listen 80 User nobody Group nobody DocumentRoot /home/ivc2/public_html DBDriver

apache 2.2 crashes at the start time in mod_dbd.c then preparing AuthDBDUserPWQuery

2006-07-19 Thread Anton Golubev
Hi all, Apache crashes at the start time in mod_dbd.c then AuthDBDUserPWQuery is not empty. The crash triggered even with then AuthDBDUserPWQuery is “1”. Isn’t it a bug in Apache? I would like to listen to some feedback from the list before I file it in bug tracking system. I'm not

Re: apache 2.2 crashes at the start time in mod_dbd.c then preparing AuthDBDUserPWQuery

2006-07-19 Thread Nick Kew
On Wednesday 19 July 2006 23:33, Anton Golubev wrote: Hi all, Apache crashes at the start time in mod_dbd.c then AuthDBDUserPWQuery is not empty. The crash triggered even with then AuthDBDUserPWQuery is “1”. Isn’t it a bug in Apache? I would like to listen to some feedback from the list