[In order for any reply to be added to the PR database, ] [you need to include <[EMAIL PROTECTED]> in the Cc line ] [and leave the subject line UNCHANGED. This is not done] [automatically because of the potential for mail loops. ] [If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request ] [from a developer. ] [Reply only with text; DO NOT SEND ATTACHMENTS! ]
Synopsis: Getting this message: [Wed Jun 17 11:37:04 1998] [notice] httpd: child pid 332 exit signal Segmentation Fault (11) when trying to access a DBM file Comment-Added-By: coar Comment-Added-When: Mon May 24 10:43:28 PDT 1999 Comment-Added: [Comment sent to the database incorrectly, but destined for this PR.] I am also getting this same problem. To summarize: mod_auth_dbm gives strange errors instead of working. Affects multiple platforms, but in different ways. On my redhat5.2 machine, I get this: [Mon May 3 17:39:29 1999] [error] [client 127.0.0.1] (2)No such file or directory: could not open dbm auth file: /usr/local/httpd/conf/spamusers [Mon May 3 17:39:29 1999] [error] [client 127.0.0.1] DBM user julian not found: /usr/local/httpd/htdocs And I actually get a prompt for the password, though nothing I enter works of course. On Slackware 4 (with kernel 2.2.5): [Mon May 3 17:41:05 1999] [notice] child pid 13861 exit signal Segmentation fault (11) And no prompt from the browser of course - just a broken pipe message from junkbuster. Both places, I'm doing simply: ./configure --prefix=/usr/local/httpd --enable-module=auth_dbm And using the standard /cong/httpd.conf-dist plus this one block: <location /> AuthType Basic AuthName "your SpamCop account" AuthDBMGroupFile /usr/local/httpd/conf/spamusers AuthDBMUserFile /usr/local/httpd/conf/spamusers require group spamcop </location> And, yes, the -ldbm flag is present during make. This DBM file is being used currently by my live 1.3.4 version of apache on the same slackware box, although *that* apache is a binary I compiled elsewhere long ago. I'm afraid to recompile or it'll break too - and anyway I don't want to - I want the new version. So I created a new DBM file on the slackware box and changed the above httpd.conf entry to point to it. I used dbmmanage to create the new file - first time with this util. All my other DBMs consist of TWO files, and this util created ONE. In the working config, I have "spamusers.dir" and "spamusers.pag", and I reference them as just "spamusers" as above. Now, I get only one file, and a different error: [Mon May 3 17:54:41 1999] [error] [client 208.12.13.18] (2)No such file or directory: could not open dbm auth file: /root/test [Mon May 3 17:54:41 1999] [error] [client 208.12.13.18] DBM user julian not found: /usr/local/apache/htdocs ..although noteably similar to the error I get under redhat. At least now it dosn't segfault. I have a CGI system for editing the .pag/.dir files which uses Perl dbm modules, so I fear changing file formats in case I run into more compatibility problems there. What's the difference between the single file system and the dual file system? Why won't auth_dbm work with either format on either platform (and sounds like a few other platforms too)? Please let me know if you need any help tracking this down. -=Julian=- p.s. THANK YOU for giving your time to work on this wonderful free software.