Closed tyler92 closed 11 months ago
And the same test sometimes failed with the following error (without thread sanitizer):
[==========] Running 1 test from 1 test suite.
[----------] 1 test from http_server_test
[ RUN ] http_server_test.multiple_client_with_requests_to_multithreaded_server
[test] [7f3d5c450a00] Trying to run server...
[server] [7f3d5c450a00] Init Hello handler with 0 seconds delay
[test] [7f3d5c450a00] Server address: localhost:41011
run_http_server_test: /home/misha/github.com/pistacheio/pistache/src/client/client.cc:977: Pistache::Http::Experimental::Client::~Client(): Assertion `stopProcessPequestsQueues == true && "You must explicitly call shutdown method of Client object"' failed.
run_http_server_test: /home/misha/github.com/pistacheio/pistache/src/client/client.cc:977: Pistache::Http::Experimental::Client::~Client(): Assertion `stopProcessPequestsQueues == true && "You must explicitly call shutdown method of Client object"' failed.
Aborted (core dumped)
or
[==========] Running 1 test from 1 test suite.
[----------] 1 test from http_server_test
[ RUN ] http_server_test.multiple_client_with_requests_to_multithreaded_server
[test] [7f5f1645ea00] Trying to run server...
[server] [7f5f1645ea00] Init Hello handler with 0 seconds delay
[test] [7f5f1645ea00] Server address: localhost:33679
[client] [7f5f0c2c3640] [0] Response: OK, body: `Hello, World!`
[client] [7f5f0bac2640] [2] Response: OK, body: `Hello, World!`
[client] [7f5f0bac2640] [1] Response: OK, body: `Hello, World!`
[client] [7f5f0bac2640] [0] Response: OK, body: `Hello, World!`
[client] [7f5f0c2c3640] [1] Response: OK, body: `Hello, World!`
[client] [7f5f116ec640] resolves: 2, rejects: 0, request timeout: 0 seconds, wait: 6 seconds
[client] [7f5f0f3e0640] resolves: 3, rejects: 0, request timeout: 0 seconds, wait: 6 seconds
/home/misha/github.com/pistacheio/pistache/tests/http_server_test.cc:339: Failure
Expected equality of these values:
res1
Which is: 2
FIRST_CLIENT_REQUEST_SIZE
Which is: 4
[ FAILED ] http_server_test.multiple_client_with_requests_to_multithreaded_server (6009 ms)
I think this is a duplication of https://github.com/pistacheio/pistache/issues/842
It's reproduced with the unit test
http_server_test.multiple_client_with_requests_to_multithreaded_server
.The full report: tsan.log