On Wednesday 19 July 2006 23:33, Anton Golubev wrote: > Hi all, > > Apache crashes at the start time in mod_dbd.c then AuthDBDUserPWQuery > is not empty. The crash triggered even with then AuthDBDUserPWQuery is > “1”. Isn’t it a bug in Apache? I would like to listen to some feedback > from the list before I file it in bug tracking system. I'm not > familiar with 2.2 version and may be wrong in some aspects of using > it. > > Crash dump: > > > Starting program: /usr/local/apache2_2/bin/httpd -M > [Thread debugging using libthread_db enabled] > [New Thread -1208748352 (LWP 19317)] > > Program received signal SIGSEGV, Segmentation fault. > [Switching to Thread -1208748352 (LWP 19317)] > ap_dbd_prepare (s=0x0, query=0x8608560 "select PASS from Users where LOGIN= > %s", label=0x8608560 "select PASS from Users where LOGIN= %s") at > mod_dbd.c:149 149 prepared->next = svr->prepared; > (gdb) bt > #0 ap_dbd_prepare (s=0x0, query=0x8608560 "select PASS from Users where > LOGIN= %s", label=0x8608560 "select PASS from Users where LOGIN= %s") at > mod_dbd.c:149
s=0x0? Yet it's been dereferenced earlier in the same function. Smells fishy (as does the label value in that traceback). > #1 0x08080415 in authn_dbd_prepare (cmd=0xbff80a40, cfg=0x8608558, > query=0x8608560 "select PASS from Users where LOGIN= %s") at > mod_authn_dbd.c:70 OK, that makes sense. Could you post a minimal httpd.conf that generates this? I'm particularly Do you have just the one DBDriver/DBDParams configuration, and if so, is it at top level or in a virtualhost? > Relevant config section: > > <Directory /home/ivc2/public_html> > AllowOverride All > Options +Includes > > AuthType Basic > AuthName 'ADMIN ZONE' > AuthBasicProvider dbd > > # AuthDBDUserPWQuery "select PASS from Users where LOGIN= %s" > AuthDBDUserPWQuery "1" > > require valid-user > > </Directory> Can you also post the section of your httpd.conf with your DBDriver/DBDParams configuration? Is it at top level or in a virtualhost, or do you have both? Does /home/ivc2/public_html belong to the relevant host? And do you have any nonstandard virtualhosting configuration in effect? -- Nick Kew
