-
Notifications
You must be signed in to change notification settings - Fork 18k
go1.3.3 hashmap bug #9335
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
Comments
Go 1.3 is no longer maintained now that Go 1.4 is out. Also, this is probably a data race on your part. Please try with Go 1.4 and use the race detector. If you have a data race, the Go runtime guarantees nothing. |
when i change to go1.4 runtime: garbage collector found invalid heap pointer *(0x12546800+0xc0c)=0x1 s=nil runtime stack: but in go1.3.3,no this error |
Are you using cgo? Perhaps you have saved a small integer (0x1) in a |
in errors,i see cgocall when i call syscall_windows
|
but why in go1.3.3,no this error? |
Go 1.3.3 GC ignores invalid pointers, but Go 1.4 GC enforces the For 1.4, you can set GODEBUG=invalidptr=0 environment variable But it's still better to identify where you stored a small integer (0x1) |
my code have used a unsafe.Pointer,what do i do? |
The Go 1.4 release notes covers this in https://golang.org/doc/go1.4#runtime Let's move discussion to the golang-nuts@ mailing list. The bug tracker is only for tracking active bugs. |
when call: CreateTables[Code] = Code
throw error:
fatal error: bad state
goroutine 20 [running]:
runtime.throw(0x8663e8)
c:/go/src/pkg/runtime/panic.c:520 +0x71 fp=0x1d3c34 sp=0x1d3c28
evacuate(0x5f76e0, 0x125ae400, 0x10)
c:/go/src/pkg/runtime/hashmap.goc:205 +0x1bb fp=0x1d3c8c sp=0x1d3c34
grow_work(0x5f76e0, 0x125ae400, 0x48)
c:/go/src/pkg/runtime/hashmap.goc:321 +0x76 fp=0x1d3ca0 sp=0x1d3c8c
hash_insert(0x5f76e0, 0x125ae400, 0x12af48dc, 0x12af48dc)
c:/go/src/pkg/runtime/hashmap.goc:499 +0xba fp=0x1d3cec sp=0x1d3ca0
runtime.mapassign1(0x5f76e0, 0x125ae400, 0x12af48dc, 0x12af48dc)
c:/go/src/pkg/runtime/hashmap.goc:933 +0x3b fp=0x1d3d04 sp=0x1d3cec
stock/server.(*DatabaseMarkStock).Execute(0x125900e0)
D:/GoProject/src/stock/server/DatabaseMarkStock.go:253 +0x7f0 fp=0x1d3fc8 sp=0x1d3d04
runtime.goexit()
c:/go/src/pkg/runtime/proc.c:1445 fp=0x1d3fcc sp=0x1d3fc8
created by main.main
The text was updated successfully, but these errors were encountered: