public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/58306] New: error: corrupted value profile: value profile counter (X out of Y) inconsistent with basic-block count
@ 2013-09-03 11:45 t.artem at mailcity dot com
  2013-09-03 12:18 ` [Bug c++/58306] " paolo.carlini at oracle dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: t.artem at mailcity dot com @ 2013-09-03 11:45 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58306

            Bug ID: 58306
           Summary: error: corrupted value profile: value profile counter
                    (X out of Y) inconsistent with basic-block count
           Product: gcc
           Version: 4.7.3
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: t.artem at mailcity dot com

Created attachment 30744
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30744&action=edit
Sources + profile info

blake2s.cpp: In function ‘void blake2s_update(blake2s_state*, const byte*,
size_t)’:
blake2s.cpp:133:40: error: corrupted value profile: value profile counter
(11354724 out of 11329053) inconsistent with basic-block count (9600416)
blake2s.cpp:157:49: error: corrupted value profile: value profile counter
(11204032 out of 11277067) inconsistent with basic-block count (10940610)
make: *** [blake2s.o] Error 1
make: *** Waiting for unfinished jobs....

CPU: Intel Core i5 2500
GCC: 4.7.3
ARC: i686

Makefile is included (just run make to see the error).
>From gcc-bugs-return-428896-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 03 12:15:07 2013
Return-Path: <gcc-bugs-return-428896-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 32155 invoked by alias); 3 Sep 2013 12:15:07 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 32050 invoked by uid 55); 3 Sep 2013 12:15:02 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/58010] [4.8 Regression] ICE in vect_create_epilog_for_reduction, at tree-vect-loop.c:4378
Date: Tue, 03 Sep 2013 12:15:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 4.8.2
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-58010-4-JAUl5EvIwF@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-58010-4@http.gcc.gnu.org/bugzilla/>
References: <bug-58010-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2013-09/txt/msg00136.txt.bz2
Content-length: 783

http://gcc.gnu.org/bugzilla/show_bug.cgi?idX010

--- Comment #9 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Tue Sep  3 12:14:58 2013
New Revision: 202215

URL: http://gcc.gnu.org/viewcvs?rev 2215&root=gcc&view=rev
Log:
2013-09-03  Richard Biener  <rguenther@suse.de>

    Backport from mainline
    2013-08-30  Richard Biener  <rguenther@suse.de>

    PR tree-optimization/58010
    * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
    assert that we have a loop-closed PHI.

    * gcc.dg/pr58010.c: New testcase.

Added:
    branches/gcc-4_8-branch/gcc/testsuite/gcc.dg/pr58010.c
Modified:
    branches/gcc-4_8-branch/gcc/ChangeLog
    branches/gcc-4_8-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_8-branch/gcc/tree-vect-loop.c


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

* [Bug c++/58306] error: corrupted value profile: value profile counter (X out of Y) inconsistent with basic-block count
  2013-09-03 11:45 [Bug c++/58306] New: error: corrupted value profile: value profile counter (X out of Y) inconsistent with basic-block count t.artem at mailcity dot com
@ 2013-09-03 12:18 ` paolo.carlini at oracle dot com
  2013-09-03 12:37 ` t.artem at mailcity dot com
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-09-03 12:18 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58306

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|major                       |normal

--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Doesn't look like a C++ front-end issue.


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

* [Bug c++/58306] error: corrupted value profile: value profile counter (X out of Y) inconsistent with basic-block count
  2013-09-03 11:45 [Bug c++/58306] New: error: corrupted value profile: value profile counter (X out of Y) inconsistent with basic-block count t.artem at mailcity dot com
  2013-09-03 12:18 ` [Bug c++/58306] " paolo.carlini at oracle dot com
@ 2013-09-03 12:37 ` t.artem at mailcity dot com
  2015-02-16 16:22 ` [Bug middle-end/58306] " t.artem at mailcity dot com
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: t.artem at mailcity dot com @ 2013-09-03 12:37 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58306

--- Comment #2 from Artem S. Tashkinov <t.artem at mailcity dot com> ---
(In reply to Paolo Carlini from comment #1)
> Doesn't look like a C++ front-end issue.

Surely, but I had to choose something not knowing what to choose.


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

* [Bug middle-end/58306] error: corrupted value profile: value profile counter (X out of Y) inconsistent with basic-block count
  2013-09-03 11:45 [Bug c++/58306] New: error: corrupted value profile: value profile counter (X out of Y) inconsistent with basic-block count t.artem at mailcity dot com
  2013-09-03 12:18 ` [Bug c++/58306] " paolo.carlini at oracle dot com
  2013-09-03 12:37 ` t.artem at mailcity dot com
@ 2015-02-16 16:22 ` t.artem at mailcity dot com
  2015-02-16 17:05 ` t.artem at mailcity dot com
  2015-04-18 19:39 ` t.artem at mailcity dot com
  4 siblings, 0 replies; 6+ messages in thread
From: t.artem at mailcity dot com @ 2015-02-16 16:22 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Artem S. Tashkinov <t.artem at mailcity dot com> ---
This bug affects GCC 4.5.4 as well. I guess the bug is no longer relevant since
both these GCC releases are deprecated and unsupported.


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

* [Bug middle-end/58306] error: corrupted value profile: value profile counter (X out of Y) inconsistent with basic-block count
  2013-09-03 11:45 [Bug c++/58306] New: error: corrupted value profile: value profile counter (X out of Y) inconsistent with basic-block count t.artem at mailcity dot com
                   ` (2 preceding siblings ...)
  2015-02-16 16:22 ` [Bug middle-end/58306] " t.artem at mailcity dot com
@ 2015-02-16 17:05 ` t.artem at mailcity dot com
  2015-04-18 19:39 ` t.artem at mailcity dot com
  4 siblings, 0 replies; 6+ messages in thread
From: t.artem at mailcity dot com @ 2015-02-16 17:05 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Artem S. Tashkinov <t.artem at mailcity dot com> ---
Created attachment 34783
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34783&action=edit
Sources and Makefile (run make to reproduce)

This bug affects GCC 4.9.2 too! (I'm on i686):

blake2s.cpp: In function ‘void blake2s_update(blake2s_state*, const byte*,
size_t)’:
blake2s.cpp:138:40: error: corrupted value profile: value profile counter
(11286702 out of 11276532) inconsistent with basic-block count (9452310)
       memcpy( S->buf + left, in, fill ); // Fill buffer
                                        ^
blake2s.cpp:162:49: error: corrupted value profile: value profile counter
(11504160 out of 11557346) inconsistent with basic-block count (11155414)
       memcpy( S->buf + left, in, (size_t)inlen );
                                                 ^
make: *** [blake2s.o] Error 1
>From gcc-bugs-return-477467-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 16 17:06:29 2015
Return-Path: <gcc-bugs-return-477467-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 8278 invoked by alias); 16 Feb 2015 17:06:29 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 8228 invoked by uid 48); 16 Feb 2015 17:06:25 -0000
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/32219] optimizer causes wrong code in pic/hidden/weak symbol checking.
Date: Mon, 16 Feb 2015 17:06:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 4.3.0
X-Bugzilla-Keywords: patch
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hjl.tools at gmail dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-32219-4-x9WHjGuaiA@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-32219-4@http.gcc.gnu.org/bugzilla/>
References: <bug-32219-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-02/txt/msg01800.txt.bz2
Content-length: 885

https://gcc.gnu.org/bugzilla/show_bug.cgi?id2219

--- Comment #19 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Pat Haugen from comment #18)
> The following error started with r220674 on powerpc64-linux when trying to
> build 447.dealII from CPU2006 with -m64.
>
> /usr/bin/ld: exceptions.o: In function `ExceptionBase::what() const':
> exceptions.cc:(.text+0xda0): unresolvable R_PPC64_TOC16_HA against
> `std::__cxx11::basic_string<char, std::char_traits<char>,
> std::allocator<char> >::~basic_string()@@GLIBCXX_3.4.21'
> /usr/bin/ld: exceptions.cc:(.text+0xdac): unresolvable R_PPC64_TOC16_LO
> against `std::__cxx11::basic_string<char, std::char_traits<char>,
> std::allocator<char> >::~basic_string()@@GLIBCXX_3.4.21'
> /usr/bin/ld: final link failed: Nonrepresentable section on output
> collect2: error: ld returned 1 exit status

Can you try fix in PR 65074?


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

* [Bug middle-end/58306] error: corrupted value profile: value profile counter (X out of Y) inconsistent with basic-block count
  2013-09-03 11:45 [Bug c++/58306] New: error: corrupted value profile: value profile counter (X out of Y) inconsistent with basic-block count t.artem at mailcity dot com
                   ` (3 preceding siblings ...)
  2015-02-16 17:05 ` t.artem at mailcity dot com
@ 2015-04-18 19:39 ` t.artem at mailcity dot com
  4 siblings, 0 replies; 6+ messages in thread
From: t.artem at mailcity dot com @ 2015-04-18 19:39 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="UTF-8", Size: 5353 bytes --]

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

--- Comment #5 from Artem S. Tashkinov <t.artem at mailcity dot com> ---
Created attachment 35355
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35355&action=edit
Sources and Makefile (run make to reproduce)

GCC 5.0.1 RC2 is also affected:

g++  -O3 -march=native -Wno-attributes -fno-tree-vectorize -fprofile-use
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c hash.cpp
blake2s.cpp: In function ‘void blake2s_update(blake2s_state*, const byte*,
size_t)’:
blake2s.cpp:138:40: error: corrupted value profile: value profile counter
(10976192 out of 10966245) inconsistent with basic-block count (10996457)
       memcpy( S->buf + left, in, fill ); // Fill buffer
                                        ^
blake2s.cpp:162:49: error: corrupted value profile: value profile counter
(10915050 out of 10973342) inconsistent with basic-block count (10932972)
       memcpy( S->buf + left, in, (size_t)inlen );
                                                 ^
make: *** [blake2s.o] Error 1
make: *** Waiting for unfinished jobs....
>From gcc-bugs-return-483988-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Apr 18 23:04:44 2015
Return-Path: <gcc-bugs-return-483988-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 90262 invoked by alias); 18 Apr 2015 23:04:44 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 90241 invoked by uid 48); 18 Apr 2015 23:04:40 -0000
From: "gang.chen.5i5j at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/65803] New: blackfin: internal compiler error: segment fault linux kernel
Date: Sat, 18 Apr 2015 23:04:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: gang.chen.5i5j at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter
Message-ID: <bug-65803-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-04/txt/msg01540.txt.bz2
Content-length: 2385

https://gcc.gnu.org/bugzilla/show_bug.cgi?ide803

            Bug ID: 65803
           Summary: blackfin: internal compiler error: segment fault linux
                    kernel
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gang.chen.5i5j at gmail dot com

The code:

  [root@localhost gcc]# cat lbalance.i
  struct a {
   short count;
  };

  struct reiserfs_de_head {
   unsigned short deh_location;
  } __attribute__ ((__packed__));

  void leaf_cut_from_buffer(struct a *ih, int from)
  {
   struct reiserfs_de_head *deh = (struct reiserfs_de_head *)ih;
   int i;

   for (i = ih->count - 1; i > from; i--)
    deh[i].deh_location--;

   for (i = 0; i < from; i++)
    deh[i].deh_location--;
  }

The error:

  [root@localhost gcc]# /upstream/build-gcc-blackfin/gcc/cc1 lbalance.i -Os
-fno-strict-overflow
  lbalance.i: In function 'leaf_cut_from_buffer':
  lbalance.i:19:1: internal compiler error: Segmentation fault
   }
   ^
  0xa54a9f crash_signal
        ../../gcc-blackfin/gcc/toplev.c:383
  0x77af8b INSN_UID
        ../../gcc-blackfin/gcc/rtl.h:1329
  0x77af8b insn_current_reference_address(rtx_insn*)
        ../../gcc-blackfin/gcc/final.c:686  0xd39604
insn_current_length(rtx_insn*)
        /upstream/build-gcc-blackfin/gcc/insn-attrtab.c:84
  0x77c12e shorten_branches(rtx_insn*)
        ../../gcc-blackfin/gcc/final.c:1478
  0x77c51f rest_of_handle_shorten_branches
        ../../gcc-blackfin/gcc/final.c:4580
  0x77c51f execute
        ../../gcc-blackfin/gcc/final.c:4609
  Please submit a full bug report,

The version:

  [root@localhost gcc]# /upstream/release-blackfin/bin/bfin-gchen-elf-gcc -v
  Using built-in specs.
  COLLECT_GCC=/upstream/release-blackfin/bin/bfin-gchen-elf-gcc

COLLECT_LTO_WRAPPER=/upstream/release-blackfin/libexec/gcc/bfin-gchen-elf/5.0.0/lto-wrapper
  Target: bfin-gchen-elf
  Configured with: ../gcc-blackfin/configure --target¿in-gchen-elf
--disable-nls --disable-threads --disable-shared --disable-libssp
--disable-libquadmath --disable-libgomp --disable-libatomic
--prefix=/upstream/release-blackfin --without-headers
target_alias¿in-gchen-elf --enable-languages=c,lto
  Thread model: single
  gcc version 5.0.0 20150401 (experimental) (GCC)


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

end of thread, other threads:[~2015-04-18 19:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-03 11:45 [Bug c++/58306] New: error: corrupted value profile: value profile counter (X out of Y) inconsistent with basic-block count t.artem at mailcity dot com
2013-09-03 12:18 ` [Bug c++/58306] " paolo.carlini at oracle dot com
2013-09-03 12:37 ` t.artem at mailcity dot com
2015-02-16 16:22 ` [Bug middle-end/58306] " t.artem at mailcity dot com
2015-02-16 17:05 ` t.artem at mailcity dot com
2015-04-18 19:39 ` t.artem at mailcity 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).