Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Bug#434562: apache2.2-common: Segfaulting when using mod_authn_dbd with DBDriver pgsql

From: Anders Breindahl <skrewz(at)skrewz.dk>
Date: Tue Jul 24 2007 - 19:45:16 EDT


Hello,

On 200707242336, Stefan Fritsch wrote:
> Maybe you can post the relevant config file sections and provide a
> backtrace:
> - install libapr1-dbg libaprutil1-dbg gdb
> - add "CoreDumpDirectory /tmp" to your apache config
> - do:
> /etc/init.d/apache2 stop
> ulimit -c unlimited
> /etc/init.d/apache2 start
> - there should now be /tmp/core. Do
> gdb /usr/sbin/apache2 /tmp/core
> (gdb) bt

Can't figure that out; gdb complains that apache2 isn't edible:

`gdb /usr/sbin/apache2 core` gives:
This GDB was configured as "x86_64-linux-gnu"...BFD: /usr/sbin/apache2: don't know how to handle OS specific section `.gnu.hash' [0x6ffffff6] "/usr/sbin/apache2": not in executable format: File format not recognized

Core was generated by `/usr/sbin/apache2'. Program terminated with signal 11, Segmentation fault. #0 0x00002af1b553f5e0 in ?? ()
(gdb)

I haven't got knowhow with gdb, and rudimentary attempts at fixing didn't succeed. Please provide pointers on how to provide a backtrace.

To clear up, these are my installed packages: `aptitude search apache2 | grep ^i`:

i   apache2                         - Next generation, scalable, extendable web 
i A apache2-mpm-worker              - High speed threaded model for Apache HTTPD
i   apache2-src                     - Apache source code                        
i A apache2-utils                   - utility programs for webservers           
i A apache2.2-common                - Next generation, scalable, extendable web 
i   libapache2-mod-auth-pgsql       - Module for Apache2 which provides pgsql au
i   libapache2-svn                  - Subversion server modules for Apache

As for relevant config snippets, these are the result, when I merge them together:

Do you need help?X

DBDriver pgsql
DBDParams "hostaddr=127.0.0.1 dbname=subversion user=subversion password=somepw"

<Location ... >
AuthType basic
AuthName "something"
AuthBasicProvider dbd
AuthBasicAuthoritative on
AuthDBDUserPWQuery "SELECT pass FROM users WHERE username = %s" AuthDBDUserRealmQuery "SELECT pass FROM users NATURAL JOIN groups WHERE username = %s AND memberof = %s" </Location>

`psql -h 127.0.0.1 -U subversion subversion` does work.

Contact me for further information.

Regards, skrewz.

-- 
To UNSUBSCRIBE, email to debian-apache-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Received on Tue Jul 24 19:52:03 2007

This archive was generated by hypermail 2.1.8 : Thu Aug 09 2007 - 19:06:07 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library