Skip to content

Add Fedora 40

Michal Nowak requested to merge mnowak/fedora-40 into main

dca1493d resolves mem leak coming from libxml2 (also see similar recent fix in c7ed858c).

mem leak of https://gitlab.isc.org/isc-projects/bind9/-/jobs/4238711
==449229==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 1424 byte(s) in 2 object(s) allocated from:
    #0 0x7fb59514b270 in calloc (/lib64/libasan.so.8+0xf6270) (BuildId: 9398d675390359c74744b0e7714408910d853874)
    #1 0x7fb59206f982 in xmlNewGlobalState (/lib64/libxml2.so.2+0x2f982) (BuildId: e0310970b5058cb3d290cc7ab28dea58ef9032fc)
    #2 0x7fb5920752de in __xmlDefaultBufferSize (/lib64/libxml2.so.2+0x352de) (BuildId: e0310970b5058cb3d290cc7ab28dea58ef9032fc)
    #3 0x7fb5920af91f in xmlAllocParserInputBuffer (/lib64/libxml2.so.2+0x6f91f) (BuildId: e0310970b5058cb3d290cc7ab28dea58ef9032fc)
    #4 0x7fb592082e7b in xmlCreatePushParserCtxt (/lib64/libxml2.so.2+0x42e7b) (BuildId: e0310970b5058cb3d290cc7ab28dea58ef9032fc)
    #5 0x7fb592123bef in xmlNewTextWriterDoc (/lib64/libxml2.so.2+0xe3bef) (BuildId: e0310970b5058cb3d290cc7ab28dea58ef9032fc)
    #6 0x4dda57 in generatexml /builds/isc-projects/bind9/bin/named/statschannel.c:1765
    #7 0x4e9ee9 in render_xml /builds/isc-projects/bind9/bin/named/statschannel.c:2163
    #8 0x4ea6f7 in render_xml_zones /builds/isc-projects/bind9/bin/named/statschannel.c:2222
    #9 0x7fb594ae0d9e in prepare_response /builds/isc-projects/bind9/lib/isc/httpd.c:794
    #10 0x7fb594b6cf33 in isc__work_cb /builds/isc-projects/bind9/lib/isc/work.c:30
    #11 0x7fb594ea5a20 in uv__queue_work /usr/src/libuv-v1.48.0/src/threadpool.c:351
    #12 0x7fb594ea530f in worker /usr/src/libuv-v1.48.0/src/threadpool.c:122
    #13 0x7fb5950b2b45 in asan_thread_start(void*) (/lib64/libasan.so.8+0x5db45) (BuildId: 9398d675390359c74744b0e7714408910d853874)

SUMMARY: AddressSanitizer: 1424 byte(s) leaked in 2 allocation(s).

Prereq: https://gitlab.isc.org/isc-projects/images/-/merge_requests/313

Edited by Michał Kępień

Merge request reports