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

           Summary: ab crash for large -n values
           Product: Apache httpd-2
           Version: 2.2.15
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P2
         Component: support
        AssignedTo: [email protected]
        ReportedBy: [email protected]


ab crashes for large values of -n (approximately greater than 100,000,000).
I've tested this on Linux (x86) and Solaris (SPARC). Originally filed at
Fedora's BZ #554180.

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

-- 
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to