Red Hat Bugzilla – Bug 571032
apr_strtoi64 (strings/apr_strings.c) does not reset errno
Last modified: 2016-03-31 12:30:02 EDT
Created attachment 398213 [details]
add this to the conf.d directory of httpd-2.2.13-2.el5s2
Description of problem:
In certain circumstances, httpd does not start, and complains about an invalid configuration file.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. install the newest httpd from RH Application Stack (httpd-2.2.13-2.el5s2)
2. use the config file attached
3. try to start httpd
httpd does not start. Error msg:
Starting httpd: Syntax error on line 26 of /etc/httpd/conf.d/proxy_ajp.conf:
BalancerMember Ping/Pong timeout has wrong format
Since there is no problem in the config file, httpd should start.
While debugging in gdb, if I set errno to 0 before the call to apr_strtoi64 it works fine.
A workaround is included in the attachment: uncommenting the "CacheMaxFileSize 6400000" line sets the errno to 0.
This was fixed in upstream in December 2008, see
"Merge r727052 from trunk:
* Similar to apr_strtoff reset errno to zero in apr_strtoi64.
Cases were observed where apr_strtoi64 returned with a
previously set errno although the operation worked fine.
Submitted by: rpluem
Reviewed by: rpluem
Ruediger Pluem (author)"
Same complaint filed in the apache bugzilla
Thanks for the report.
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated in the
current release, Red Hat is unfortunately unable to address this
request at this time. Red Hat invites you to ask your support
representative to propose this request, if appropriate and relevant,
in the next release of Red Hat Enterprise Linux.