public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "tglozar at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/111425] ia64: ICE in net/ipv4/fib_semantics.c:1621:1: internal compiler error: Segmentation fault
Date: Mon, 09 Oct 2023 16:22:57 +0000	[thread overview]
Message-ID: <bug-111425-4-7rjH4EYBgE@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-111425-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #8 from Tomáš Glozar <tglozar at gmail dot com> ---
It looks like somehow a value RTX with rt_cselib set to NULL gets into the
hashmap:

(gdb) f 1

#1  rtx_equal_for_cselib_1 (x=0x2674608, y=0x26747f8,
memmode=memmode@entry=E_VOIDmode, depth=depth@entry=1)
    at ../../gcc/cselib.cc:963
963          cselib_val *e = canonical_cselib_val (CSELIB_VAL_PTR (x));
(gdb) p debug_rtx(x)

(value:DI
Program received signal SIGSEGV, Segmentation fault.
0x0000000000a92f96 in rtx_writer::print_rtx_operand_code_0
(this=0x7fffffff64c0, in_rtx=0x2674608, idx=0)
    at ../../gcc/print-rtl.cc:318
318          fprintf (m_outfile, " %u:%u", val->uid, val->hash);

Going one level up:

(gdb) p debug_rtx(y)
(subreg:SI (value/u:DI 264:376 @0x26747f8/0x2666068) 0)
$1 = void
(gdb) p debug_rtx(x)
(subreg:SI (value:DI
Program received signal SIGSEGV, Segmentation fault.

Not sure how this is related to 5fc4d3e1837, as I understand it, it should only
affect single-bit values, here it is a DI value. I am not familiar with the
algorithm, so proceeding further in finding the cause it hard for me.

Perhaps someone who knows the algorithm has an idea why that field is NULL.

      parent reply	other threads:[~2023-10-09 16:22 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-15 11:36 [Bug target/111425] New: " frank.scheiner at web dot de
2023-09-15 11:40 ` [Bug target/111425] " frank.scheiner at web dot de
2023-09-15 12:10 ` rguenth at gcc dot gnu.org
2023-09-15 13:11 ` rguenth at gcc dot gnu.org
2023-09-16  8:47 ` frank.scheiner at web dot de
2023-09-18  9:11 ` frank.scheiner at web dot de
2023-09-21 11:10 ` frank.scheiner at web dot de
2023-10-08 11:50 ` frank.scheiner at web dot de
2023-10-09 16:22 ` tglozar at gmail dot com [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-111425-4-7rjH4EYBgE@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).