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 2014/07/22 14:45:17 UTC
[Bug 56758] New: HTTP running process id becomes garbage in
httpd.pid in logs folder of apache directory
https://issues.apache.org/bugzilla/show_bug.cgi?id=56758
Bug ID: 56758
Summary: HTTP running process id becomes garbage in httpd.pid
in logs folder of apache directory
Product: Apache httpd-2
Version: 2.4.9
Hardware: Other
OS: Linux
Status: NEW
Severity: major
Priority: P2
Component: Core
Assignee: bugs@httpd.apache.org
Reporter: ritesh.prajapati@slscorp.com
I have one Custom Linux board on which I want to run apache web server (httpd)
to test HTML and other web based pages.
I have configured, compiled and installed httpd 2.4.4 as well as 2.4.9 on my
linux custom board.
When I checked httpd.pid file in logs folder of apache directory, it contains
invalid PID which shows 19 Digit long PID (Ex:- 2983363998394615403).
I have also tried to change httpd.pid file path into some another location but
still causes same issue.
Please find following output of ps and httpd.pid file for more reference.
1643 root 10936 S /usr/local/apache2/bin/httpd -k start
1644 daemon 16812 S /usr/local/apache2/bin/httpd -k start
1645 daemon 16812 S /usr/local/apache2/bin/httpd -k start
1646 daemon 16812 S /usr/local/apache2/bin/httpd -k start
1730 daemon 16820 S /usr/local/apache2/bin/httpd -k start
$ cat httpd.pid
2983363998394615403
Please let me know if any one has idea about this issue.
--
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 56758] HTTP running process id becomes garbage in httpd.pid in
logs folder of apache directory
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56758
--- Comment #1 from Ritesh Prajapati <ri...@slscorp.com> ---
I have also started httpd process using strace utility and found that process
itself writing wrong PID into httpd.pid file.
Please find following logs for more information.
./strace -o /usr/local/strace.out -f ./apache2/bin/apachectl start
3033 stat64("/usr/local/apache2/logs/httpd.pid", 0x7ba1e9b8) = -1 ENOENT (No
such file or directory)
3033 open("/usr/local/apache2/logs/httpd.pid",
O_WRONLY|O_CREAT|O_TRUNC|O_CLOEXEC, 0644) = 7
3033 write(7, "2983363998394616793\n", 20) = 20 ------> This shows grabage PID
written in httpd.pid file
3033 close(7) = 0
So, Above 19 digit ("2983363998394616793") wrong PID is written into httpd.pid
file.
Please let me know if any one has idea about this issue.
--
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 56758] HTTP running process id becomes garbage in httpd.pid in
logs folder of apache directory
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56758
Ritesh Prajapati <ri...@slscorp.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #2 from Ritesh Prajapati <ri...@slscorp.com> ---
I have debugged code of APR and found that size of pid_t becomes 8 bit instead
of 4 bit from configuration of APR.I looked into configuration file of APR and
found that ac_cv_sizeof_pid_t becomes 8 bit if you are cross compiling APR.
if test "$cross_compiling" = yes; then :
ac_cv_sizeof_pid_t=8
so, that size of PID becomes 64 and store Process ID of httpd as garbage in to
httpd.pid file.
I have set this option as 4 (32 Bit as per my board configuration) like
ac_cv_sizeof_pid_t=4
and configured, compiled and installed that APR Package with httpd process.
Checked httpd.pid file created valid and contains proper PID of httpd root
process after starting httpd process.
So, Problem is solved from above configuration.
--
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 56758] HTTP running process id becomes garbage in httpd.pid in
logs folder of apache directory
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56758
Eric Covener <co...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|FIXED |INVALID
Severity|major |normal
--
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 56758] HTTP running process id becomes garbage in httpd.pid in
logs folder of apache directory
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56758
Ritesh Prajapati <ri...@slscorp.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P2 |P5
--
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 56758] HTTP running process id becomes garbage in httpd.pid in
logs folder of apache directory
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56758
Jeff Trawick <tr...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Component|Core |APR
Version|2.4.9 |HEAD
Resolution|INVALID |---
Assignee|bugs@httpd.apache.org |bugs@apr.apache.org
Product|Apache httpd-2 |APR
--- Comment #3 from Jeff Trawick <tr...@apache.org> ---
I'm moving this to APR as a doc issue. We need to have a place to collect
hints for those doing cross compilation.
--
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