[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



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:

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.

Attachment: signature.asc
Description: Digital signature


Reply to: