public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/106915] New: ICE/segfault during parsing with modules and invalid code in malloc
@ 2022-09-12 17:35 burnus at gcc dot gnu.org
  2022-09-12 19:46 ` [Bug fortran/106915] " marxin at gcc dot gnu.org
  2022-09-12 19:46 ` marxin at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: burnus at gcc dot gnu.org @ 2022-09-12 17:35 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 106915
           Summary: ICE/segfault during parsing with modules and invalid
                    code in malloc
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: burnus at gcc dot gnu.org
  Target Milestone: ---

Created attachment 53564
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53564&action=edit
Testcase

the following code ICEs either in variant (A) with:

corrupted size vs. prev_size
...
0x7f18078ba08f ???
       
/build/glibc-SzIz7B/glibc-2.31/signal/../sysdeps/unix/sysv/linux/x86_64/sigaction.c:0
0x7f180790ca63 malloc_consolidate
        /build/glibc-SzIz7B/glibc-2.31/malloc/malloc.c:4492
0x7f180790ec82 _int_malloc



Or in Variant (B) with:

Error: Expecting END MODULE statement at (1)
malloc(): mismatching next->prev_size (unsorted)
malloc(): mismatching next->prev_size (unsorted)
gfortran: internal compiler error: Aborted signal terminated program f951


The second variant seems to work also without -fopenmp, even though it has
'USE omp_lib'.

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

* [Bug fortran/106915] ICE/segfault during parsing with modules and invalid code in malloc
  2022-09-12 17:35 [Bug fortran/106915] New: ICE/segfault during parsing with modules and invalid code in malloc burnus at gcc dot gnu.org
@ 2022-09-12 19:46 ` marxin at gcc dot gnu.org
  2022-09-12 19:46 ` marxin at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-09-12 19:46 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |marxin at gcc dot gnu.org

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Likely started with r9-3442-gb4439561c4019cf3.

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

* [Bug fortran/106915] ICE/segfault during parsing with modules and invalid code in malloc
  2022-09-12 17:35 [Bug fortran/106915] New: ICE/segfault during parsing with modules and invalid code in malloc burnus at gcc dot gnu.org
  2022-09-12 19:46 ` [Bug fortran/106915] " marxin at gcc dot gnu.org
@ 2022-09-12 19:46 ` marxin at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-09-12 19:46 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2022-09-12
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW

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

end of thread, other threads:[~2022-09-12 19:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-12 17:35 [Bug fortran/106915] New: ICE/segfault during parsing with modules and invalid code in malloc burnus at gcc dot gnu.org
2022-09-12 19:46 ` [Bug fortran/106915] " marxin at gcc dot gnu.org
2022-09-12 19:46 ` marxin 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).