public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/113799] New: gfc_replace_expr: double free detected ?
@ 2024-02-07  9:47 dcb314 at hotmail dot com
  2024-02-07 11:07 ` [Bug fortran/113799] " mikael at gcc dot gnu.org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: dcb314 at hotmail dot com @ 2024-02-07  9:47 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 113799
           Summary: gfc_replace_expr: double free detected ?
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

Created attachment 57350
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57350&action=edit
F90 source code

For the attached F90 source code, I get this 

test $ ~/gcc/results/bin/gfortran -c ./Evaluate/folding20.f90
free(): double free detected in tcache 2
f951: internal compiler error: Aborted
0xf581f9 crash_signal(int)
        /home/dcb38/gcc/working/gcc/../../trunk.20210101/gcc/toplev.cc:317
0x7658aa gfc_replace_expr(gfc_expr*, gfc_expr*)
       
/home/dcb38/gcc/working/gcc/../../trunk.20210101/gcc/fortran/expr.cc:640
0x7658aa simplify_intrinsic_op(gfc_expr*, int)
       
/home/dcb38/gcc/working/gcc/../../trunk.20210101/gcc/fortran/expr.cc:1324
0x7658aa gfc_simplify_expr(gfc_expr*, int)
       
/home/dcb38/gcc/working/gcc/../../trunk.20210101/gcc/fortran/expr.cc:2317

The source code is from the flang testsuite in clang.

The bug has existed since sometime before 20240107.

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2024-04-02 17:30 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-07  9:47 [Bug fortran/113799] New: gfc_replace_expr: double free detected ? dcb314 at hotmail dot com
2024-02-07 11:07 ` [Bug fortran/113799] " mikael at gcc dot gnu.org
2024-02-07 11:17 ` mikael at gcc dot gnu.org
2024-02-07 22:17 ` anlauf at gcc dot gnu.org
2024-02-07 22:36 ` anlauf at gcc dot gnu.org
2024-02-07 22:47 ` anlauf at gcc dot gnu.org
2024-02-08 18:53 ` anlauf at gcc dot gnu.org
2024-02-08 20:12 ` anlauf at gcc dot gnu.org
2024-02-08 21:05 ` anlauf at gcc dot gnu.org
2024-02-09 18:24 ` cvs-commit at gcc dot gnu.org
2024-04-02 17:07 ` cvs-commit at gcc dot gnu.org
2024-04-02 17:30 ` anlauf at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).