You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Rob Hartill <ro...@imdb.com> on 1997/08/01 14:53:45 UTC
Bug report(s) (fwd)
---------- Forwarded message ----------
Date: Thu, 31 Jul 1997 23:21:38 -0400
From: David Birnbaum <da...@chelsea.net>
To: apache-bugs@apache.org
Cc: davidb@chelsea.net, admin@hyperreal.org
Subject: Bug report(s)
Folks,
Well, I seem to be batting 0.000 today. I just downloaded 1.2.1 to upgrade my
1.2, and in the process of cleaning up some old debris, I seem to have run
into a few errors. In no apparent order:
1. Your problem tracking database is down; any attempt to access it fails:
> Internal Server Error
>
> The server encountered an internal error or misconfiguration and was unable to > complete your request.
>
> Please contact the server administrator, admin@hyperreal.org and inform them
> of the time the error occurred, and anything you might have done that may have
> caused the error.
2. The URL on your known bugs page is wrong:
> Retrieve **this patch**. cd to your apache_1.2.1 directory, and type
> patch -s -p1 < /path/to/patchfile. Then rebuild Apache.
patch.hup -> patch.dup, I assume.
3. And the real bug, which I can find no mention of - it doesn't seem
possible to compile in both mod_auth_dbm and mod_auth_db at the same time. I
have done such, and the following .htaccess file fails:
AuthType Basic
AuthName Chelsea Networks Customer Library
AuthDBMUserFile /usr/local/httpd/.access/passwd.http
AuthDBMGroupFile /usr/local/httpd/.access/group.http
require valid-user
A truss bears me out:
open("/usr/local/httpd/htdocs/chelsea.net/client/.htaccess", O_RDONLY) = 6
fstat(6, 0xEFFFD730) = 0
ioctl(6, TCGETA, 0xEFFFD6BC) Err#25 ENOTTY
read(6, " A u t h T y p e B a s".., 8192) = 183
read(6, 0x000A0C5C, 8192) = 0
lseek(6, 0, SEEK_CUR) = 183
close(6) = 0
stat("/usr/local/httpd/.access/passwd.http.db", 0xEFFFD320) Err#2 ENOENT
open("/usr/local/httpd/.access/passwd.http.db", O_RDONLY) Err#2 ENOENT
Compiling without mod_auth_db seems to fix the problem. Unfortunately, some
of my users want to us db, some dbm, and never the two shall meet. At the
moment, I've left auth_db off, but this seems like an odd err. Fortunately,
add in mod_auth_msql at the same time doesn't seem to cause the same problem
(yikes!) This error seems to exist in 1.1.1 -> 1.2.1, so the code hasn't changed.
As always, thanks,
David.
Re: Bug report(s) (fwd)
Posted by Dean Gaudet <dg...@arctic.org>.
Dunno if solaris' ld will generate a map file for you, check the man page.
You might also be able to get filename/symbol mapping info out of a
debugging version of httpd using nm. You could just run nm on the libdb
and see what symbols it defines. I'm guessing it defines the dbm symbols
as wrappers for db functions. You can probably work around it by putting
"-lc -ldb" into EXTRA_LDFLAGS. Or perhaps you have to specify "-lndbm
-ldb" or something like that.
Dean
On Fri, 1 Aug 1997, David Birnbaum wrote:
> On Fri, 1 Aug 1997, Dean Gaudet wrote:
>
> > This is probably because libdb provides functions which override the dbm
> > functions in libc. That is an issue that you'll have to resolve on your
> > own. Perhaps you've upgraded libdb between building 1.1.x and building
> > 1.2.x? It's certainly possible to have _dbm and _db reside together ...
> > they don't clobber each other at all.
>
> Hmmm....I'm not sure how libdb functions would override dbm functionality
> in libc - but that was my point exactly. Why would the AuthDBMUserFile
> command cause an open to a db file? Is it possible that there is some
> sort of namespace collision within the mod_auth code that inserts the
> wrong callback? It doesn't look like there is any problem with libc and
> libdb - all of the dbm routines have names like "dbm_*", whereas the db
> routines start with "db".
>
> I have a pretty generic configuration (Solaris 2.5.1, db 1.85), but
> perhaps nobody else tries to do this. In any case, I have been unable to
> get these working together since 1.1.1, when I first built httpd, and can
> be replicated at will.
>
> Pointers on how to ferret this out would be appreciated.
>
> David.
>
>
Re: Bug report(s) (fwd)
Posted by David Birnbaum <da...@flatiron.org>.
On Fri, 1 Aug 1997, Dean Gaudet wrote:
> This is probably because libdb provides functions which override the dbm
> functions in libc. That is an issue that you'll have to resolve on your
> own. Perhaps you've upgraded libdb between building 1.1.x and building
> 1.2.x? It's certainly possible to have _dbm and _db reside together ...
> they don't clobber each other at all.
Hmmm....I'm not sure how libdb functions would override dbm functionality
in libc - but that was my point exactly. Why would the AuthDBMUserFile
command cause an open to a db file? Is it possible that there is some
sort of namespace collision within the mod_auth code that inserts the
wrong callback? It doesn't look like there is any problem with libc and
libdb - all of the dbm routines have names like "dbm_*", whereas the db
routines start with "db".
I have a pretty generic configuration (Solaris 2.5.1, db 1.85), but
perhaps nobody else tries to do this. In any case, I have been unable to
get these working together since 1.1.1, when I first built httpd, and can
be replicated at will.
Pointers on how to ferret this out would be appreciated.
David.
Re: Bug report(s) (fwd)
Posted by Dean Gaudet <dg...@arctic.org>.
On Fri, 1 Aug 1997, Rob Hartill wrote:
> 2. The URL on your known bugs page is wrong:
>
> > Retrieve **this patch**. cd to your apache_1.2.1 directory, and type
> > patch -s -p1 < /path/to/patchfile. Then rebuild Apache.
>
> patch.hup -> patch.dup, I assume.
Actually we're not sure which is the correct solution and I never had a
chance to update the page. solaris_dup is different than what was there
before, and there's even a third possibility to fix the bug. Go ahead and
use the _dup one though, it definately fixes the bug just maybe not as
well as possible.
> 3. And the real bug, which I can find no mention of - it doesn't seem
> possible to compile in both mod_auth_dbm and mod_auth_db at the same time. I
> have done such, and the following .htaccess file fails:
This is probably because libdb provides functions which override the dbm
functions in libc. That is an issue that you'll have to resolve on your
own. Perhaps you've upgraded libdb between building 1.1.x and building
1.2.x? It's certainly possible to have _dbm and _db reside together ...
they don't clobber each other at all.
Dean