Skip to content

reflect: tests fail with -linkshared #19003

@crawshaw

Description

@crawshaw

On tip:

$ go install -buildmode=shared runtime sync/atomic
$ go test -short -linkshared reflect
runtime: typeOff 0x289e0 base 0xc4203bbdc0 not in ranges:
	types 0x7ff1e846ad00 etypes 0x7ff1e84b4b10
	types 0xaaa6a0 etypes 0xd841a0
fatal error: runtime: type offset base pointer out of range

goroutine 75 [running]:
runtime.throw(0x7ff1e82656dc, 0x2e)
	/usr/local/google/home/crawshaw/go/src/runtime/panic.go:596 +0x97 fp=0xc42009dd18 sp=0xc42009dcf8
runtime.resolveTypeOff(0xc4203bbdc0, 0x289e0, 0xc420128750)
	/usr/local/google/home/crawshaw/go/src/runtime/type.go:223 +0x356 fp=0xc42009dd78 sp=0xc42009dd18
runtime.(*_type).typeOff(0xc4203bbdc0, 0x289e0, 0xc42009dde0)
	/usr/local/google/home/crawshaw/go/src/runtime/type.go:239 +0x35 fp=0xc42009dda0 sp=0xc42009dd78
reflect.resolveTypeOff(0xc4203bbdc0, 0x289e0, 0x0)
	/usr/local/google/home/crawshaw/go/src/runtime/runtime1.go:515 +0x35 fp=0xc42009ddc8 sp=0xc42009dda0
reflect.(*rtype).typeOff(0xc4203bbdc0, 0xc4000289e0, 0xc42009de88)
	/usr/local/google/home/crawshaw/go/src/reflect/type.go:679 +0x35 fp=0xc42009ddf0 sp=0xc42009ddc8
reflect.(*rtype).ptrTo(0xc4203bbdc0, 0xc4203bbdc0)
	/usr/local/google/home/crawshaw/go/src/reflect/type.go:1430 +0x57b fp=0xc42009dec0 sp=0xc42009ddf0
reflect.PtrTo(0xe23120, 0xc4203bbdc0, 0xe23120, 0xc4203bbdc0)
	/usr/local/google/home/crawshaw/go/src/reflect/type.go:1425 +0x47 fp=0xc42009dee8 sp=0xc42009dec0
reflect_test.TestPtrTo(0xc42012de10)
	/usr/local/google/home/crawshaw/go/src/reflect/all_test.go:2485 +0xa1 fp=0xc42009dfa8 sp=0xc42009dee8
testing.tRunner(0xc42012de10, 0xd808f8)
	/usr/local/google/home/crawshaw/go/src/testing/testing.go:657 +0xa0 fp=0xc42009dfd0 sp=0xc42009dfa8
runtime.goexit()
	/usr/local/google/home/crawshaw/go/src/runtime/asm_amd64.s:2197 +0x1 fp=0xc42009dfd8 sp=0xc42009dfd0
created by testing.(*T).Run
	/usr/local/google/home/crawshaw/go/src/testing/testing.go:697 +0x2e4

goroutine 1 [chan receive]:
testing.(*T).Run(0xc4200d3110, 0x63a653, 0x9, 0xd808f8, 0xc4200add01)
	/usr/local/google/home/crawshaw/go/src/testing/testing.go:698 +0x30e
testing.runTests.func1(0xc4200d3110)
	/usr/local/google/home/crawshaw/go/src/testing/testing.go:882 +0x69
testing.tRunner(0xc4200d3110, 0xc4200adde0)
	/usr/local/google/home/crawshaw/go/src/testing/testing.go:657 +0xa0
testing.runTests(0xc42000d540, 0xe1c940, 0x85, 0x85, 0xc420011970)
	/usr/local/google/home/crawshaw/go/src/testing/testing.go:888 +0x2ee
testing.(*M).Run(0xc4200adf20, 0xc4200adf20)
	/usr/local/google/home/crawshaw/go/src/testing/testing.go:822 +0x109
main.main()
	reflect/_test/_testmain.go:334 +0x118

goroutine 17 [syscall, locked to thread]:
runtime.goexit()
	/usr/local/google/home/crawshaw/go/src/runtime/asm_amd64.s:2197 +0x1

goroutine 38 [sleep]:
time.Sleep(0x3b9aca00)
	/usr/local/google/home/crawshaw/go/src/runtime/time.go:59 +0x105
reflect_test.selectWatcher()
	/usr/local/google/home/crawshaw/go/src/reflect/all_test.go:1416 +0x3e
created by reflect_test.TestSelect.func1
	/usr/local/google/home/crawshaw/go/src/reflect/all_test.go:1146 +0x37
FAIL	reflect	0.089s

May just be a bogus test.

First seen on #16602.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions