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

SIGSEGV with Golang 1.17.11 #4

Open
itd0 opened this issue Dec 20, 2022 · 0 comments
Open

SIGSEGV with Golang 1.17.11 #4

itd0 opened this issue Dec 20, 2022 · 0 comments

Comments

@itd0
Copy link

itd0 commented Dec 20, 2022

Hi,

go test github.com/chzyer/test fails as follows:

starting phase `check'
tmpdir: /tmp/guix-build-go-github-com-chzyer-test-1.0.0.drv-0
--- FAIL: TestMemDisk (0.00s)
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
	panic: runtime error: invalid memory address or nil pointer dereference [recovered]
	panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0xb0 pc=0x53ae5c]

goroutine 20 [running]:
testing.tRunner.func1.2({0x554e80, 0x698b80})
	/gnu/store/d06665qgp3zqp05fr0q1sdbfnpvxywsc-go-1.17.11/lib/go/src/testing/testing.go:1209 +0x24e
testing.tRunner.func1()
	/gnu/store/d06665qgp3zqp05fr0q1sdbfnpvxywsc-go-1.17.11/lib/go/src/testing/testing.go:1212 +0x218
panic({0x554e80, 0x698b80})
	/gnu/store/d06665qgp3zqp05fr0q1sdbfnpvxywsc-go-1.17.11/lib/go/src/runtime/panic.go:1038 +0x215
github.com/chzyer/test.New({0x5a7b40, 0xc0000836c0})
	/tmp/guix-build-go-github-com-chzyer-test-1.0.0.drv-0/src/github.com/chzyer/test/test.go:77 +0x245
panic({0x554e80, 0x698b80})
	/gnu/store/d06665qgp3zqp05fr0q1sdbfnpvxywsc-go-1.17.11/lib/go/src/runtime/panic.go:1038 +0x215
github.com/chzyer/test.customEqual({0x0, 0x0}, {0x0, 0x0})
	/tmp/guix-build-go-github-com-chzyer-test-1.0.0.drv-0/src/github.com/chzyer/test/test.go:351 +0x11c
github.com/chzyer/test.equal(0x6a1ae0, {0x0, 0x0}, {0x0, 0x0}, {0x0, 0x0, 0x550420})
	/tmp/guix-build-go-github-com-chzyer-test-1.0.0.drv-0/src/github.com/chzyer/test/test.go:336 +0x358
github.com/chzyer/test.Equals({0xc00008def8, 0x6, 0x5})
	/tmp/guix-build-go-github-com-chzyer-test-1.0.0.drv-0/src/github.com/chzyer/test/test.go:202 +0x73
github.com/chzyer/test.TestMemDisk(0x0)
	/tmp/guix-build-go-github-com-chzyer-test-1.0.0.drv-0/src/github.com/chzyer/test/disk_test.go:14 +0x225
testing.tRunner(0xc0000836c0, 0x5801a8)
	/gnu/store/d06665qgp3zqp05fr0q1sdbfnpvxywsc-go-1.17.11/lib/go/src/testing/testing.go:1259 +0x102
created by testing.(*T).Run
	/gnu/store/d06665qgp3zqp05fr0q1sdbfnpvxywsc-go-1.17.11/lib/go/src/testing/testing.go:1306 +0x35a
FAIL	github.com/chzyer/test	0.017s
FAIL
error: in phase 'check': uncaught exception:
%exception #<&invoke-error program: "go" arguments: ("test" "github.com/chzyer/test") exit-status: 1 term-signal: #f stop-signal: #f> 
phase `check' failed after 6.1 seconds
command "go" "test" "github.com/chzyer/test" failed with status 1

It seems to be unhappy about calling MethodByName on nil in:

test/test.go

Line 351 in df62958

method, ok := typeA.MethodByName("Equal")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant