public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/61812] New: gcc ICE says "The bug is not reproducible, so it is likely a hardware or OS problem."
@ 2014-07-15 14:54 dhowells at redhat dot com
  2014-07-15 14:57 ` [Bug c/61812] gcc ICE incorrectly " dhowells at redhat dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: dhowells at redhat dot com @ 2014-07-15 14:54 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 61812
           Summary: gcc ICE says "The bug is not reproducible, so it is
                    likely a hardware or OS problem."
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dhowells at redhat dot com

gcc ICE says "The bug is not reproducible, so it is likely a hardware or OS
problem." at the end - even when this isn't true.


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

* [Bug c/61812] gcc ICE incorrectly says "The bug is not reproducible, so it is likely a hardware or OS problem."
  2014-07-15 14:54 [Bug c/61812] New: gcc ICE says "The bug is not reproducible, so it is likely a hardware or OS problem." dhowells at redhat dot com
@ 2014-07-15 14:57 ` dhowells at redhat dot com
  2014-07-15 15:51 ` schwab@linux-m68k.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: dhowells at redhat dot com @ 2014-07-15 14:57 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from dhowells at redhat dot com <dhowells at redhat dot com> ---
For an example ICE, see: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61737

This is easily reproducible, so the line is incorrect.  It might be better
stated conditionally:

    "If the bug is not reproducible, it is likely a hardware or OS problem."


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

* [Bug c/61812] gcc ICE incorrectly says "The bug is not reproducible, so it is likely a hardware or OS problem."
  2014-07-15 14:54 [Bug c/61812] New: gcc ICE says "The bug is not reproducible, so it is likely a hardware or OS problem." dhowells at redhat dot com
  2014-07-15 14:57 ` [Bug c/61812] gcc ICE incorrectly " dhowells at redhat dot com
@ 2014-07-15 15:51 ` schwab@linux-m68k.org
  2014-07-15 16:37 ` dhowells at redhat dot com
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: schwab@linux-m68k.org @ 2014-07-15 15:51 UTC (permalink / raw)
  To: gcc-bugs

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

Andreas Schwab <schwab@linux-m68k.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #2 from Andreas Schwab <schwab@linux-m68k.org> ---
You must be using some distro patch.


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

* [Bug c/61812] gcc ICE incorrectly says "The bug is not reproducible, so it is likely a hardware or OS problem."
  2014-07-15 14:54 [Bug c/61812] New: gcc ICE says "The bug is not reproducible, so it is likely a hardware or OS problem." dhowells at redhat dot com
  2014-07-15 14:57 ` [Bug c/61812] gcc ICE incorrectly " dhowells at redhat dot com
  2014-07-15 15:51 ` schwab@linux-m68k.org
@ 2014-07-15 16:37 ` dhowells at redhat dot com
  2014-07-15 16:44 ` pinskia at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: dhowells at redhat dot com @ 2014-07-15 16:37 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from dhowells at redhat dot com <dhowells at redhat dot com> ---
Hmmm... It appears you're right.  The 'upstream tarball' in the Fedora gcc SRPM
seems already to be altered from what's upstream - even before the spec file
applies any patches to it.  I wonder where it is coming from.


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

* [Bug c/61812] gcc ICE incorrectly says "The bug is not reproducible, so it is likely a hardware or OS problem."
  2014-07-15 14:54 [Bug c/61812] New: gcc ICE says "The bug is not reproducible, so it is likely a hardware or OS problem." dhowells at redhat dot com
                   ` (2 preceding siblings ...)
  2014-07-15 16:37 ` dhowells at redhat dot com
@ 2014-07-15 16:44 ` pinskia at gcc dot gnu.org
  2014-07-15 17:42 ` dhowells at redhat dot com
  2014-07-15 18:02 ` jakub at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu.org @ 2014-07-15 16:44 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Also even though it might be a true gcc issue, it does not say it is a hardware
issue, the message says likely. This could also mean a gc or a memory issue
inside gcc. Except detecting that vs a memory issue is much harder.


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

* [Bug c/61812] gcc ICE incorrectly says "The bug is not reproducible, so it is likely a hardware or OS problem."
  2014-07-15 14:54 [Bug c/61812] New: gcc ICE says "The bug is not reproducible, so it is likely a hardware or OS problem." dhowells at redhat dot com
                   ` (3 preceding siblings ...)
  2014-07-15 16:44 ` pinskia at gcc dot gnu.org
@ 2014-07-15 17:42 ` dhowells at redhat dot com
  2014-07-15 18:02 ` jakub at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: dhowells at redhat dot com @ 2014-07-15 17:42 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from dhowells at redhat dot com <dhowells at redhat dot com> ---
(In reply to Andrew Pinski from comment #4)
> Also even though it might be a true gcc issue, it does not say it is a
> hardware issue, the message says likely. This could also mean a gc or a
> memory issue inside gcc. Except detecting that vs a memory issue is much
> harder.

It's a bug with the code on the redhat/ branch that generates this message. 
The problem is that when it detects an ICE, the gcc driver runs the cc1 binary
twice more and compares the output - but the output contains a userspace
pointer from within gcc itself, eg:

            (call (mem:QI (symbol_ref:SI ("abort") [flags 0x41] <function_decl 
             0x7f5784e05d00 abort>) [0 __builtin_abort S1 A8])


and this may legitimately differ due to the kernel mapping things in different
places during execve() and mmap().


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

* [Bug c/61812] gcc ICE incorrectly says "The bug is not reproducible, so it is likely a hardware or OS problem."
  2014-07-15 14:54 [Bug c/61812] New: gcc ICE says "The bug is not reproducible, so it is likely a hardware or OS problem." dhowells at redhat dot com
                   ` (4 preceding siblings ...)
  2014-07-15 17:42 ` dhowells at redhat dot com
@ 2014-07-15 18:02 ` jakub at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-07-15 18:02 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
This is with the original version of the
http://gcc.gnu.org/ml/gcc-patches/2014-07/msg00819.html
As discussed on IRC, the issue is that the RTL includes host address in the
stderr output, which due to stack randomization differs in between runs.

Supposedly either we should append -fdump-noaddr option to cc1/cc1plus when we
retry, or turn off address space randomization for the retries (through
personality syscall on Linux).


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

end of thread, other threads:[~2014-07-15 18:02 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-15 14:54 [Bug c/61812] New: gcc ICE says "The bug is not reproducible, so it is likely a hardware or OS problem." dhowells at redhat dot com
2014-07-15 14:57 ` [Bug c/61812] gcc ICE incorrectly " dhowells at redhat dot com
2014-07-15 15:51 ` schwab@linux-m68k.org
2014-07-15 16:37 ` dhowells at redhat dot com
2014-07-15 16:44 ` pinskia at gcc dot gnu.org
2014-07-15 17:42 ` dhowells at redhat dot com
2014-07-15 18:02 ` jakub 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).