ab can fail due to a null pointer when there is an incomplete response. A patch will be attached.
Created attachment 6973 [details] ab - patch null pointer when parsing a partial response
Fixed in 2.1 and proposed for backport. I've added another sanity check before committing. The piece of code now looks: [...] /* check response code */ part = strstr(c->cbuff, "HTTP"); /* really HTTP/1.x_ */ if (part && strlen(part) > strlen("HTTP/1.x_")) { strncpy(respcode, (part + strlen("HTTP/1.x_")), 3); respcode[3] = '\0'; } else { strcpy(respcode, "500"); } if (respcode[0] != '2') { [...] Thanks for your patch!