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 errors #1532

Closed
alberts opened this issue Feb 19, 2011 · 8 comments
Closed

gccgo: internal compiler errors #1532

alberts opened this issue Feb 19, 2011 · 8 comments

Comments

@alberts
Copy link
Contributor

alberts commented Feb 19, 2011

What steps will reproduce the problem?
1. tar -jxvf more3.tar.bz2
2. cd more3
3. find -mindepth 1 -type d | xargs -n 1 -I DIR sh -c 'cd DIR && echo DIR
&& gccgo -o foo *.go' 2>&1 | grep internal | sort -u

What do you see instead?

0.go:8:2: internal compiler error: tree check: expected class ‘type’, have
‘exceptional’ (error_mark) in useless_type_conversion_p, at tree-ssa.c:1251
go1: internal compiler error: Aborted
go1: internal compiler error: in bind_field_or_method, at go/gofrontend/types.cc:7843
go1: internal compiler error: in comparison_tree, at go/gofrontend/expressions.cc:6275
go1: internal compiler error: in comparison_tree, at go/gofrontend/expressions.cc:6293
go1: internal compiler error: in do_check_types, at go/gofrontend/expressions.cc:9180
go1: internal compiler error: in do_get_tree, at go/gofrontend/expressions.cc:7942
go1: internal compiler error: in do_get_tree, at go/gofrontend/expressions.h:888
go1: internal compiler error: in do_get_tree, at go/gofrontend/types.cc:1739
go1: internal compiler error: in Named_object, at go/gofrontend/gogo.cc:3621
go1: internal compiler error: Segmentation fault

Which compiler are you using (5g, 6g, 8g, gccgo)?

gccgo

Which operating system are you using?

linux

Which revision are you using?  (hg identify)

URL: svn://gcc.gnu.org/svn/gcc/trunk
Repository Root: svn://gcc.gnu.org/svn/gcc
Repository UUID: 138bc75d-0d04-0410-961f-82ee72b054a4
Revision: 170308

Please provide any additional information below.

These are getting harder and harder to find... I had about 48 copies of gccgo running
for 10 hours on an 8 core machine to turn up these. :-)

Attachments:

  1. more3.tar.bz2 (120412 bytes)
@alberts
Copy link
Contributor Author

alberts commented Feb 19, 2011

Comment 1:

A few more, thanks to a new fuzzer that makes single input files by mixing between 1 and
10 other files.
go1: internal compiler error: in function, at go/gofrontend/gogo.cc:2205
go1: internal compiler error: in result_var_value, at go/gofrontend/gogo.h:1725
go1: internal compiler error: in swap_for_recover, at go/gofrontend/gogo.cc:2701
go1: internal compiler error: Segmentation fault

Attachments:

  1. bork1.go (52516 bytes)
  2. bork2.go (1990 bytes)
  3. bork3.go (50433 bytes)
  4. bork4.go (72985 bytes)

@alberts
Copy link
Contributor Author

alberts commented Feb 20, 2011

Comment 2:

And a few more...

Attachments:

  1. more4.tar.bz2 (140515 bytes)

@ianlancetaylor
Copy link
Contributor

Comment 3:

Labels changed: added gccgo.

Owner changed to i...@golang.org.

@adg
Copy link
Contributor

adg commented Feb 21, 2011

Comment 4:

Status changed to Accepted.

@alberts
Copy link
Contributor Author

alberts commented Feb 23, 2011

Comment 5:

I see a bunch has been fixed. Here's some more generated with revision 170432:
go1: internal compiler error: in do_get_tree, at go/gofrontend/expressions.cc:12239
go1: internal compiler error: in do_get_tree, at go/gofrontend/expressions.h:888
go1: internal compiler error: in do_type_descriptor, at go/gofrontend/types.cc:3232
go1: internal compiler error: in function, at go/gofrontend/gogo.cc:2210
go1: internal compiler error: in result_var_value, at go/gofrontend/gogo.h:1725
go1: internal compiler error: Segmentation fault
gccgo: internal compiler error: Segmentation fault (program go1)
go1: internal compiler error: in do_get_tree, at go/gofrontend/types.cc:1739
go1: internal compiler error: in Named_object, at go/gofrontend/gogo.cc:3626

Attachments:

  1. more5.tar.gz (162350 bytes)

@ianlancetaylor
Copy link
Contributor

Comment 6:

Thanks for all the test cases.  These are all now fixed.

Status changed to Fixed.

@alberts
Copy link
Contributor Author

alberts commented Feb 24, 2011

Comment 7:

Hello. There's a few more in more5 that don't seem to work yet:
go1: internal compiler error: in do_get_tree, at go/gofrontend/expressions.cc:12267
go1: internal compiler error: in do_get_tree, at go/gofrontend/expressions.h:888
go1: internal compiler error: in Named_object, at go/gofrontend/gogo.cc:3631
go1: internal compiler error: Segmentation fault
I tested with r170461.

@ianlancetaylor
Copy link
Contributor

Comment 8:

You're right, I messed up my test script.  Thanks for noticing.  Now I think these cases
are really fixed.

@golang golang locked and limited conversation to collaborators Jun 24, 2016
This issue was closed.
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

4 participants