Skip to content

v2.4.2

Latest

Choose a tag to compare

@joneum joneum released this 27 Nov 05:32

Fixed

  • The sync event no longer reads a connection off a stack frame that
    has already been left. init_worker kept its dummy ngx_connection_t
    as a local and handed its address to the event, which then re-arms
    itself every 500 ms for the life of the worker; the timer code reads
    that pointer as a connection on every tick. AddressSanitizer reports
    it as stack-use-after-return and takes the worker down with it, so
    the suite lost its first test file to a connection reset. The dummy
    connection now comes from the cycle pool, where the event comes from.

  • CI: the Test::Nginx cache is now keyed by the Perl build, not just by
    the runner OS. When the hosted image moved to Ubuntu 26.04 the cached
    ~/perl5 tree was restored against a new interpreter and every test
    file died before its first assertion with loadable library and perl binaries are mismatched, taking Build & Test, A/UBSan and Valgrind
    down together.

  • CI: the sanitizer run can see what it is for now. ngx_palloc hands
    out slices of a pool block, so a write past an allocation landed inside
    memory ASan had handed over whole and no report was made; nginx keeps a
    switch for exactly this and NGX_DEBUG_PALLOC sends every allocation
    straight to malloc. The reports were being lost as well, because nginx
    redirects its own stderr onto the error log file as soon as error_log
    names one, so both sanitizers write to files of their own now and the
    findings step runs even after a failed suite, which is precisely what a
    worker that ASan took down leaves behind.