public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug pch/63319] New: [5 Regression] ICE: Segmentation fault building qt5 with pch
@ 2014-09-21 12:23 trippels at gcc dot gnu.org
  2014-09-22 10:21 ` [Bug pch/63319] " rguenth at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: trippels at gcc dot gnu.org @ 2014-09-21 12:23 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 63319
           Summary: [5 Regression] ICE: Segmentation fault building qt5
                    with pch
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: pch
          Assignee: unassigned at gcc dot gnu.org
          Reporter: trippels at gcc dot gnu.org

markus@x4 corelib % /var/tmp/gcc_test/usr/local/bin/g++ -c -march=amdfam10 -O2
-g -fvisibility=hidden -fvisibility-inlines-hidden -std=c++0x -W -fPIC qhash.ii
tools/qhash.cpp: In function ‘unsigned int _mm_crc32_u8(unsigned int, unsigned
char)’:
tools/qhash.cpp:803:1: internal compiler error: Segmentation fault
 }
 ^
0xbbee0f crash_signal
        ../../gcc/gcc/toplev.c:340
0x72516d c_tree_chain_next
        ../../gcc/gcc/c-family/c-common.h:1230
0x72516d gt_ggc_mx_lang_tree_node(void*)
        ./gt-cp-tree.h:159
0x9b44e5 ggc_mark_root_tab
        ../../gcc/gcc/ggc-common.c:133
0x9b49a0 ggc_mark_roots()
        ../../gcc/gcc/ggc-common.c:152
0x7e72f4 ggc_collect()
        ../../gcc/gcc/ggc-page.c:2173
Please submit a full bug report,
with preprocessed source if appropriate.

preprocessed source has at the beginning:
#pragma GCC pch_preprocess "./.pch/Qt5Core.gch/c++"
That file size is 63Mb.

gdb shows:
process 25582 is executing new program:
/var/tmp/gcc_test/usr/local/libexec/gcc/x86_64-unknown-linux-gnu/5.0.0/cc1plus
tools/qhash.cpp: In function ‘unsigned int _mm_crc32_u8(unsigned int, unsigned
char)’:
tools/qhash.cpp:803:1: internal compiler error: in
tree_node_structure_for_code, at tree.c:407
 }
 ^
0xdf8c3b tree_node_structure_for_code
        ../../gcc/gcc/tree.c:407
0xdf8c3b tree_node_structure(tree_node const*)
        ../../gcc/gcc/tree.c:3271
0x7254ff gt_ggc_mx_lang_tree_node(void*)
        ./gt-cp-tree.h:165
0x9b44e5 ggc_mark_root_tab
        ../../gcc/gcc/ggc-common.c:133
0x9b49a0 ggc_mark_roots()
        ../../gcc/gcc/ggc-common.c:152
0x7e72f4 ggc_collect()
        ../../gcc/gcc/ggc-page.c:2173
Please submit a full bug report,
with preprocessed source if appropriate.

valgrind shows:
==25604== Invalid read of size 1
==25604==    at 0x72516D: c_tree_chain_next (c-common.h:1230)
==25604==    by 0x72516D: gt_ggc_mx_lang_tree_node(void*) (gt-cp-tree.h:159)
==25604==    by 0x9B44E5: ggc_mark_root_tab(ggc_root_tab const*)
(ggc-common.c:133)
==25604==    by 0x9B49A0: ggc_mark_roots() (ggc-common.c:152)
==25604==    by 0x7E72F4: ggc_collect() (ggc-page.c:2173)
==25604==    by 0xB0728A: execute_one_pass(opt_pass*) (passes.c:2191)
==25604==    by 0xB07715: execute_pass_list_1(opt_pass*) (passes.c:2203)
==25604==    by 0xB07768: execute_pass_list(function*, opt_pass*)
(passes.c:2214)
==25604==    by 0xB05F84: do_per_function_toporder(void (*)(function*, void*),
void*) (passes.c:1521)
==25604==    by 0xB07D46: execute_ipa_pass_list(opt_pass*) (passes.c:2548)
==25604==    by 0x866317: ipa_passes (cgraphunit.c:2017)
==25604==    by 0x866317: symbol_table::compile() (cgraphunit.c:2136)
==25604==    by 0x8680F7: symbol_table::finalize_compilation_unit()
(cgraphunit.c:2288)
==25604==    by 0x650BBA: cp_write_global_declarations() (decl2.c:4666)
==25604==  Address 0x1c10018 is not stack'd, malloc'd or (recently) free'd
==25604== 
tools/qhash.cpp: In function ‘unsigned int _mm_crc32_u8(unsigned int, unsigned
char)’:
tools/qhash.cpp:803:1: internal compiler error: Segmentation fault

Without "-g" the issue goes away.
Not sure how to reduce this issue further. Hints welcome.
>From gcc-bugs-return-462191-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Sep 21 13:07:16 2014
Return-Path: <gcc-bugs-return-462191-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 4354 invoked by alias); 21 Sep 2014 13:07:15 -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 4290 invoked by uid 48); 21 Sep 2014 13:07:08 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/62318] optimization of string searches using Nigel Horspool's Boyer-Moore-Horpool algorithm
Date: Sun, 21 Sep 2014 13:07:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 4.9.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: redi at gcc dot gnu.org
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:
Message-ID: <bug-62318-4-sLlSrPWbXG@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-62318-4@http.gcc.gnu.org/bugzilla/>
References: <bug-62318-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: 2014-09/txt/msg02025.txt.bz2
Content-length: 749

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

--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I don't understand your concern, you don't need anyone's permission to use a
published algorithm. A specific implementation of the algorithm would be
covered by copyright, but not the abstract algorithm.

If you want to contribute code to GCC then there are legal prerequisites (see
https://gcc.gnu.org/contribute.html) but that's not to do with permission to
use an algorithm. If you wanted to contribute an implementation you would need
to meet those prerequisites. Glibc has similar requirements.

Otherwise just be happy that glibc already does better than a linear search and
libstdc++ will be implementing std::search soon.


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

* [Bug pch/63319] [5 Regression] ICE: Segmentation fault building qt5 with pch
  2014-09-21 12:23 [Bug pch/63319] New: [5 Regression] ICE: Segmentation fault building qt5 with pch trippels at gcc dot gnu.org
@ 2014-09-22 10:21 ` rguenth at gcc dot gnu.org
  2014-12-01 12:35 ` rguenth at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-09-22 10:21 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |5.0


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

* [Bug pch/63319] [5 Regression] ICE: Segmentation fault building qt5 with pch
  2014-09-21 12:23 [Bug pch/63319] New: [5 Regression] ICE: Segmentation fault building qt5 with pch trippels at gcc dot gnu.org
  2014-09-22 10:21 ` [Bug pch/63319] " rguenth at gcc dot gnu.org
@ 2014-12-01 12:35 ` rguenth at gcc dot gnu.org
  2015-01-30 13:28 ` jakub at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-12-01 12:35 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2014-12-01
     Ever confirmed|0                           |1


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

* [Bug pch/63319] [5 Regression] ICE: Segmentation fault building qt5 with pch
  2014-09-21 12:23 [Bug pch/63319] New: [5 Regression] ICE: Segmentation fault building qt5 with pch trippels at gcc dot gnu.org
  2014-09-22 10:21 ` [Bug pch/63319] " rguenth at gcc dot gnu.org
  2014-12-01 12:35 ` rguenth at gcc dot gnu.org
@ 2015-01-30 13:28 ` jakub at gcc dot gnu.org
  2015-01-30 13:31 ` jakub at gcc dot gnu.org
  2015-02-08  8:27 ` trippels at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-01-30 13:28 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

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

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Can you still reproduce it?


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

* [Bug pch/63319] [5 Regression] ICE: Segmentation fault building qt5 with pch
  2014-09-21 12:23 [Bug pch/63319] New: [5 Regression] ICE: Segmentation fault building qt5 with pch trippels at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2015-01-30 13:28 ` jakub at gcc dot gnu.org
@ 2015-01-30 13:31 ` jakub at gcc dot gnu.org
  2015-02-08  8:27 ` trippels at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-01-30 13:31 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
And if yes, can it be also reproduced with building the pch file with
-save-temps?  Then perhaps you could attach the preprocessed source from which
the pch is compiled, and tweak qhash.cpp to preprocess it too, but remove the
pch header part from it and replace with include, then preprocess again.


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

* [Bug pch/63319] [5 Regression] ICE: Segmentation fault building qt5 with pch
  2014-09-21 12:23 [Bug pch/63319] New: [5 Regression] ICE: Segmentation fault building qt5 with pch trippels at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2015-01-30 13:31 ` jakub at gcc dot gnu.org
@ 2015-02-08  8:27 ` trippels at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: trippels at gcc dot gnu.org @ 2015-02-08  8:27 UTC (permalink / raw)
  To: gcc-bugs

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

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|---                         |WORKSFORME

--- Comment #4 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
Seems to work now on ppc64 and x86_64. Closing.


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

end of thread, other threads:[~2015-02-08  8:27 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-21 12:23 [Bug pch/63319] New: [5 Regression] ICE: Segmentation fault building qt5 with pch trippels at gcc dot gnu.org
2014-09-22 10:21 ` [Bug pch/63319] " rguenth at gcc dot gnu.org
2014-12-01 12:35 ` rguenth at gcc dot gnu.org
2015-01-30 13:28 ` jakub at gcc dot gnu.org
2015-01-30 13:31 ` jakub at gcc dot gnu.org
2015-02-08  8:27 ` trippels 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).