Closed dwarring closed 1 year ago
Notices in t/19encoding.t under valgrind on Rakudo blead. Golfs to:
t/19encoding.t
david@box:~/git/LibXML-raku$ valgrind -q `which rakudo` -I. -M LibXML::Document -e'LibXML::Document.new: :enc<EUC-JP>' ==22902== Invalid read of size 8 ==22902== at 0x401D6FC: strncmp (strcmp.S:173) ==22902== by 0x400604D: is_dst (dl-load.c:209) ==22902== by 0x4008566: _dl_dst_count (dl-load.c:246) ==22902== by 0x4008757: expand_dynamic_string_token (dl-load.c:388) ==22902== by 0x40088D1: fillin_rpath.isra.0 (dl-load.c:460) ==22902== by 0x4008BE1: decompose_rpath (dl-load.c:631) ==22902== by 0x4009745: cache_rpath (dl-load.c:673) ==22902== by 0x4009745: cache_rpath (dl-load.c:654) ==22902== by 0x4009745: _dl_map_object (dl-load.c:2074) ==22902== by 0x400DDC0: openaux (dl-deps.c:64) ==22902== by 0x5300A8F: _dl_catch_exception (dl-error-skeleton.c:208) ==22902== by 0x400E138: _dl_map_object_deps (dl-deps.c:248) ==22902== by 0x4013DAA: dl_open_worker (dl-open.c:571) ==22902== by 0x5300A8F: _dl_catch_exception (dl-error-skeleton.c:208) ==22902== Address 0x586f301 is 1 bytes inside a block of size 8 alloc'd ==22902== at 0x483877F: malloc (vg_replace_malloc.c:307) ==22902== by 0x401C26A: strdup (strdup.c:42) ==22902== by 0x4008B74: decompose_rpath (dl-load.c:606) ==22902== by 0x4009745: cache_rpath (dl-load.c:673) ==22902== by 0x4009745: cache_rpath (dl-load.c:654) ==22902== by 0x4009745: _dl_map_object (dl-load.c:2074) ==22902== by 0x400DDC0: openaux (dl-deps.c:64) ==22902== by 0x5300A8F: _dl_catch_exception (dl-error-skeleton.c:208) ==22902== by 0x400E138: _dl_map_object_deps (dl-deps.c:248) ==22902== by 0x4013DAA: dl_open_worker (dl-open.c:571) ==22902== by 0x5300A8F: _dl_catch_exception (dl-error-skeleton.c:208) ==22902== by 0x40138F9: _dl_open (dl-open.c:837) ==22902== by 0x52FFF0C: do_dlopen (dl-libc.c:96) ==22902== by 0x5300A8F: _dl_catch_exception (dl-error-skeleton.c:208) ... etc
Fixed in LibXML 0.9.2 release
Notices in
t/19encoding.t
under valgrind on Rakudo blead. Golfs to: