Bug 554180

Summary: ab crash for large -n values
Product: [Fedora] Fedora Reporter: Ken Dreyer <ktdreyer>
Component: httpdAssignee: Joe Orton <jorton>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 13CC: jorton, pahan
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-02 17:02:22 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ken Dreyer 2010-01-10 20:22:27 UTC
ab crashes for large values of -n (approximately greater than 100,000,000).

Core was generated by `ab -n 100000000 http://clue.ktdreyer.com/'.
Program terminated with signal 11, Segmentation fault.
#0  0x00e113de in close_connection (c=0xeb7d50) at /usr/src/debug/httpd-2.2.13/support/ab.c:1267
1267	            s->starttime = c->start;
(gdb) bt
#0  0x00e113de in close_connection (c=0xeb7d50) at /usr/src/debug/httpd-2.2.13/support/ab.c:1267
#1  0x00e12bb6 in read_connection (c=<value optimized out>) at /usr/src/debug/httpd-2.2.13/support/ab.c:1342
#2  test (c=<value optimized out>) at /usr/src/debug/httpd-2.2.13/support/ab.c:1727
#3  0x00e14759 in main (argc=4, argv=0xbfd30c94) at /usr/src/debug/httpd-2.2.13/support/ab.c:2260

I don't have a patch since I hardly know C :-) I'm guessing this value is too big for apr_time_t?

(gdb) print c->start
$1 = 1263153473350581

Comment 1 Bug Zapper 2010-04-28 11:41:33 UTC
This message is a reminder that Fedora 11 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 11.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '11'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 11's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 11 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 2 Ken Dreyer 2010-06-11 03:06:09 UTC
This bug still exists in F13, but it is fixed upstream in httpd 2.3 (see upstream's bug 47178)

Comment 3 Bug Zapper 2011-06-02 16:56:43 UTC
This message is a reminder that Fedora 13 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 13.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '13'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 13's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 13 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 4 Ken Dreyer 2011-06-02 17:02:22 UTC
Fixed in httpd trunk upstream, so closing here.