You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2013/06/07 04:02:47 UTC
[Bug 55072] New: ErrorLog doesn't work well when apache shutdown
https://issues.apache.org/bugzilla/show_bug.cgi?id=55072
Bug ID: 55072
Summary: ErrorLog doesn't work well when apache shutdown
Product: Apache httpd-2
Version: 2.5-HEAD
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Core
Assignee: bugs@httpd.apache.org
Reporter: weiy.chen@gmail.com
The problem is that if we configured the ErrorLog directive piped with
rotatelog, logs in pool cleanup hook is always missing when we shutdown the
apache server (restart is OK).
ErrorLog "|/usr/local/apache2/bin/rotatelogs -l
/home/user/log/event.log.%Y-%m-%d 86400"
If we don't use the rotatelog feature, it works fine.
ErrorLog "logs/error_log"
We have tested the latest released apache, the problem always exists.
The related program is as following:
apr_status_t destory_lock(void *not_used)
{
ap_log_error(APLOG_MARK, APLOG_ERR, 0, NULL, "enter destroy"); // this log
is always missing when shutdown apache
return APR_SUCCESS;
}
int filerepair_post_config(apr_pool_t *pconf, apr_pool_t *plog,
apr_pool_t *ptemp, server_rec *s){
apr_pool_cleanup_register(pconf, NULL, destory_lock,
apr_pool_cleanup_null);
return APR_SUCCESS;
}
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 55072] ErrorLog doesn't work well when apache shutdown
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55072
Takashi Sato <ta...@tks.st> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |takashi.asfbugzilla@tks.st
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 55072] ErrorLog doesn't work well when apache shutdown
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55072
--- Comment #1 from Eric Covener <co...@gmail.com> ---
Does creating a sub-pool of pconf and registering a cleanup on that instead
work around the issue? log.c uses a pconf cleanup to shutdown the piped
logger.
Can you try testing w/ the "APR_KILL_AFTER_TIMEOUT" line removed from log.c
(separate or in conjunction w/ the above)
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 55072] ErrorLog doesn't work well when apache shutdown
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55072
--- Comment #2 from Weiye <we...@gmail.com> ---
The attempt that creating sub pool only seems not work.
After the line "apr_pool_note_subprocess(p, procnew, APR_KILL_AFTER_TIMEOUT);"
in log.c is commetted out , it will log successfully regardless of whether the
sub-pool is created or not.
(In reply to Eric Covener from comment #1)
> Does creating a sub-pool of pconf and registering a cleanup on that instead
> work around the issue? log.c uses a pconf cleanup to shutdown the piped
> logger.
>
> Can you try testing w/ the "APR_KILL_AFTER_TIMEOUT" line removed from log.c
> (separate or in conjunction w/ the above)
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 55072] ErrorLog doesn't work well when apache shutdown
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55072
Dave <da...@alfar.co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dave@alfar.co.uk
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org