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

debug/pe: doesn't support PE files without a symbol table. #4177

Closed
mewmew opened this issue Sep 30, 2012 · 4 comments
Closed

debug/pe: doesn't support PE files without a symbol table. #4177

mewmew opened this issue Sep 30, 2012 · 4 comments
Milestone

Comments

@mewmew
Copy link
Contributor

mewmew commented Sep 30, 2012

What steps will reproduce the problem?
If possible, include a link to a program on play.golang.org.
1. Compile the command at http://play.golang.org/p/T_PoIzdqIY
2. Run the command on a PE file which doesn't have any symbol table. (The
NumberOfSymbols is equal to 0 in the IMAGE_FILE_HEADER structure). Notepad.exe contains
no symbol table on my XP machine (I can't attach it for obvious reasons).
3. Check if the command succeeds.

What is the expected output?
Being able to open the PE file without an error.

What do you see instead?
"2012/09/30 22:05:58 EOF"
An io.EOF error, which results from a failed read operation while trying to get the COFF
string table in pe.NewFile.

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

Which operating system are you using?
linux

Which version are you using?  (run 'go version')
go version devel +d1beb5cd107e Sun Sep 30 10:35:09 2012 +0200

Please provide any additional information below.
@alexbrainman
Copy link
Member

Comment 1:

Labels changed: added priority-soon, packagebug, removed priority-triage.

Owner changed to @alexbrainman.

Status changed to Accepted.

@mewmew
Copy link
Contributor Author

mewmew commented Oct 1, 2012

Comment 2:

Uploading a binary that can be used for testing.
The source is a simple hello world, compiled using cl.exe on Windows.
http://play.golang.org/p/CPGTwvDWdj

Attachments:

  1. hello.exe (44544 bytes)

@rsc
Copy link
Contributor

rsc commented Oct 6, 2012

Comment 3:

Labels changed: added go1.1.

@alexbrainman
Copy link
Member

Comment 4:

This issue was closed by revision e9f0fc8.

Status changed to Fixed.

@rsc rsc added this to the Go1.1 milestone Apr 14, 2015
@rsc rsc removed the go1.1 label Apr 14, 2015
@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