You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before filing a bug, please check whether it has been fixed since the
latest release. Search the issue tracker and check that you're running the
latest version of Go:
Run "go version" and compare against
http://golang.org/doc/devel/release.html If a newer version of Go exists,
install it and retry what you did to reproduce the problem.
Thanks.
What steps will reproduce the problem?
If possible, include a link to a program on play.golang.org.
Reproducer available here: http://play.golang.org/p/USKxn3CiS4
1. Create a core file. E.g. $ulimit -c unlimited; sleep 123; Ctrl+\
2. Attempt to read core file using debug/elf
3. Error: invalid ELF shstrndx '0' in record at byte 0x0
(As a core dump doesn't have the section headers)
What is the expected output?
A *elf.File with an empty []*Section element.
What do you see instead?
Error: invalid ELF shstrndx '0' in record at byte 0x0
Which compiler are you using (5g, 6g, 8g, gccgo)?
6g
Which operating system are you using?
Fedora 17 x86_64.
Which version are you using? (run 'go version')
Please provide any additional information below.
The text was updated successfully, but these errors were encountered:
Reading core dumps is a fair amount of work, and debug/elf does not attempt it yet.
However, we should at least handle shstrndx == 0 when reading the file.
https://golang.org/cl/6936058/
Grant, could you please try this CL and see if it works for you. TBH, i'm not
experienced with the elf format, but this CL passes the test case you supplied.
by grantcmurphy:
The text was updated successfully, but these errors were encountered: