public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/65269] New: internal compiler error: Segmentation fault
@ 2015-03-01 22:10 hgkamath at hotmail dot com
  2015-03-01 22:15 ` [Bug c++/65269] " hgkamath at hotmail dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: hgkamath at hotmail dot com @ 2015-03-01 22:10 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 65269
           Summary: internal compiler error: Segmentation fault
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hgkamath at hotmail dot com

Created attachment 34914
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34914&action=edit
preprocessed_source a.cc

c++-concepts branch.
attached: preprocessed source a.cc 

date 20150227

Built gcc locally from 
https://bitbucket.org/Blzut3/c-concepts/src

Tried to build origin from
https://github.com/asutton/origin


 /vol/apps/conceptgcc/20150227/bin/g++ -std=c++1z ~/tmp/a.cc
/vol/apps/conceptgcc/build/or/origin/origin/core/concepts.test/difference_type.cpp:16:30:
internal compiler error: Segmentation fault
   using difference_type = int;
                              ^
0xc78d4f crash_signal
    ../../gcc/toplev.c:358
0x6fe5ae tree_check(tree_node*, char const*, int, char const*, tree_code)
    ../../gcc/tree.h:2750
0x6fe5ae cp_parser_alias_declaration
    ../../gcc/cp/parser.c:17053
0x709df5 cp_parser_member_declaration
    ../../gcc/cp/parser.c:21274
0x6eaf4b cp_parser_member_specification_opt
    ../../gcc/cp/parser.c:21181
0x6eaf4b cp_parser_class_specifier_1
    ../../gcc/cp/parser.c:20373
0x6ed800 cp_parser_class_specifier
    ../../gcc/cp/parser.c:20609
0x6ed800 cp_parser_type_specifier
    ../../gcc/cp/parser.c:15036
0x6ee975 cp_parser_decl_specifier_seq
    ../../gcc/cp/parser.c:11960
0x7084a9 cp_parser_simple_declaration
    ../../gcc/cp/parser.c:11539
0x708a53 cp_parser_block_declaration
    ../../gcc/cp/parser.c:11488
0x70e55b cp_parser_declaration
    ../../gcc/cp/parser.c:11384
0x70e86a cp_parser_declaration_seq_opt
    ../../gcc/cp/parser.c:11263
0x70eb87 cp_parser_translation_unit
    ../../gcc/cp/parser.c:4172
0x70eb87 c_parse_file()
    ../../gcc/cp/parser.c:33294
0x844de2 c_common_parse_file()
    ../../gcc/c-family/c-opts.c:1039
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.




template<typename T, typename U>
constexpr bool Has_difference_type()
{
  return origin::Same<origin::Difference_type<T>, U>();
}

struct S
{
  using difference_type = int;
};


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

* [Bug c++/65269] internal compiler error: Segmentation fault
  2015-03-01 22:10 [Bug c++/65269] New: internal compiler error: Segmentation fault hgkamath at hotmail dot com
@ 2015-03-01 22:15 ` hgkamath at hotmail dot com
  2015-03-09 13:41 ` andrew.n.sutton at gmail dot com
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: hgkamath at hotmail dot com @ 2015-03-01 22:15 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from GK <hgkamath at hotmail dot com> ---
 /vol/apps/conceptgcc/20150220/bin/g++ -v -save-temps -std=c++1z ~/tmp/a.cc 
Using built-in specs.
COLLECT_GCC=/vol/apps/conceptgcc/20150220/bin/gcc
COLLECT_LTO_WRAPPER=/vol002/tmp/20150220/bin/../libexec/gcc/x86_64-unknown-linux-gnu/5.0.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../configure --prefix=/vol/apps/conceptgcc/20150220
Thread model: posix
gcc version 5.0.0 20141112 (experimental) (GCC) 

COLLECT_GCC_OPTIONS='-v' '-save-temps' '-std=c++1z' '-mtune=generic'
'-march=x86-64'
 /vol002/tmp/20150220/bin/../libexec/gcc/x86_64-unknown-linux-gnu/5.0.0/cc1plus
-E -quiet -v -iprefix
/vol002/tmp/20150220/bin/../lib/gcc/x86_64-unknown-linux-gnu/5.0.0/
-D_GNU_SOURCE /root/tmp/a.cc -mtune=generic -march=x86-64 -std=c++1z
-fpch-preprocess -o a.ii
ignoring nonexistent directory
"/vol002/tmp/20150220/bin/../lib/gcc/x86_64-unknown-linux-gnu/5.0.0/../../../../x86_64-unknown-linux-gnu/include"
ignoring duplicate directory
"/vol002/tmp/20150220/bin/../lib/gcc/../../lib/gcc/x86_64-unknown-linux-gnu/5.0.0/../../../../include/c++/5.0.0"
ignoring duplicate directory
"/vol002/tmp/20150220/bin/../lib/gcc/../../lib/gcc/x86_64-unknown-linux-gnu/5.0.0/../../../../include/c++/5.0.0/x86_64-unknown-linux-gnu"
ignoring duplicate directory
"/vol002/tmp/20150220/bin/../lib/gcc/../../lib/gcc/x86_64-unknown-linux-gnu/5.0.0/../../../../include/c++/5.0.0/backward"
ignoring duplicate directory
"/vol002/tmp/20150220/bin/../lib/gcc/../../lib/gcc/x86_64-unknown-linux-gnu/5.0.0/include"
ignoring duplicate directory
"/vol002/tmp/20150220/bin/../lib/gcc/../../lib/gcc/x86_64-unknown-linux-gnu/5.0.0/include-fixed"
ignoring nonexistent directory
"/vol002/tmp/20150220/bin/../lib/gcc/../../lib/gcc/x86_64-unknown-linux-gnu/5.0.0/../../../../x86_64-unknown-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:

/vol002/tmp/20150220/bin/../lib/gcc/x86_64-unknown-linux-gnu/5.0.0/../../../../include/c++/5.0.0

/vol002/tmp/20150220/bin/../lib/gcc/x86_64-unknown-linux-gnu/5.0.0/../../../../include/c++/5.0.0/x86_64-unknown-linux-gnu

/vol002/tmp/20150220/bin/../lib/gcc/x86_64-unknown-linux-gnu/5.0.0/../../../../include/c++/5.0.0/backward
 /vol002/tmp/20150220/bin/../lib/gcc/x86_64-unknown-linux-gnu/5.0.0/include

/vol002/tmp/20150220/bin/../lib/gcc/x86_64-unknown-linux-gnu/5.0.0/include-fixed
 /usr/local/include
 /vol002/tmp/20150220/bin/../lib/gcc/../../include
 /usr/include
End of search list.
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-std=c++1z' '-mtune=generic'
'-march=x86-64'
 /vol002/tmp/20150220/bin/../libexec/gcc/x86_64-unknown-linux-gnu/5.0.0/cc1plus
-fpreprocessed a.ii -quiet -dumpbase a.cc -mtune=generic -march=x86-64 -auxbase
a -std=c++1z -version -o a.s
GNU C++ (GCC) version 5.0.0 20141112 (experimental) (x86_64-unknown-linux-gnu)
    compiled by GNU C version 5.0.0 20141112 (experimental), GMP version 6.0.0,
MPFR version 3.1.2, MPC version 1.0.2
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
GNU C++ (GCC) version 5.0.0 20141112 (experimental) (x86_64-unknown-linux-gnu)
    compiled by GNU C version 5.0.0 20141112 (experimental), GMP version 6.0.0,
MPFR version 3.1.2, MPC version 1.0.2
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: 6b5bd5dabb7b79c5e9237f5a3d7d0558
/vol/apps/conceptgcc/build/or/origin/origin/core/concepts.test/difference_type.cpp:16:30:
internal compiler error: Segmentation fault
   using difference_type = int;
                              ^
0xc78d4f crash_signal
    ../../gcc/toplev.c:358
0x6fe5ae tree_check(tree_node*, char const*, int, char const*, tree_code)
    ../../gcc/tree.h:2750
0x6fe5ae cp_parser_alias_declaration
    ../../gcc/cp/parser.c:17053
0x709df5 cp_parser_member_declaration
    ../../gcc/cp/parser.c:21274
0x6eaf4b cp_parser_member_specification_opt
    ../../gcc/cp/parser.c:21181
0x6eaf4b cp_parser_class_specifier_1
    ../../gcc/cp/parser.c:20373
0x6ed800 cp_parser_class_specifier
    ../../gcc/cp/parser.c:20609
0x6ed800 cp_parser_type_specifier
    ../../gcc/cp/parser.c:15036
0x6ee975 cp_parser_decl_specifier_seq
    ../../gcc/cp/parser.c:11960
0x7084a9 cp_parser_simple_declaration
    ../../gcc/cp/parser.c:11539
0x708a53 cp_parser_block_declaration
    ../../gcc/cp/parser.c:11488
0x70e55b cp_parser_declaration
    ../../gcc/cp/parser.c:11384
0x70e86a cp_parser_declaration_seq_opt
    ../../gcc/cp/parser.c:11263
0x70eb87 cp_parser_translation_unit
    ../../gcc/cp/parser.c:4172
0x70eb87 c_parse_file()
    ../../gcc/cp/parser.c:33294
0x844de2 c_common_parse_file()
    ../../gcc/c-family/c-opts.c:1039
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.


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

* [Bug c++/65269] internal compiler error: Segmentation fault
  2015-03-01 22:10 [Bug c++/65269] New: internal compiler error: Segmentation fault hgkamath at hotmail dot com
  2015-03-01 22:15 ` [Bug c++/65269] " hgkamath at hotmail dot com
@ 2015-03-09 13:41 ` andrew.n.sutton at gmail dot com
  2015-03-12 19:00 ` hgkamath at hotmail dot com
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: andrew.n.sutton at gmail dot com @ 2015-03-09 13:41 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Sutton <andrew.n.sutton at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrew.n.sutton at gmail dot com

--- Comment #2 from Andrew Sutton <andrew.n.sutton at gmail dot com> ---
This was caused by not checking that current_template_parms was valid during
when building constraints for the declaration.

This is was fixed in the last commit (221280).


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

* [Bug c++/65269] internal compiler error: Segmentation fault
  2015-03-01 22:10 [Bug c++/65269] New: internal compiler error: Segmentation fault hgkamath at hotmail dot com
  2015-03-01 22:15 ` [Bug c++/65269] " hgkamath at hotmail dot com
  2015-03-09 13:41 ` andrew.n.sutton at gmail dot com
@ 2015-03-12 19:00 ` hgkamath at hotmail dot com
  2015-03-12 20:38 ` andrew.n.sutton at gmail dot com
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: hgkamath at hotmail dot com @ 2015-03-12 19:00 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from GK <hgkamath at hotmail dot com> ---

built 
commit e90da6bc78cf84e8b11680171aba9a58abc68fb1
2015-03-03  Andrew Sutton  <andrew.n.sutton@gmail.com>


origin compile error shifts to 
  origin/core/concepts.hpp 
  error: expected primary-expression before ‘;’ token
  Line 63
       //Common_type<Ts...>; // FIXME: This better be a type requirement.
       true;

or later to concept bool Incrementable()
  origin/sequence/concepts.hpp
  Line 78
             //Difference_type<I>;
  Line 218
             //Iterator_type<R>;
             //Sentinel_type<R>;


Seems to me that return requires() as yet does not do "type requirement"
  as mentioned in n3701.pdf, pg 6
>From gcc-bugs-return-480228-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 12 19:07:44 2015
Return-Path: <gcc-bugs-return-480228-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 734 invoked by alias); 12 Mar 2015 19:07:43 -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 685 invoked by uid 48); 12 Mar 2015 19:07:40 -0000
From: "ian at airs dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug go/64999] s390x libgo test failure in TestMemoryProfiler
Date: Thu, 12 Mar 2015 19:07:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: go
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ian at airs dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ian at airs dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-64999-4-GflIhhDq8T@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64999-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64999-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-03/txt/msg01372.txt.bz2
Content-length: 984

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

--- Comment #54 from Ian Lance Taylor <ian at airs dot com> ---
I assume that it works on x86 because subtracting 1 from PC in libbacktrace,
and then subtracting 1 again in runtime/pprof/pprof.go, still gives you a PC
within the call instruction.  On PPC, subtracting 1 in libbacktrace and then
subtracting 4 in pprof.go gives you a PC in the instruction just before the
call instruction.

I appreciate that you only want to fix what is broken, but in this case I think
we should turn that around and keep the code simple unless we find that it
breaks something.

Yes, you're right that if we were to change libbacktrace it would mean passing
the flag through a chain of functions.  Basically the flag would have to move
along with the PC value.  I'm not sure this is worth doing, ip_before_insn is
always false except when tracing back through a signal trampoline, where the
file/line information is generally not helpful anyhow.


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

* [Bug c++/65269] internal compiler error: Segmentation fault
  2015-03-01 22:10 [Bug c++/65269] New: internal compiler error: Segmentation fault hgkamath at hotmail dot com
                   ` (2 preceding siblings ...)
  2015-03-12 19:00 ` hgkamath at hotmail dot com
@ 2015-03-12 20:38 ` andrew.n.sutton at gmail dot com
  2015-03-13  0:41 ` hgkamath at hotmail dot com
  2015-03-16 11:01 ` mpolacek at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: andrew.n.sutton at gmail dot com @ 2015-03-12 20:38 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Andrew Sutton <andrew.n.sutton at gmail dot com> ---
> Seems to me that return requires() as yet does not do "type requirement"
>   as mentioned in n3701.pdf, pg 6

I needed to push the relevant changes to Origin, which I just did.


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

* [Bug c++/65269] internal compiler error: Segmentation fault
  2015-03-01 22:10 [Bug c++/65269] New: internal compiler error: Segmentation fault hgkamath at hotmail dot com
                   ` (3 preceding siblings ...)
  2015-03-12 20:38 ` andrew.n.sutton at gmail dot com
@ 2015-03-13  0:41 ` hgkamath at hotmail dot com
  2015-03-16 11:01 ` mpolacek at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: hgkamath at hotmail dot com @ 2015-03-13  0:41 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from GK <hgkamath at hotmail dot com> ---
Confirming that origin library and the gcc (c-concepts) built with no errors.


make test
1 test failed out of 60
     58 - test_range_algo_none_of (OTHER_FAULT)

seems expected

It(none_of.cpp) fails because the test is copied form all_of.cpp 
  bool pos(int n) { return n > 0; } // '>' should be changed to '<'


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

* [Bug c++/65269] internal compiler error: Segmentation fault
  2015-03-01 22:10 [Bug c++/65269] New: internal compiler error: Segmentation fault hgkamath at hotmail dot com
                   ` (4 preceding siblings ...)
  2015-03-13  0:41 ` hgkamath at hotmail dot com
@ 2015-03-16 11:01 ` mpolacek at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2015-03-16 11:01 UTC (permalink / raw)
  To: gcc-bugs

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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |mpolacek at gcc dot gnu.org
         Resolution|---                         |FIXED

--- Comment #6 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Assuming fixed.


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

end of thread, other threads:[~2015-03-16 11:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-01 22:10 [Bug c++/65269] New: internal compiler error: Segmentation fault hgkamath at hotmail dot com
2015-03-01 22:15 ` [Bug c++/65269] " hgkamath at hotmail dot com
2015-03-09 13:41 ` andrew.n.sutton at gmail dot com
2015-03-12 19:00 ` hgkamath at hotmail dot com
2015-03-12 20:38 ` andrew.n.sutton at gmail dot com
2015-03-13  0:41 ` hgkamath at hotmail dot com
2015-03-16 11:01 ` 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).