Skip to content

v0.5.2

Latest

Choose a tag to compare

@joneum joneum released this 27 Nov 05:32

Fixed

  • An SSL check no longer leaks its SSL object, 81 KB at a time. Three
    places close a check connection, and only one of them shut the SSL side
    down first; the one that runs when the worker is told to go did not,
    so a check that was in flight at that moment left the object behind.
    The shutdown also asked for a graceful close, which can return
    NGX_AGAIN and leave the object for a connection that is closed in the
    next line anyway. All three now go through one place that takes the
    quiet path, which frees the object there and then.

  • 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.