version: gnuplot 6.1 last modified 2025-01-11
system: ubuntu 20.04
use this command to reproduce: gnutplot poc
message from ASAN:
==2684366==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 2 byte(s) in 1 object(s) allocated from:
#0 0x7f48b53f53ed in __interceptor_strdup ../../../../src/libsanitizer/asan/asan_interceptors.cc:445
#1 0x55855fab44d4 in fit_main /home/fizz/target_program/tmp/gnuplot-main/src/fit.c:1708
SUMMARY: AddressSanitizer: 2 byte(s) leaked in 1 allocation(s).
Couldn't exec expected X11 driver: /usr/local/libexec/gnuplot/6.1/gnuplot_x11
Did you set environmental variable GNUPLOT_DRIVER_DIR?
Exec failed: No such file or directory
==2685891==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 2 byte(s) in 1 object(s) allocated from:
#0 0x7f48b53f53ed in __interceptor_strdup ../../../../src/libsanitizer/asan/asan_interceptors.cc:445
#1 0x55855fab44d4 in fit_main /home/fizz/target_program/tmp/gnuplot-main/src/fit.c:1708
SUMMARY: AddressSanitizer: 2 byte(s) leaked in 1 allocation(s).
"./bugs/memory_leak2" line 23: Cannot load input from '�'
==2536827==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 5 byte(s) in 1 object(s) allocated from:
#0 0x7f48b546c808 in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cc:144
#1 0x7f48b53d5243 in __interceptor_strndup ../../../../src/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:379
#2 0x55855fa04b79 in command /home/fizz/target_program/tmp/gnuplot-main/src/command.c:844
#3 0x55855fa04b79 in step_through_line /home/fizz/target_program/tmp/gnuplot-main/src/command.c:549
Direct leak of 2 byte(s) in 1 object(s) allocated from:
#0 0x7f48b53f53ed in __interceptor_strdup ../../../../src/libsanitizer/asan/asan_interceptors.cc:445
#1 0x55855fab44d4 in fit_main /home/fizz/target_program/tmp/gnuplot-main/src/fit.c:1708
SUMMARY: AddressSanitizer: 7 byte(s) leaked in 2 allocation(s).
Not interesting.
See previous bug 2757.
Garbage commands are being discarded.