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

io/ioutil: crash during windows html/template test #3320

Closed
LukeMauldin opened this issue Mar 14, 2012 · 2 comments
Closed

io/ioutil: crash during windows html/template test #3320

LukeMauldin opened this issue Mar 14, 2012 · 2 comments
Milestone

Comments

@LukeMauldin
Copy link

Before filing a bug, please check whether it has been fixed since
the latest release: run "hg pull", "hg update default", rebuild, and
retry
what you did to
reproduce the problem.  Thanks.

What steps will reproduce the problem?
1. Get latest and build

What is the expected output?
Successful tests

What do you see instead?
panic: runtime error: invalid memory address or nil pointer dereference [recover
ed]
        panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x40 pc=0x4bde21]

goroutine 25 [running]:
testing._func_003(0x3a7fa8, 0x3a7100, 0x3a7fb8, 0x3a7cd8)
        c:/GoBuild/go/src/pkg/testing/testing.go:268 +0xf6
----- stack segment boundary -----
io/ioutil.ReadFile(0x551604, 0xf800000003, 0x0, 0x0, 0x0, ...)
        c:/GoBuild/go/src/pkg/io/ioutil/ioutil.go:58 +0x149
html/template.parseFiles(0xf840128180, 0x3a7f38, 0x100000001, 0xf840128180, 0xf8
400feb80, ...)
        c:/GoBuild/go/src/pkg/html/template/template.go:288 +0xe8
html/template.(*Template).ParseFiles(0xf840128180, 0x3a7f38, 0x100000001, 0x76f2
3f40, 0x150fd0, ...)
        c:/GoBuild/go/src/pkg/html/template/template.go:277 +0x43
html/template.TestEmptyTemplate(0xf840127230, 0x33c58c98)
        c:/GoBuild/go/src/pkg/html/template/escape_test.go:1643 +0x80
testing.tRunner(0xf840127230, 0x64e300, 0x0, 0x0)
        c:/GoBuild/go/src/pkg/testing/testing.go:273 +0x72
created by testing.RunTests
        c:/GoBuild/go/src/pkg/testing/testing.go:349 +0x77f

goroutine 1 [chan receive]:
testing.RunTests(0x401000, 0x64e108, 0x1f0000001f, 0x1, 0x640510, ...)
        c:/GoBuild/go/src/pkg/testing/testing.go:350 +0x7a2
testing.Main(0x401000, 0x64e108, 0x1f0000001f, 0x64d470, 0x1800000018, ...)
        c:/GoBuild/go/src/pkg/testing/testing.go:285 +0x7d
main.main()
        C:/Users/lmauldin/AppData/Local/Temp/go-build147456002/html/template/_te
st/_testmain.go:151 +0x94

goroutine 2 [syscall]:
created by runtime.main
        c:/GoBuild/go/src/pkg/runtime/proc.c:221

goroutine 3 [syscall]:
created by addtimer
        c:/GoBuild/go/src/pkg/runtime/ztime_amd64.c:69
FAIL    html/template   5.077s

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

Which operating system are you using?
Windows 7 X64

Which revision are you using?  (hg identify)
773449f683d0 tip

Please provide any additional information below.
@rsc
Copy link
Contributor

rsc commented Mar 14, 2012

Comment 1:

CL 5824051

Labels changed: added priority-go1, removed priority-triage.

Owner changed to @rsc.

Status changed to Started.

@rsc
Copy link
Contributor

rsc commented Mar 14, 2012

Comment 2:

This issue was closed by revision 70e58a2.

Status changed to Fixed.

@rsc rsc added this to the Go1 milestone Apr 10, 2015
@rsc rsc removed the priority-go1 label Apr 10, 2015
@golang golang locked and limited conversation to collaborators Jun 24, 2016
@rsc rsc removed their assignment Jun 22, 2022
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

3 participants