https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117409

Sam James <sjames at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |15.0
   Last reconfirmed|                            |2024-11-11
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW

--- Comment #1 from Sam James <sjames at gcc dot gnu.org> ---
$ valgrind -q --track-origins=yes /usr/libexec/gcc/x86_64-pc-linux-gnu/15/f951
gcc/testsuite/gfortran.dg/diagnostic-format-sarif-pr105916.f90 -quiet -dumpbase
diagnosti
c-format-sarif-pr105916.f90 -dumpbase-ext .f90 -mtune=generic -march=x86-64 -O2
-O -Wfatal-errors -fdiagnostics-color=never -fdiagnostics-urls=never
-fdiagnostics-path-format=separate-ev
ents -fdiagnostics-text-art-charset=none -fno-diagnostics-show-caret
-fno-diagnostics-show-line-numbers -fdiagnostics-path-format=separate-events
-fdiagnostics-text-art-charset=none -fno
-diagnostics-show-event-links -fdiagnostics-format=sarif-file -fmax-errors=1 -o
diagnostic-format-sarif-pr105916.s -fintrinsic-modules-path
/usr/lib/gcc/x86_64-pc-linux-gnu/15/finclude -
fpre-include=/usr/include/finclude/math-vector-fortran.h                        
==4096545== Invalid read of size 1
==4096545==    at 0x5002810: __strcmp_avx2 (strcmp-avx2.S:249)
==4096545==    by 0x1A9E050: file_cache::lookup_file(char const*)
(input.cc:325)
==4096545==    by 0x1A9DFDF: file_cache::lookup_or_add_file(char const*)
(input.cc:539)
==4096545==    by 0x19275DD: file_cache::get_source_file_content(char const*)
(input.cc:1051)
==4096545==    by 0x1927672:
sarif_builder::maybe_make_artifact_content_object(char const*) const
(diagnostic-format-sarif.cc:3201)
==4096545==    by 0x192771B: sarif_artifact::populate_contents(sarif_builder&)
(diagnostic-format-sarif.cc:1030)
==4096545==    by 0x192791F:
sarif_builder::make_run_object(std::unique_ptr<sarif_invocation,
std::default_delete<sarif_invocation> >, std::unique_ptr<json::array,
std::default_delete<js
on::array> >) (diagnostic-format-sarif.cc:2972)
==4096545==    by 0x1927B9A:
sarif_builder::make_top_level_object(std::unique_ptr<sarif_invocation,
std::default_delete<sarif_invocation> >, std::unique_ptr<json::array,
std::default_del
ete<json::array> >) (diagnostic-format-sarif.cc:2926)
==4096545==    by 0x1927C56: sarif_builder::flush_to_object()
(diagnostic-format-sarif.cc:1802)
==4096545==    by 0x1927CC0: sarif_builder::flush_to_file(_IO_FILE*)
(diagnostic-format-sarif.cc:1814)
==4096545==    by 0x1927DA7:
sarif_file_output_format::~sarif_file_output_format()
(diagnostic-format-sarif.cc:3546)
==4096545==    by 0x1927DCB:
sarif_file_output_format::~sarif_file_output_format()
(diagnostic-format-sarif.cc:3547)
==4096545==  Address 0x523edc0 is 0 bytes inside a block of size 63 free'd
==4096545==    at 0x484BE2F: free (vg_replace_malloc.c:989)
==4096545==    by 0x267F70E: UnknownInlinedFun (scanner.cc:297)
==4096545==    by 0x267F70E: UnknownInlinedFun (misc.cc:383)
==4096545==    by 0x267F70E: gfc_finish() [clone .lto_priv.0] (f95-lang.cc:302)
==4096545==    by 0x21FEF08: UnknownInlinedFun (toplev.cc:2118)
==4096545==    by 0x21FEF08: UnknownInlinedFun (toplev.cc:2225)
==4096545==    by 0x21FEF08: toplev::main(int, char**) (toplev.cc:2376)
==4096545==    by 0x21FDF6A: main (main.cc:39)
==4096545==  Block was alloc'd at
==4096545==    at 0x4848BD3: malloc (vg_replace_malloc.c:446)
==4096545==    by 0x26451DC: UnknownInlinedFun (xmalloc.c:149)
==4096545==    by 0x26451DC: UnknownInlinedFun (xstrdup.c:34)
==4096545==    by 0x26451DC: UnknownInlinedFun (scanner.cc:2056)
==4096545==    by 0x26451DC: load_file(char const*, char const*, bool)
(scanner.cc:2610)
==4096545==    by 0x26466FC: gfc_new_file() (scanner.cc:2784)
==4096545==    by 0x267F612: gfc_init() [clone .lto_priv.0] (f95-lang.cc:289)
==4096545==    by 0x21FECD7: UnknownInlinedFun (toplev.cc:1903)
==4096545==    by 0x21FECD7: UnknownInlinedFun (toplev.cc:2201)
==4096545==    by 0x21FECD7: toplev::main(int, char**) (toplev.cc:2376)
==4096545==    by 0x21FDF6A: main (main.cc:39)

I see similar (but a bit different) with 13+14.

Reply via email to