Skip to content

Too much constant data breaks a package #1404

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

Closed
agl opened this issue Jan 9, 2011 · 5 comments
Closed

Too much constant data breaks a package #1404

agl opened this issue Jan 9, 2011 · 5 comments

Comments

@agl
Copy link
Contributor

agl commented Jan 9, 2011

A package with too much constant data appears to trigger a bug (somewhere between
8-16KB). I hit this using gotest, so the reproduction also uses gotest:

[agl@europa bug]$ gotest
rm -f _test/bug.a _gotest_.6
6g -o _gotest_.6 bug.go  bug_test.go
rm -f _test/bug.a
gopack grc _test/bug.a _gotest_.6 
gopack: bad package import section in _gotest_.6
_testmain.go:3: syntax error: unexpected <

Contents of src/pkg/bug attached

Attachments:

  1. bug.go (16392 bytes)
  2. Makefile (76 bytes)
  3. bug_test.go (65 bytes)
@agl
Copy link
Contributor Author

agl commented Jan 9, 2011

Comment 1:

Owner changed to ---.

@robpike
Copy link
Contributor

robpike commented Jan 11, 2011

Comment 2:

I can't reproduce this with amd64 on linux or darwin.  Can you? -r

@robpike
Copy link
Contributor

robpike commented Jan 11, 2011

Comment 3:

Status changed to WaitingForReply.

@rsc
Copy link
Contributor

rsc commented Jan 20, 2011

Comment 4:

Please check that you don't have an old gopack in your path.
My guess is that you do, one built before
changeset:   6003:e91b76c5a30b
user:        Russ Cox <[email protected]>
date:        Wed Aug 11 22:17:20 2010 -0700
summary:     gopack: handle long lines in export data
Assuming not, please upload _test/bug.a and _gotest_.6.

@agl
Copy link
Contributor Author

agl commented Jan 21, 2011

Comment 5:

Yep, you're right. I had an old gopack. Sorry for wasting time.

Status changed to Fixed.

@agl agl added fixed labels Jan 21, 2011
@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