<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Aptos;
panose-1:2 11 0 4 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:12.0pt;
font-family:"Aptos",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
span.EmailStyle20
{mso-style-type:personal-reply;
font-family:"Aptos",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
mso-ligatures:none;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt">Hey Maxim,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Thanks, I installed homebrew’s Perl and all these tests are passing now, woohoo!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">However a few others are failing now including ssl_ocsp.t and ssl_verify_depth.t, failing 13/17 and 3/11 tests respectively with the same error:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">```<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"># Failed test 'verify depth 2 - end'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"># at ssl_verify_depth.t line 169.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"># 'HTTP/1.1 400 Bad Request<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"># Server: nginx/1.24.0<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"># Date: Fri, 26 Jan 2024 01:08:10 GMT<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"># Content-Type: text/html<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"># Content-Length: 215<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"># Connection: close<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"># X-Client: CN=end<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"># X-Verify: FAILED:unsuitable certificate purpose<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">#<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"># <html><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"># <head><title>400 The SSL certificate error</title></head><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"># <body><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"># <center><h1>400 Bad Request</h1></center><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"># <center>The SSL certificate error</center><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"># <hr><center>nginx/1.24.0</center><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"># </body><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"># </html><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"># '<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"># doesn't match '(?^:SUCCESS)'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">```<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Originally the SSL tests were being skipped due to the absence of “socket_ssl”, so I had to manually install IO::Socket::SSL using cpan:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">```<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">"Module" IO::Socket::SSL<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> * "installed into:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> /opt/homebrew/Cellar/perl/5.38.2_1/lib/perl5/site_perl/5.38"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> * "LINKTYPE: dynamic"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> * "VERSION: 2.085"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> * "EXE_FILES: "<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">```<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Could the error above be another perl issue?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<div id="mail-editor-reference-message-container">
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="color:black">From:
</span></b><span style="color:black">Mayerhofer, Austin <Austin.Mayerhofer@forcepoint.com><br>
<b>Date: </b>Thursday, January 25, 2024 at 10:24 AM<br>
<b>To: </b>Sergey Kandaurov <pluknet@nginx.com>, nginx-devel@nginx.org <nginx-devel@nginx.org><br>
<b>Subject: </b>Re: [EXTERNAL] Re: Nginx-tests stream_ssl_conf_command.t test hanging indefinitely<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">Hey Sergey,</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Thanks for the help. I tried installing perl via homebrew but I ran into some dependency issues setting it up, and by the time I did set it up, it was skipping due to “# SKIP no http_ssl available”.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Is there a set of instructions or documentation for setting up a Mac environment for nginx-tests? I might be setting up perl wrong.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><o:p></o:p></p>
<div id="mail-editor-reference-message-container">
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="color:black">From:
</span></b><span style="color:black">Sergey Kandaurov <pluknet@nginx.com><br>
<b>Date: </b>Wednesday, January 24, 2024 at 2:59 PM<br>
<b>To: </b>nginx-devel@nginx.org <nginx-devel@nginx.org><br>
<b>Cc: </b>Mayerhofer, Austin <Austin.Mayerhofer@forcepoint.com><br>
<b>Subject: </b>[EXTERNAL] Re: Nginx-tests stream_ssl_conf_command.t test hanging indefinitely</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:11.0pt"><br>
> On 25 Jan 2024, at 01:15, Mayerhofer, Austin via nginx-devel <nginx-devel@nginx.org> wrote:<br>
> <br>
> Hi all,<br>
> Apologies if I sent this twice, I don’t think the first one went through because I wasn’t subscribed to the list.<br>
> nginx-tests’ stream_ssl_conf_command.t is hanging for me and not running to completion, I’m using the following configuration:<br>
> OS: MacOS 12.6.3<br>
> Chip: Apple M1 Max<br>
> NGINX: 1.24.0 built from source code with ./configure --with-debug --with-http_ssl_module --with-http_stub_status_module --with-http_v2_module --without-http_auth_basic_module --without-http_autoindex_module --without-http_browser_module --without-http-cache
--without-http_charset_module --without-http_empty_gif_module --without-http_fastcgi_module --without-http_grpc_module --without-http_limit_conn_module --without-http_limit_req_module --without-http_memcached_module --without-http_referer_module --without-http_scgi_module
--without-http_split_clients_module --without-http_ssi_module --without-http_upstream_hash_module --without-http_upstream_ip_hash_module --without-http_upstream_least_conn_module --without-http_userid_module --without-http_uwsgi_module --with-stream --with-stream_ssl_module
--with-stream_ssl_preread_module --without-stream_limit_conn_module --without-stream_set_module --without-stream_split_clients_module --without-stream_upstream_hash_module --without-stream_upstream_least_conn_module --without-stream_upstream_zone_module nginx-tests:
<a href="https://github.com/nginx/nginx-tests/tree/4c2ad8093952706f327d04887c5546bad91b75a6">
https://github.com/nginx/nginx-tests/tree/4c2ad8093952706f327d04887c5546bad91b75a6</a><br>
> When I run:<br>
> ```<br>
> TEST_NGINX_BINARY=/usr/local/nginx/sbin/nginx prove -v stream_ssl_conf_command.t<br>
> ```<br>
> The output is:<br>
> ```<br>
> stream_ssl_conf_command.t ..<br>
> 1..5<br>
> ok 1 - Certificate<br>
> ok 2 - SessionTicket<br>
> ok 3 – ServerPreference<br>
> ```<br>
> And it hangs there.<br>
<br>
Perl from macOS base system (/usr/bin/perl) is known to be buggy<br>
for some unknown reason. This is expressed in various hangs when<br>
running nginx-tests. I saw similar reports since at least macOS<br>
12.3.1, and this is not caused by a particular Perl version (same<br>
version from macports works for me). You can try Perl from homebrew<br>
or macports collections, it should work just fine.<br>
<br>
-- <br>
Sergey Kandaurov</span><o:p></o:p></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br><br>
<P align=center><FONT style="BACKGROUND-COLOR: #ffffff">This message has been scanned for malware by Forcepoint. </FONT><A href="http://www.forcepoint.com/"><FONT style="BACKGROUND-COLOR: #ffffff" color=#000000>www.forcepoint.com</FONT></A></P>
</body>
</html>