Created attachment 23637 [details] Patch adding a check of the result of the allocation of stats Calling ab (the Apache benchmark utility) with the argument -n 1234567890 http://example.org (or any -n other value smaller than MAXINT, but bigger than the virtual memory divided by 32) causes ab to segfault. This is a result of using a dynamically allocated data structure(line ~1260) whose allocation(line 1559) is not checked. The size of this data structure is linearly dependent of the -n value. This may be a design bug in itself since it prevents ab runs with a potentially infinite number of requests, e.g. to test how many requests can be served in 42 seconds. The attached patch makes ab exit properly when the memory allocation fails.
fixed in trunk in r826497
not yet fixed in 2.2.x
*** Bug 49215 has been marked as a duplicate of this bug. ***
fixed in 2.4.1