After two days of testing I can testify that Sorin's analysis is correct.
Sometimes Apache points to a user-agent string, sometimes it points to a null
string, and sometimes there is a null pointer.
The reason nothing appeared in the logs is because the requests coming in with
empty
On 26/10/2021 08.18, miim wrote:
ua_pointer = apr_table_get(r->headers_in, "User-Agent");
/* Find out how long the Apache-supplied string is */
ualength = strlen(ua_pointer);
If the request does not contain any user-agent then ua_pointer will be
NULL. strlen of NULL will segfault.
My thanks to everyone for their input on this problem. While I was unable to
get the backtrace and whatkilledus modules to report on failure, I isolated the
cause to the following code in the handler.
The code itself does not segfault and indeed it appears to execute properly,
retrieving