Skip to content

Commit

Permalink
Tests: skip some of TLS reconfiguration tests under AddressSanitizer
Browse files Browse the repository at this point in the history
These tests cause router crash when run with AddressSanitizer:

=================================================================
==77196==ERROR: AddressSanitizer: heap-use-after-free on address 0x60c000079340 at pc 0x55d56b132d4b bp 0x7f8cc7f346b0 sp 0x7f8cc7f346a0
READ of size 1 at 0x60c000079340 thread T1
    #0 0x55d56b132d4a in nxt_openssl_conn_io_shutdown src/nxt_openssl.c:1466
    #1 0x55d56b0f6a25 in nxt_h1p_closing src/nxt_h1proto.c:2069
    #2 0x55d56b1009a6 in nxt_h1p_shutdown src/nxt_h1proto.c:2038
    #3 0x55d56b1014c3 in nxt_h1p_request_close src/nxt_h1proto.c:1718
    #4 0x55d56b1045c0 in nxt_http_request_close_handler src/nxt_http_request.c:864
    #5 0x55d56b104988 in nxt_http_request_done src/nxt_http_request.c:795
    #6 0x55d56b0ba0c3 in nxt_event_engine_start src/nxt_event_engine.c:542
    #7 0x55d56b0dcac2 in nxt_router_thread_start src/nxt_router.c:3645
    #8 0x55d56b0b421b in nxt_thread_trampoline src/nxt_thread.c:126
    #9 0x7f8ccab95ac2  (/lib/x86_64-linux-gnu/libc.so.6+0x94ac2)
    #10 0x7f8ccac2784f  (/lib/x86_64-linux-gnu/libc.so.6+0x12684f)
  • Loading branch information
andrey-zelenkov committed Feb 27, 2024
1 parent 187b08b commit 96972d6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/test_reconfigure_tls.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import pytest

from unit.applications.tls import ApplicationTLS
from unit.option import option

prerequisites = {'modules': {'openssl': 'any'}}

Expand Down Expand Up @@ -70,6 +71,9 @@ def test_reconfigure_tls_switch():


def test_reconfigure_tls():
if option.configure_flag['asan']:
pytest.skip('not yet, router crash')

ssl_sock = create_socket()

ssl_sock.sendall("""GET / HTTP/1.1\r\n""".encode())
Expand Down Expand Up @@ -107,6 +111,9 @@ def test_reconfigure_tls_2():


def test_reconfigure_tls_3():
if option.configure_flag['asan']:
pytest.skip('not yet, router crash')

ssl_sock = create_socket()
ssl_sock.do_handshake()

Expand Down

0 comments on commit 96972d6

Please sign in to comment.