httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Constable <ma...@renta.net>
Subject Re: apr_dbd_mysql for apache2.2
Date Sun, 29 Oct 2006 04:39:16 GMT
On Sunday 29 October 2006 04:59, Philip M. Gollucci wrote:
> Yes, I've had good look with svn branches/1.2.x
> 
> ./configure --prefix=$prefix_apr
> 
> ./configure \
>      --prefix=$prefix_apu \
>      --with-apr=$prefix_apr \
>      --with-mysql=$INST/mysql/$mysql_ver

Great, thanks. I managed to get apr & apr-util to compile using
svn from http://apr.apache.org/anonsvn.html however when using only
this part in httpd.conf it's okay and I can see that MySQL is accessed...

 DBDriver mysql
 DBDParams "host=localhost dbname=admin user=xxxx pass=xxxx"
 DBDMin  1
 DBDKeep 2
 DBDMax  10
 DBDExptime 60

but when I add this section below then apache segfaults on startup...

 <Directory /home/w/lan/aria/www>
 AuthType Basic
 AuthName "Aria"
 AuthBasicProvider dbd
 Require valid-user
 AuthDBDUserPWQuery "select pw from passwd where uid = %s"
 </Directory>

I also recompiled apache 2.2.3 after installing the updated apr &
apr-util which I presume would use the new apr but it still segfaults.

 # apachectl start
 + case $ARGV in
 + /usr/sbin/httpd -k start
 /usr/sbin/apachectl: line 78:  2177 Segmentation fault      $HTTPD -k $ARGV
 + ERROR=139
 + exit 139

And from var/log/httpd/error_log...

*** glibc detected *** /usr/sbin/httpd: double free or corruption (!prev): 0x08278360 ***
======= Backtrace: =========
/lib/libc.so.6[0xb7d09e00]
/lib/libc.so.6(__libc_free+0x89)[0xb7d0b469]
/usr/lib/libapr-1.so.0(apr_allocator_destroy+0x2d)[0xb7e3b92d]
/usr/lib/libapr-1.so.0(apr_pool_destroy+0x195)[0xb7e3c045]
/usr/sbin/httpd[0x8085915]
/usr/sbin/httpd[0x808593d]
[0xb7fbb420]
/usr/sbin/httpd(unixd_accept+0x2c)[0x808743c]
/usr/sbin/httpd[0x8085c49]
/usr/sbin/httpd[0x808600d]
/usr/sbin/httpd[0x80860ca]
/usr/sbin/httpd(ap_mpm_run+0xc37)[0x8086d17]
/usr/sbin/httpd(main+0x828)[0x8061e98]
/lib/libc.so.6(__libc_start_main+0xd8)[0xb7cbb7c8]
/usr/sbin/httpd(apr_bucket_mmap_make+0x61)[0x80610d1]
... (much more)

Using gcc 4.4.1 and glibc 2.5 on an Archlinux system.

Any further suggestions ?

Would my time be better spent messing around with mod_auth_mysql perhaps ?

--markc

Mime
View raw message