public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c/66345] New: internal compiler error: Segmentation fault -- raidctl.c 'do_meter' @ 2015-05-30 17:30 drakain at gmail dot com 2015-05-30 17:33 ` [Bug c/66345] " drakain at gmail dot com ` (8 more replies) 0 siblings, 9 replies; 10+ messages in thread From: drakain at gmail dot com @ 2015-05-30 17:30 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66345 Bug ID: 66345 Summary: internal compiler error: Segmentation fault -- raidctl.c 'do_meter' Product: gcc Version: 5.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: drakain at gmail dot com Target Milestone: --- When building rumpctrl https://github.com/rumpkernel/rumpctrl an internal compiler error is encountered. Attached file shows output. My linux distro is Arch Linux.vim Project build steps: 1. Clone repo 2. ./buildnb.sh $ gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/5.1.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: /build/gcc/src/gcc-5-20150519/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --enable-libmpx --with-system-zlib --with-isl --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu --enable-gnu-indirect-function --disable-multilib --disable-werror --enable-checking=release --with-default-libstdcxx-abi=c++98 Thread model: posix gcc version 5.1.0 (GCC) Note: the build is successful with clang 3.6.1 ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c/66345] internal compiler error: Segmentation fault -- raidctl.c 'do_meter' 2015-05-30 17:30 [Bug c/66345] New: internal compiler error: Segmentation fault -- raidctl.c 'do_meter' drakain at gmail dot com @ 2015-05-30 17:33 ` drakain at gmail dot com 2015-05-30 17:42 ` trippels at gcc dot gnu.org ` (7 subsequent siblings) 8 siblings, 0 replies; 10+ messages in thread From: drakain at gmail dot com @ 2015-05-30 17:33 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66345 --- Comment #1 from Brian Graham <drakain at gmail dot com> --- Created attachment 35654 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35654&action=edit Truncated build output. ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c/66345] internal compiler error: Segmentation fault -- raidctl.c 'do_meter' 2015-05-30 17:30 [Bug c/66345] New: internal compiler error: Segmentation fault -- raidctl.c 'do_meter' drakain at gmail dot com 2015-05-30 17:33 ` [Bug c/66345] " drakain at gmail dot com @ 2015-05-30 17:42 ` trippels at gcc dot gnu.org 2015-05-30 17:49 ` drakain at gmail dot com ` (6 subsequent siblings) 8 siblings, 0 replies; 10+ messages in thread From: trippels at gcc dot gnu.org @ 2015-05-30 17:42 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66345 Markus Trippelsdorf <trippels at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |WAITING Last reconfirmed| |2015-05-30 CC| |trippels at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #2 from Markus Trippelsdorf <trippels at gcc dot gnu.org> --- Please attach a preprocessed testcase as per http://gcc.gnu.org/bugs/. ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c/66345] internal compiler error: Segmentation fault -- raidctl.c 'do_meter' 2015-05-30 17:30 [Bug c/66345] New: internal compiler error: Segmentation fault -- raidctl.c 'do_meter' drakain at gmail dot com 2015-05-30 17:33 ` [Bug c/66345] " drakain at gmail dot com 2015-05-30 17:42 ` trippels at gcc dot gnu.org @ 2015-05-30 17:49 ` drakain at gmail dot com 2015-05-30 18:03 ` [Bug middle-end/66345] [5/6 Regression] internal compiler error: Segmentation fault trippels at gcc dot gnu.org ` (5 subsequent siblings) 8 siblings, 0 replies; 10+ messages in thread From: drakain at gmail dot com @ 2015-05-30 17:49 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66345 --- Comment #3 from Brian Graham <drakain at gmail dot com> --- Created attachment 35655 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35655&action=edit Preprocessed file ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/66345] [5/6 Regression] internal compiler error: Segmentation fault 2015-05-30 17:30 [Bug c/66345] New: internal compiler error: Segmentation fault -- raidctl.c 'do_meter' drakain at gmail dot com ` (2 preceding siblings ...) 2015-05-30 17:49 ` drakain at gmail dot com @ 2015-05-30 18:03 ` trippels at gcc dot gnu.org 2015-05-31 0:56 ` hjl.tools at gmail dot com ` (4 subsequent siblings) 8 siblings, 0 replies; 10+ messages in thread From: trippels at gcc dot gnu.org @ 2015-05-30 18:03 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66345 Markus Trippelsdorf <trippels at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |NEW Component|c |middle-end Known to work| |4.8.4, 4.9.2 Summary|internal compiler error: |[5/6 Regression] internal |Segmentation fault -- |compiler error: |raidctl.c 'do_meter' |Segmentation fault Known to fail| |5.0, 6.0 --- Comment #4 from Markus Trippelsdorf <trippels at gcc dot gnu.org> --- markus@x4 tmp % cat raidctl.i extern int snprintf(char *, unsigned long, const char *, ...); const char a[] = ""; int b; void get_bar () { snprintf (0, 0, "%s", &a[b]); } markus@x4 tmp % gcc -c -O2 raidctl.i raidctl.i: In function ‘get_bar’: raidctl.i:5:1: internal compiler error: tree check: expected integer_cst, have negate_expr in decompose, at tree.h:4929 get_bar () { snprintf (0, 0, "%s", &a[b]); } ^ 0xd3447c tree_check_failed(tree_node const*, char const*, int, char const*, ...) ../../gcc/gcc/tree.c:9352 0x58db55 tree_check(tree_node const*, char const*, int, char const*, tree_code) ../../gcc/gcc/tree.h:3113 0x58db55 wi::int_traits<tree_node const*>::decompose(long*, unsigned int, tree_node const*) ../../gcc/gcc/tree.h:4929 0xd39d2a wi::int_traits<tree_node const*>::decompose(long*, unsigned int, tree_node const*) ../../gcc/gcc/tree.h:3060 0xd39d2a wide_int_ref_storage<false>::wide_int_ref_storage<tree_node const*>(tree_node const* const&, unsigned int) ../../gcc/gcc/wide-int.h:957 0xd39d2a generic_wide_int<wide_int_ref_storage<false> >::generic_wide_int<tree_node const*>(tree_node const* const&, unsigned int) ../../gcc/gcc/wide-int.h:733 0xd39d2a bool wi::eq_p<tree_node const*, int>(tree_node const* const&, int const&) ../../gcc/gcc/wide-int.h:1715 0xd39d2a tree_int_cst_sgn(tree_node const*) ../../gcc/gcc/tree.c:7239 0xd3a95e compare_tree_int(tree_node const*, unsigned long) ../../gcc/gcc/tree.c:7448 0x85e27c gimple_fold_builtin_snprintf ../../gcc/gcc/gimple-fold.c:2543 0x85e27c gimple_fold_builtin ../../gcc/gcc/gimple-fold.c:2954 0x8604b0 gimple_fold_call ../../gcc/gcc/gimple-fold.c:3182 0x8604b0 fold_stmt_1 ../../gcc/gcc/gimple-fold.c:3677 0xbf86b7 execute ../../gcc/gcc/tree-ssa-forwprop.c:2350 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <http://gcc.gnu.org/bugs.html> for instructions. >From gcc-bugs-return-487632-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat May 30 18:56:19 2015 Return-Path: <gcc-bugs-return-487632-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org> Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 39511 invoked by alias); 30 May 2015 18:56:19 -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 39445 invoked by uid 48); 30 May 2015 18:56:16 -0000 From: "danglin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug gcov-profile/66319] [6 Regression] gcov-tool.c:84:65: error: invalid conversion from 'int (*)(const c har*, const stat*, int, FTW*)' to 'int (*)(const char*, const stat*, int, FTW)' Date: Sat, 30 May 2015 18:56:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: gcov-profile X-Bugzilla-Version: 6.0 X-Bugzilla-Keywords: build X-Bugzilla-Severity: normal X-Bugzilla-Who: danglin at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: <bug-66319-4-dEPrTaPla9@http.gcc.gnu.org/bugzilla/> In-Reply-To: <bug-66319-4@http.gcc.gnu.org/bugzilla/> References: <bug-66319-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-05/txt/msg02472.txt.bz2 Content-length: 758 https://gcc.gnu.org/bugzilla/show_bug.cgi?idf319 --- Comment #3 from John David Anglin <danglin at gcc dot gnu.org> --- _HPUX_SOURCE is predefined for c++. This results in _INCLUDE_XOPEN_SOURCE_EXTENDED being defined but _XOPEN_SOURCE_EXTENDED is not predefined (see hunk in comment #1). This behavior dates back to this patch: https://gcc.gnu.org/ml/gcc-patches/2005-05/msg00589.html The HP-UX "ftw.h" header appears to be inconsistent in its use of the two defines, but I don't know the history. It seems _XOPEN_SOURCE and _XOPEN_SOURCE_EXTENDED need to be predefined when _HPUX_SOURCE is predefined for consistency with current standards. This will happen with current hpux compilers as long as flag_iso is not set, so I think gnu++98 will work. ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/66345] [5/6 Regression] internal compiler error: Segmentation fault 2015-05-30 17:30 [Bug c/66345] New: internal compiler error: Segmentation fault -- raidctl.c 'do_meter' drakain at gmail dot com ` (3 preceding siblings ...) 2015-05-30 18:03 ` [Bug middle-end/66345] [5/6 Regression] internal compiler error: Segmentation fault trippels at gcc dot gnu.org @ 2015-05-31 0:56 ` hjl.tools at gmail dot com 2015-05-31 6:50 ` mpolacek at gcc dot gnu.org ` (3 subsequent siblings) 8 siblings, 0 replies; 10+ messages in thread From: hjl.tools at gmail dot com @ 2015-05-31 0:56 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66345 H.J. Lu <hjl.tools at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rguenther at suse dot de Target Milestone|--- |5.2 --- Comment #5 from H.J. Lu <hjl.tools at gmail dot com> --- It was caused by r214574. ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/66345] [5/6 Regression] internal compiler error: Segmentation fault 2015-05-30 17:30 [Bug c/66345] New: internal compiler error: Segmentation fault -- raidctl.c 'do_meter' drakain at gmail dot com ` (4 preceding siblings ...) 2015-05-31 0:56 ` hjl.tools at gmail dot com @ 2015-05-31 6:50 ` mpolacek at gcc dot gnu.org 2015-06-02 9:14 ` mpolacek at gcc dot gnu.org ` (2 subsequent siblings) 8 siblings, 0 replies; 10+ messages in thread From: mpolacek at gcc dot gnu.org @ 2015-05-31 6:50 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66345 Marek Polacek <mpolacek at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |mpolacek at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org --- Comment #6 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Testing a fix. ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/66345] [5/6 Regression] internal compiler error: Segmentation fault 2015-05-30 17:30 [Bug c/66345] New: internal compiler error: Segmentation fault -- raidctl.c 'do_meter' drakain at gmail dot com ` (5 preceding siblings ...) 2015-05-31 6:50 ` mpolacek at gcc dot gnu.org @ 2015-06-02 9:14 ` mpolacek at gcc dot gnu.org 2015-06-02 9:18 ` mpolacek at gcc dot gnu.org 2015-06-02 9:19 ` mpolacek at gcc dot gnu.org 8 siblings, 0 replies; 10+ messages in thread From: mpolacek at gcc dot gnu.org @ 2015-06-02 9:14 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66345 --- Comment #7 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Author: mpolacek Date: Tue Jun 2 09:13:29 2015 New Revision: 224016 URL: https://gcc.gnu.org/viewcvs?rev=224016&root=gcc&view=rev Log: PR middle-end/66345 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if get_maxval_strlen does not produce an INTEGER_CST. * gcc.dg/torture/pr66345.c: New test. Added: trunk/gcc/testsuite/gcc.dg/torture/pr66345.c Modified: trunk/gcc/ChangeLog trunk/gcc/gimple-fold.c trunk/gcc/testsuite/ChangeLog ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/66345] [5/6 Regression] internal compiler error: Segmentation fault 2015-05-30 17:30 [Bug c/66345] New: internal compiler error: Segmentation fault -- raidctl.c 'do_meter' drakain at gmail dot com ` (6 preceding siblings ...) 2015-06-02 9:14 ` mpolacek at gcc dot gnu.org @ 2015-06-02 9:18 ` mpolacek at gcc dot gnu.org 2015-06-02 9:19 ` mpolacek at gcc dot gnu.org 8 siblings, 0 replies; 10+ messages in thread From: mpolacek at gcc dot gnu.org @ 2015-06-02 9:18 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66345 --- Comment #8 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Author: mpolacek Date: Tue Jun 2 09:17:49 2015 New Revision: 224017 URL: https://gcc.gnu.org/viewcvs?rev=224017&root=gcc&view=rev Log: PR middle-end/66345 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if get_maxval_strlen does not produce an INTEGER_CST. * gcc.dg/torture/pr66345.c: New test. Added: branches/gcc-5-branch/gcc/testsuite/gcc.dg/torture/pr66345.c Modified: branches/gcc-5-branch/gcc/ChangeLog branches/gcc-5-branch/gcc/gimple-fold.c branches/gcc-5-branch/gcc/testsuite/ChangeLog ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/66345] [5/6 Regression] internal compiler error: Segmentation fault 2015-05-30 17:30 [Bug c/66345] New: internal compiler error: Segmentation fault -- raidctl.c 'do_meter' drakain at gmail dot com ` (7 preceding siblings ...) 2015-06-02 9:18 ` mpolacek at gcc dot gnu.org @ 2015-06-02 9:19 ` mpolacek at gcc dot gnu.org 8 siblings, 0 replies; 10+ messages in thread From: mpolacek at gcc dot gnu.org @ 2015-06-02 9:19 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66345 Marek Polacek <mpolacek at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #9 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Fixed. ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2015-06-02 9:19 UTC | newest] Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2015-05-30 17:30 [Bug c/66345] New: internal compiler error: Segmentation fault -- raidctl.c 'do_meter' drakain at gmail dot com 2015-05-30 17:33 ` [Bug c/66345] " drakain at gmail dot com 2015-05-30 17:42 ` trippels at gcc dot gnu.org 2015-05-30 17:49 ` drakain at gmail dot com 2015-05-30 18:03 ` [Bug middle-end/66345] [5/6 Regression] internal compiler error: Segmentation fault trippels at gcc dot gnu.org 2015-05-31 0:56 ` hjl.tools at gmail dot com 2015-05-31 6:50 ` mpolacek at gcc dot gnu.org 2015-06-02 9:14 ` mpolacek at gcc dot gnu.org 2015-06-02 9:18 ` mpolacek at gcc dot gnu.org 2015-06-02 9:19 ` mpolacek 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).