httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 41141] - mod_dbd, apr_dbd_pgsql: Error looking up ... in database mod_dbd, apr_dbd_pgsql: Error looking up ... in database
Date Mon, 11 Dec 2006 07:45:40 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41141>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41141





------- Additional Comments From jens@strawberry.com  2006-12-10 23:45 -------
Hi,

psql authentication is working properly in apache 2.2.2.
Because of difficulties with php 5.2.0 - they finally boiled down
to another apache problem issue 41142 - I upgraded to version 2.2.3.

It turned out, that in version 2.2.3 apache was not able any more to
authenticate against the PostgreSQL database. Using a debugger I 
figured out, that

    dbd_setup_init did *not* fail. dbd_setup returns APR_SUCESS. This
        return value is returned by dbd_setup_init in the second if
        statement.

    Therefor srv->mutex was still NULL

    dbd_setup_lock was called afterwards. It failed because of srv->mutex.

The postgres database was setup when apache 2.2.2 was running. It was
not modified since then. After applying my patch, apache including the
authentication seemd ok for me again.

I had another look at the code right now. I turns out, that dbd_setup_lock
is called if svr->dbpool is NULL. However db_setup returns APR_SUCCESS,
thus apr_reslist_create obviously returns APR_SUCCESS. The later function
for my understanding should setup svr->dbpool. And it does so. 

So at the moment I'm stucked ... the only explanation would be some side
effect overriding svr->dbpool ...

Jens

    

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message