Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 25419 invoked from network); 22 Jul 2006 05:00:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 22 Jul 2006 05:00:30 -0000 Received: (qmail 53542 invoked by uid 500); 22 Jul 2006 05:00:29 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 52686 invoked by uid 500); 22 Jul 2006 05:00:27 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 52674 invoked by uid 99); 22 Jul 2006 05:00:27 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Jul 2006 22:00:27 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [24.71.223.10] (HELO pd5mo1so.prod.shaw.ca) (24.71.223.10) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Jul 2006 22:00:26 -0700 Received: from pd3mr3so.prod.shaw.ca (pd3mr3so-qfe3.prod.shaw.ca [10.0.141.179]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0J2S00GOIGK5LBB0@l-daemon> for dev@httpd.apache.org; Fri, 21 Jul 2006 23:00:05 -0600 (MDT) Received: from pn2ml7so.prod.shaw.ca ([10.0.121.151]) by pd3mr3so.prod.shaw.ca (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0J2S005UQGK52P00@pd3mr3so.prod.shaw.ca> for dev@httpd.apache.org; Fri, 21 Jul 2006 23:00:05 -0600 (MDT) Received: from [192.168.0.104] ([24.69.78.175]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0J2S006MXGK5O590@l-daemon> for dev@httpd.apache.org; Fri, 21 Jul 2006 23:00:05 -0600 (MDT) Date: Fri, 21 Jul 2006 21:59:28 -0700 From: Chris Darroch Subject: Re: apache 2.2 crashes at the start time in mod_dbd.c then preparing AuthDBDUserPWQuery In-reply-to: <708004037.20060721023357@engec.ru> To: dev@httpd.apache.org Message-id: <44C1B0B0.1090303@pearsoncmg.com> Organization: Pearson CTG/CMG MIME-version: 1.0 Content-type: text/plain; charset=us-ascii; format=flowed Content-transfer-encoding: 7bit X-Accept-Language: en-ca, en-us References: <831327593.20060720023332@engec.ru> <200607200147.06150.nick@webthing.com> <1151940578.20060720235206@engec.ru> <0AFC9813-9152-4720-AD10-ADF153A2527B@firehawksystems.com> <708004037.20060721023357@engec.ru> User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.13) Gecko/20060423 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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 mysql > DBDParams "dbname=Users user=auther passreplace=xxxxxx" > DBDMin 1 > DBDKeep 2 > DBDMax 10 > DBDExptime 60 > > > > AuthType Basic > AuthName 'ADMIN ZONE' > AuthBasicProvider dbd > AuthDBDUserPWQuery "select PASS from Users where LOGIN= %s" > require valid-user > > Yes, it seems to be caused by the ... specifically, authn_dbd_prepare(), which is called to handle the AuthDBDUserPWQuery directive, calls ap_dbd_prepare() and passes cmd->server as the server_rec *s argument. Then ap_dbd_prepare() does: ap_get_module_config(s->module_config, &dbd_module); and that returns NULL. I quickly also tried running: ap_get_module_config(cmd->server->module_config, &authn_dbd_module); inside authn_dbd_prepare(), and it too returns NULL. And yet I feel sure I'm seeing things that do effectively the same thing in other directive handlers, like cmd_rewritelog() for mod_rewrite: ap_get_module_config(cmd->server->module_config, &rewrite_module); Maybe something about that's being RSRC_CONF vs. ACCESS_CONF for mod_authn_dbd? I can't grok it tonight; maybe I'll catch some time over the weekend. Chris. -- GPG Key ID: 366A375B GPG Key Fingerprint: 485E 5041 17E1 E2BB C263 E4DE C8E3 FA36 366A 375B