[
https://issues.apache.org/jira/browse/DISPATCH-1258?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16969406#comment-16969406
]
Ganesh Murthy commented on DISPATCH-1258:
-
This crash has been resolved if you use the latest version of libwebsockets
(libwebsockets-3.2.0-1.fc31.x86_64) but system_tests_http is still failing with
the following error -
{noformat}
[root@13552f9cbb69 build]# /usr/bin/python
"/main/qpid-dispatch/build/tests/run.py" "-m" "unittest" "-v"
"system_tests_http.RouterTestHttp.test_https_get"
test_https_get (system_tests_http.RouterTestHttp) ...
/main/qpid-dispatch/tests/system_tests_http.py:54: DeprecationWarning: cafile,
capath and cadefault are deprecated, use a custom context instead.
http_data = urlopen(url, cafile=cls.ssl_file('ca-certificate.pem'))
ERROR
==
ERROR: test_https_get (system_tests_http.RouterTestHttp)
--
Traceback (most recent call last):
File "/main/qpid-dispatch/tests/system_tests_http.py", line 252, in
test_https_get
self.assert_get("http://localhost:%s"; % r.ports[0])
File "/main/qpid-dispatch/tests/system_tests_http.py", line 83, in assert_get
self.assertEqual(u'HTTP test\n', self.get("%s/system_tests_http.txt" % url))
File "/main/qpid-dispatch/tests/system_tests_http.py", line 54, in get
http_data = urlopen(url, cafile=cls.ssl_file('ca-certificate.pem'))
File "/usr/lib64/python3.7/urllib/request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib64/python3.7/urllib/request.py", line 525, in open
response = self._open(req, data)
File "/usr/lib64/python3.7/urllib/request.py", line 543, in _open
'_open', req)
File "/usr/lib64/python3.7/urllib/request.py", line 503, in _call_chain
result = func(*args)
File "/usr/lib64/python3.7/urllib/request.py", line 1345, in http_open
return self.do_open(http.client.HTTPConnection, req)
File "/usr/lib64/python3.7/urllib/request.py", line 1320, in do_open
r = h.getresponse()
File "/usr/lib64/python3.7/http/client.py", line 1344, in getresponse
response.begin()
File "/usr/lib64/python3.7/http/client.py", line 306, in begin
version, status, reason = self._read_status()
File "/usr/lib64/python3.7/http/client.py", line 275, in _read_status
raise RemoteDisconnected("Remote end closed connection without"
http.client.RemoteDisconnected: Remote end closed connection without response
--
Ran 1 test in 0.164s {noformat}
The thinking in the test is that since requireSsl is False, the http request
MUST be allowed even though the listener is associated with an sslProfile.
> Crash executing http test
> -
>
> Key: DISPATCH-1258
> URL: https://issues.apache.org/jira/browse/DISPATCH-1258
> Project: Qpid Dispatch
> Issue Type: Bug
> Components: Container, Tests
>Affects Versions: 1.5.0
>Reporter: Charles E. Rolke
>Priority: Major
> Attachments: DISPATCH-1258-ctest.txt
>
>
> Ctest fails with a router core. Text of ctest run posted separately.
> h3. Ctest command line
> ctest -VV -R system_tests_http
> h3. LibWebSockets version info
> libwebsockets-3.0.1-2.fc29.x86_64
> libwebsockets-devel-3.0.1-2.fc29.x86_64
> libwebsockets-debuginfo-3.0.1-2.fc29.x86_64
> libwebp-1.0.0-2.fc29.x86_64
> libwebsockets-debugsource-3.0.1-2.fc29.x86_64
> h3. GDB Backtrace
> {{gdb) bt}}
> {{#0 SSL_get0_alpn_selected (ssl=0x0, data=data@entry=0x7f064f343f20,
> len=len@entry=0x7f064f343f1c) at ssl/ssl_lib.c:2802}}
> {{#1 0x7f065dca5f3c in lws_tls_server_conn_alpn
> (wsi=wsi@entry=0x7f0640245ad0)}}
> {{ at
> /usr/src/debug/libwebsockets-3.0.1-2.fc29.x86_64/lib/tls/tls-server.c:76}}
> {{#2 0x7f065dca63b5 in lws_server_socket_service_ssl
> (wsi=wsi@entry=0x7f0640245ad0, accept_fd=accept_fd@entry=15)}}
> {{ at
> /usr/src/debug/libwebsockets-3.0.1-2.fc29.x86_64/lib/tls/tls-server.c:368}}
> {{#3 0x7f065dcaa21e in lws_adopt_descriptor_vhost (vh=,
> type=, fd=fd@entry=..., }}
> {{ vh_prot_name=vh_prot_name@entry=0x0, parent=parent@entry=0x0)}}
> {{ at
> /usr/src/debug/libwebsockets-3.0.1-2.fc29.x86_64/lib/roles/http/server/server.c:2036}}
> {{#4 0x7f065dca4547 in rops_handle_POLLIN_listen (pt=0x23f7830,
> wsi=0x7f0640086660, pollfd=0x23f9528)}}
> {{ at
> /usr/src/debug/libwebsockets-3.0.1-2.fc29.x86_64/lib/roles/listen/ops-listen.c:126}}
> {{#5 0x7f065dc9739b in lws_service_fd_tsi
> (context=context@entry=0x23f7790, pollfd=0x23f9528, tsi=tsi@entry=0)}}
> {{ at
> /usr/src/debug/libwebsockets-3.0.1-2.fc29.x86_64/lib/core/service.c:891}}
> {{#6 0x7f065dca81b0 in _lws_plat_service_tsi (context=0x23f7790,
> t