|
|||||||||||
|
Bug#434562: apache2.2-common: Segfaulting when using mod_authn_dbd with DBDriver pgsql
From: Anders Breindahl <skrewz(at)skrewz.dk>
Date: Sat Jul 28 2007 - 14:27:25 EDT
> On Wednesday 25 July 2007, Anders Breindahl wrote: > > `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 > > This is a bug in gdb on amd64 and is fixed in unstable. > You could try the version from unstable. > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=425838 > > Apart from that, I didn't have time so far too look into your issue. No matter. I, for once, am in no rush. And the legacy way (mod_auth_pgqsl) still should exist. I did the backtrace:
(gdb) bt
A little bit of sniffing around suggests that mod_dbd' ap_dbd_prepare() calls apr_hash_get with a null pointer for the ``ht''-argument. (line #2 above, and mod_dbd.c:152). That ``ht'' argument is this (file-global): static apr_hash_t *dbd_prepared_defns; // mod_dbd.c:70 pointer which seemingly is left in its initialized status as a null pointer. The only candidate for setting that pointer is the assignment dbd_prepared_defns = apr_hash_make(ptemp); // mod_dbd.c:612 It should not be possible to get through apr_hash_make (apr_hash.c:95) without segfaulting (apr_palloc is called, and the pointer that it returns is used without checking for NULLness) and still returning NULL. Therefore, the above assignment can't be have been executed, and therefore, dbd_pre_config() can't have been called. While at this setting, the debugging was getting long-haired. And I'm out of coffee. But perhaps my efforts can serve as a starting point. I however formulated some thoughts while debugging:
Regards, skrewz. -- To UNSUBSCRIBE, email to debian-apache-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.orgReceived on Sat Jul 28 14:45:16 2007 This archive was generated by hypermail 2.1.8 : Thu Aug 09 2007 - 19:06:08 EDT |
||||||||||
|
|||||||||||