On Mon, Jun 17, 2019 at 02:49:43PM +0300, Niko Tyni wrote: > On Mon, Jun 17, 2019 at 09:47:04AM +0300, Niko Tyni wrote: > > > I can reproduce it on 5.30.0. It seems to be related to version strings > > and LC_NUMERIC. I reduced it to this: > > > > $ LC_NUMERIC=C.UTF-8 ./perl -l -Ilib -e 'require 5.006;' > > And further to this. It's not clear to me if this is a problem with asan > or the code. > > $ cat t.c; clang -g -fsanitize=address t.c; ./a.out > #include <locale.h> > int main(void) { > char *l; > setlocale(LC_NUMERIC, "C.UTF-8"); > l = setlocale(LC_NUMERIC, NULL); > setlocale(LC_NUMERIC, "C"); > setlocale(LC_NUMERIC, l); > } Presumably the intervening setlocale() call clobbers the buffer that l points to. The attached patch to vutil.c seems to fix this issue for me, but eyeballs appreciated of course. -- NikoThread Previous | Thread Next