Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gccgo: internal compiler error in type_size (2) #11555

Closed
dvyukov opened this issue Jul 3, 2015 · 2 comments
Closed

gccgo: internal compiler error in type_size (2) #11555

dvyukov opened this issue Jul 3, 2015 · 2 comments
Milestone

Comments

@dvyukov
Copy link
Member

dvyukov commented Jul 3, 2015

gccgo crashes on the following program:

package a
type e[5][1e11][1e11]*e
go1: internal compiler error: in type_size, at go/go-gcc.cc:1103
0x6074fb Gcc_backend::type_size(Btype*)
    ../../gcc/go/go-gcc.cc:1103
0x674108 Type::backend_type_size(Gogo*, long*)
    ../../gcc/go/gofrontend/types.cc:2526
0x6742d6 Array_type::do_compare_is_identity(Gogo*)
    ../../gcc/go/gofrontend/types.cc:5807
0x65b6b8 Type::compare_is_identity(Gogo*)
    ../../gcc/go/gofrontend/types.h:628
0x65b6b8 Named_type::do_compare_is_identity(Gogo*)
    ../../gcc/go/gofrontend/types.cc:8684
0x6107f1 Type::compare_is_identity(Gogo*)
    ../../gcc/go/gofrontend/types.h:628
0x6107f1 Specific_type_functions::type(Type*)
    ../../gcc/go/gofrontend/gogo.cc:2416
0x65da12 Type::traverse(Type*, Traverse*)
    ../../gcc/go/gofrontend/types.cc:286
0x6167a8 Bindings::traverse(Traverse*, bool)
    ../../gcc/go/gofrontend/gogo.cc:7537
0x616b71 Gogo::traverse(Traverse*)
    ../../gcc/go/gofrontend/gogo.cc:2491
0x61707a Gogo::write_specific_type_functions()
    ../../gcc/go/gofrontend/gogo.cc:2467
0x6105cf go_parse_input_files(char const**, unsigned int, bool, bool)
    ../../gcc/go/gofrontend/go.cc:136
0x60c32f go_langhook_parse_file
    ../../gcc/go/go-lang.c:304

Note that this is a different stack as in #11554

gcc version 6.0.0 2015070 (experimental) (GCC)

@dvyukov
Copy link
Member Author

dvyukov commented Jul 3, 2015

@paranoiacblack

@ianlancetaylor ianlancetaylor added this to the Gccgo milestone Jul 10, 2015
@ianlancetaylor
Copy link
Contributor

This is the same as #11554: the relevant issue is that Gcc_backend::type_size failed with a large type.

@golang golang locked and limited conversation to collaborators Jul 11, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants