Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Bugs

[Bug 46942] error log messages: apr_global_mutex_lock(rewrite_log_lock) failed

 

 

Apache bugs RSS feed   Index | Next | Previous | View Threaded


bugzilla at apache

Jun 10, 2009, 1:07 PM

Post #1 of 4 (300 views)
Permalink
[Bug 46942] error log messages: apr_global_mutex_lock(rewrite_log_lock) failed

https://issues.apache.org/bugzilla/show_bug.cgi?id=46942


Dan Poirier <poirier[at]pobox.com> changed:

What |Removed |Added
----------------------------------------------------------------------------
Priority|P2 |P3




--- Comment #1 from Dan Poirier <poirier[at]pobox.com> 2009-06-10 13:07:17 PST ---
I think I've figured out what's going on (with some help from Greg Ames). Not
sure yet how to fix it.

The global mutex used by mod_rewrite to serialize writing to the rewrite log is
created in post_config(). So when the parent starts its graceful restart and
cleans up the old configuration, it's going to clean up - destroy - that global
mutex. Children still finishing up requests now have a reference to a mutex
that no longer exists, hence attempts to lock the mutex fail.

I think the worst effect of this is the possibility that a few rewritelog
messages get intermingled in the log, which isn't too important. Still, it
would be nice to figure out a way to make this work right. Maybe somebody who
knows how modules work better than I knows how to do this.

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

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


bugzilla at apache

Jun 11, 2009, 1:01 AM

Post #2 of 4 (279 views)
Permalink
[Bug 46942] error log messages: apr_global_mutex_lock(rewrite_log_lock) failed [In reply to]

https://issues.apache.org/bugzilla/show_bug.cgi?id=46942





--- Comment #2 from Joe Orton <jorton[at]redhat.com> 2009-06-11 01:01:27 PST ---
Ah, this was reported directly to us too - I took a look, and I can't see what
the point of the logging serialisation is at all:

http://marc.info/?l=apache-httpd-dev&m=124282193217344&w=2

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

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


bugzilla at apache

Jun 11, 2009, 4:36 AM

Post #3 of 4 (276 views)
Permalink
[Bug 46942] error log messages: apr_global_mutex_lock(rewrite_log_lock) failed [In reply to]

https://issues.apache.org/bugzilla/show_bug.cgi?id=46942





--- Comment #3 from Dan Poirier <poirier[at]pobox.com> 2009-06-11 04:36:01 PST ---
Created an attachment (id=23792)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=23792)
Remove global mod_rewrite log lock

I like it! The Gordian knot solution.

Here's a patch against trunk to remove the lock.

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

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


bugzilla at apache

Jun 11, 2009, 5:20 AM

Post #4 of 4 (280 views)
Permalink
[Bug 46942] error log messages: apr_global_mutex_lock(rewrite_log_lock) failed [In reply to]

https://issues.apache.org/bugzilla/show_bug.cgi?id=46942


Ruediger Pluem <rpluem[at]apache.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Keywords| |FixedInTrunk




--- Comment #4 from Ruediger Pluem <rpluem[at]apache.org> 2009-06-11 05:20:14 PST ---
Fixed in trunk as r783734 ( https://svn.apache.org/viewcvs.cgi?view=rev&rev=783734 ).

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

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

Apache bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.