public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/109809] New: ICE in dwarf2out_frame_debug_cfa_offset, at dwarf2cfi.cc:1376
@ 2023-05-11  9:36 jamborm at gcc dot gnu.org
  2024-02-05 17:05 ` [Bug target/109809] " giulio.benetti at benettiengineering dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: jamborm at gcc dot gnu.org @ 2023-05-11  9:36 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 109809
           Summary: ICE in dwarf2out_frame_debug_cfa_offset, at
                    dwarf2cfi.cc:1376
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jamborm at gcc dot gnu.org
  Target Milestone: ---
              Host: x86_64-linux
            Target: s390x-linux-gnu-gcc

With cross compiler configured as

/home/worker/buildworker/tiber-gcc-trunk-s390x/build/configure
--enable-languages=c,c++,fortran,rust,m2 --disable-bootstrap
--disable-libsanitizer --disable-multilib --enable-checking=release
--prefix=/home/worker/cross --target=s390x-linux-gnu
--with-as=/usr/bin/s390x-suse-linux-as

running:

~/cross/bin/s390x-linux-gnu-gcc
/home/worker/buildworker/tiber-option-juggler/build/gcc/testsuite/gcc.dg/tree-ssa/ldist-9.c
-fstack-clash-protection -mpreserve-args -Ofast
--param=stack-clash-protection-probe-interval=10

Results in:

during RTL pass: dwarf2
/home/worker/buildworker/tiber-option-juggler/build/gcc/testsuite/gcc.dg/tree-ssa/ldist-9.c:
In function ‘loop1’:
/home/worker/buildworker/tiber-option-juggler/build/gcc/testsuite/gcc.dg/tree-ssa/ldist-9.c:23:1:
internal compiler error: in dwarf2out_frame_debug_cfa_offset, at
dwarf2cfi.cc:1376
   23 | }
      | ^
0x606f65 dwarf2out_frame_debug_cfa_offset
       
/home/worker/buildworker/tiber-gcc-trunk-s390x/build/gcc/dwarf2cfi.cc:1376
0x606f65 dwarf2out_frame_debug
       
/home/worker/buildworker/tiber-gcc-trunk-s390x/build/gcc/dwarf2cfi.cc:2285
0x606f65 scan_insn_after
       
/home/worker/buildworker/tiber-gcc-trunk-s390x/build/gcc/dwarf2cfi.cc:2726
0x7efb77 scan_trace
       
/home/worker/buildworker/tiber-gcc-trunk-s390x/build/gcc/dwarf2cfi.cc:2893
0x7efed5 create_cfi_notes
       
/home/worker/buildworker/tiber-gcc-trunk-s390x/build/gcc/dwarf2cfi.cc:2938
0x7efed5 execute_dwarf2_frame
       
/home/worker/buildworker/tiber-gcc-trunk-s390x/build/gcc/dwarf2cfi.cc:3309
0x7efed5 execute
       
/home/worker/buildworker/tiber-gcc-trunk-s390x/build/gcc/dwarf2cfi.cc:3799

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

* [Bug target/109809] ICE in dwarf2out_frame_debug_cfa_offset, at dwarf2cfi.cc:1376
  2023-05-11  9:36 [Bug target/109809] New: ICE in dwarf2out_frame_debug_cfa_offset, at dwarf2cfi.cc:1376 jamborm at gcc dot gnu.org
@ 2024-02-05 17:05 ` giulio.benetti at benettiengineering dot com
  2024-02-05 17:07 ` giulio.benetti at benettiengineering dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: giulio.benetti at benettiengineering dot com @ 2024-02-05 17:05 UTC (permalink / raw)
  To: gcc-bugs

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

Giulio Benetti <giulio.benetti at benettiengineering dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |giulio.benetti@benettiengin
                   |                            |eering.com

--- Comment #1 from Giulio Benetti <giulio.benetti at benettiengineering dot com> ---
This bug shows up also on gcc 13.2.0 while building htop with optimization -O2.
This is worked-around by disabling optimization with -O0.

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

* [Bug target/109809] ICE in dwarf2out_frame_debug_cfa_offset, at dwarf2cfi.cc:1376
  2023-05-11  9:36 [Bug target/109809] New: ICE in dwarf2out_frame_debug_cfa_offset, at dwarf2cfi.cc:1376 jamborm at gcc dot gnu.org
  2024-02-05 17:05 ` [Bug target/109809] " giulio.benetti at benettiengineering dot com
@ 2024-02-05 17:07 ` giulio.benetti at benettiengineering dot com
  2024-02-05 17:14 ` pinskia at gcc dot gnu.org
  2024-02-05 17:31 ` giulio.benetti at benettiengineering dot com
  3 siblings, 0 replies; 5+ messages in thread
From: giulio.benetti at benettiengineering dot com @ 2024-02-05 17:07 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Giulio Benetti <giulio.benetti at benettiengineering dot com> ---
(In reply to Giulio Benetti from comment #1)
> This bug shows up also on gcc 13.2.0 while building htop with optimization
> -O2.
> This is worked-around by disabling optimization with -O0.

For RISCV64 architecture

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

* [Bug target/109809] ICE in dwarf2out_frame_debug_cfa_offset, at dwarf2cfi.cc:1376
  2023-05-11  9:36 [Bug target/109809] New: ICE in dwarf2out_frame_debug_cfa_offset, at dwarf2cfi.cc:1376 jamborm at gcc dot gnu.org
  2024-02-05 17:05 ` [Bug target/109809] " giulio.benetti at benettiengineering dot com
  2024-02-05 17:07 ` giulio.benetti at benettiengineering dot com
@ 2024-02-05 17:14 ` pinskia at gcc dot gnu.org
  2024-02-05 17:31 ` giulio.benetti at benettiengineering dot com
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-02-05 17:14 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Giulio Benetti from comment #2)
> (In reply to Giulio Benetti from comment #1)
> > This bug shows up also on gcc 13.2.0 while building htop with optimization
> > -O2.
> > This is worked-around by disabling optimization with -O0.
> 
> For RISCV64 architecture

that is most likely a different bug, please file it seperately.

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

* [Bug target/109809] ICE in dwarf2out_frame_debug_cfa_offset, at dwarf2cfi.cc:1376
  2023-05-11  9:36 [Bug target/109809] New: ICE in dwarf2out_frame_debug_cfa_offset, at dwarf2cfi.cc:1376 jamborm at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2024-02-05 17:14 ` pinskia at gcc dot gnu.org
@ 2024-02-05 17:31 ` giulio.benetti at benettiengineering dot com
  3 siblings, 0 replies; 5+ messages in thread
From: giulio.benetti at benettiengineering dot com @ 2024-02-05 17:31 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Giulio Benetti <giulio.benetti at benettiengineering dot com> ---
It's not a problem, but it looks very similar to me:
CommandScreen.c:54:1: internal compiler error: in
dwarf2out_frame_debug_cfa_offset, at dwarf2cfi.cc:1376
   54 | }
      | ^
0x16c6616 diagnostic_impl(rich_location*, diagnostic_metadata const*, int, char
const*, __va_list_tag (*) [1], diagnostic_t)
        ???:0
0x16c72c7 internal_error(char const*, ...)
        ???:0
0x6a2d91 fancy_abort(char const*, int, char const*)
        ???:0
0x671146 dwarf2out_frame_debug(rtx_insn*) [clone .cold]
        ???:0
0x8645ef scan_trace(dw_trace_info*, bool) [clone .constprop.0]
        ???:0
0x864bf9 (anonymous namespace)::pass_dwarf2_frame::execute(function*)
        ???:0

Let me know if you still want me to open new bug.
Thank you!

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

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

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-11  9:36 [Bug target/109809] New: ICE in dwarf2out_frame_debug_cfa_offset, at dwarf2cfi.cc:1376 jamborm at gcc dot gnu.org
2024-02-05 17:05 ` [Bug target/109809] " giulio.benetti at benettiengineering dot com
2024-02-05 17:07 ` giulio.benetti at benettiengineering dot com
2024-02-05 17:14 ` pinskia at gcc dot gnu.org
2024-02-05 17:31 ` giulio.benetti at benettiengineering dot com

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).