Hi Nick, I'm using the latest revision of mod_dbd.c and I still get a segfault on startup. My setup:
CONFIGURE FLAGS: ./configure --enable-so --enable-auth-digest --enable-dbd --enable-authn-dbd --with-mysql=/usr HTTPD.CONF: DBDriver mysql DBDParams "dbname=xxx user=xxx pass=xxx" <Location /private> AuthType Digest AuthName "xxx" AuthDigestProvider dbd Require valid-user AuthDBDUserRealmQuery "SELECT pwhash FROM users WHERE name = %s and realm = %s" </Location> GDB BACKTRACE: (gdb) run -X -d .. [Thread debugging using libthread_db enabled] [New Thread -1212180800 (LWP 23469)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1212180800 (LWP 23469)] apr_hashfunc_default (char_key=0x0, klen=0xbfc96c38) at tables/apr_hash.c:228 /home/paritosh/limespot/apache2.2/srclib/apr/tables/apr_hash.c:228:7055:beg:0xb7daa3ce (gdb) bt #0 apr_hashfunc_default (char_key=0x0, klen=0xbfc96c38) at tables/apr_hash.c:228 #1 0xb7daa437 in find_entry (ht=0x8128270, key=0x0, klen=-1, val=0x0) at tables/apr_hash.c:260 #2 0xb7daa5f4 in apr_hash_get (ht=0xffffffff, key=0xbfc96c38, klen=-1) at tables/apr_hash.c:330 #3 0x08082a96 in ap_dbd_prepare (s=0x80d3ab0, query=0xffffffff <Address 0xffffffff out of bounds>, label=0xffffffff <Address 0xffffffff out of bounds>) at mod_dbd.c:152 #4 0x0807dedb in authn_dbd_prepare (cmd=0xbfc9701c, cfg=0x812d190, query=0x812d198 "SELECT pwhash FROM principals INNER JOIN users ON principals.resource_id = users.principal_id WHERE name = %s and name != %s") at mod_authn_dbd.c:72 #5 0x080747f9 in invoke_cmd (cmd=0x80b3398, parms=0xbfc9701c, mconfig=0x812d190, args=0x810e58e "") at config.c:873 #6 0x080755d2 in ap_walk_config (current=0x810e4f0, parms=0xbfc9701c, section_vector=0x812cba8) at config.c:1141 #7 0x0806bec4 in urlsection (cmd=0xbfc9701c, mconfig=0x810e198, arg=0x812ce28 "") at core.c:1942 #8 0x080747f9 in invoke_cmd (cmd=0x80b0cd8, parms=0xbfc9701c, mconfig=0x810e198, args=0x810e3c8 "/private>") at config.c:873 #9 0x080755d2 in ap_walk_config (current=0x81141f8, parms=0xbfc9701c, section_vector=0x810d228) at config.c:1141 #10 0x080762b6 in ap_process_config_tree (s=0xbfc96c38, conftree=0xffffffff, p=0x80cb0a8, ptemp=0xffffffff) at config.c:1743 #11 0x08062071 in main (argc=4, argv=0xbfc97174) at main.c:621 On Thu, 2006-08-17 at 15:21 +0100, Nick Kew wrote: > On Thursday 17 August 2006 14:51, paritosh wrote: > > Hi all, > > > > > > I had a working installation of apache 2.2.2 with mod_dbd and > > mod_authn_dbd configured. Recently I upgraded to 2.2.3 and the server > > crashes with the same backtrace. ( it crashes in apr_hashfunc_default at > > tables/apr_hash.c:228 ). > > That is not a backtrace. > > > Have there been any developments towards > > resolving this ? > > http://svn.apache.org/viewvc?view=rev&revision=424798 > http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/modules/database/mod_dbd.c?r1=421103&r2=425659 >
