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

cmd/compile: not-deterministic output #13268

Closed
dvyukov opened this issue Nov 16, 2015 · 3 comments
Closed

cmd/compile: not-deterministic output #13268

dvyukov opened this issue Nov 16, 2015 · 3 comments
Milestone

Comments

@dvyukov
Copy link
Member

dvyukov commented Nov 16, 2015

cmd/compile fails on the following program printing current time, which makes output non-deterministic and not amenable for automatic checking. Also a line number would be nice.

Program in hex:

00000000  70 61 63 6b 61 67 65 20  70 0a 0a 66 75 6e 63 20  |package p..func |
00000010  ef ef 0a                                          |...|

output of go tool compile:

2015/11/16 14:09:06 getc: peeking: EOF

go version devel +25a28da Sun Nov 15 23:41:28 2015 +0000 linux/amd64

@ianlancetaylor ianlancetaylor added this to the Go1.6 milestone Nov 16, 2015
@griesemer
Copy link
Contributor

This is unrelated to the new parser.

More generally, there's a question as to what to do with this and other fatal errors in the compiler.

@gopherbot
Copy link

CL https://golang.org/cl/17047 mentions this issue.

@griesemer
Copy link
Contributor

Filed a fix for this particular issue (https://go-review.googlesource.com/17047). Filed a separate issue #13320 for log.Fatal calls.

@golang golang locked and limited conversation to collaborators Nov 27, 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

4 participants