Skip to content

check_curl: segfault #2167

@K0nne

Description

@K0nne

Hello!

The following check_curl command throws an segfault, while it works with check_http:

'/usr/lib64/nagios/plugins/check_curl' '-S' '--sni' '-H' '<domain>' '-I' '<proxy-ip>' '-f' 'follow' '-j' 'CONNECT' '-p' '8880' '-u' '<url-to-follow>'
HTTP CRITICAL - Invalid HTTP response received from host on port 80: cURL returned 28 - Connection timed out after 10001 milliseconds

when using -vvv, the verbose output reveals an segfault:

...
**** CONTENT ****
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a href="<url-to-follow>">here</a>.</p>
</body></html>

* Seen redirect location (null)
Segmentation fault (core dumped)

When using the proxy fqdn instead of the proxy ip, the segfault appears directly in the check output. Its reproduceable.

>>  /usr/lib64/nagios/plugins/check_curl -V
check_curl v2.4.0 (monitoring-plugins 2.4.0)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions