Running go 1.3.3 on Mac (darwin/amd64), got the same error on CentOS also (linux/amd64).
I'm running go from source.
$ hg summary
parent: 20236:f44017549ff9 go1.3.3 release
go1.3.3
branch: release-branch.go1.3
commit: (clean)
update: (current)
I received the following error after running a couple of hundred iterations/transactions (it's a polling operation each wrapped in explicit transaction) on a DB connection.
There is a lot of infrastructure code at the moment so I'm trying to boil down an example that will make the problem happen with minimal code.
I'll post code later if/when I can recreate.
In the meantime, does anybody have an idea on the issue here?
fatal error: bad pointer in scanbitvector
A few partial stack traces that looked relevant:
runtime stack:
runtime.throw(0x86f2ab)
/usr/lib/golang/src/pkg/runtime/panic.c:520 +0x69 fp=0x7f3c32d869b0 sp=0x7f3c32d86998
scanbitvector(0x65abe8, 0x5cca01, 0x7f3c3c230c88, 0x7f3c32d86a68, 0x1, 0x7f3c32d86c78)
/usr/lib/golang/src/pkg/runtime/mgc0.c:1492 +0x38d fp=0x7f3c32d86a18 sp=0x7f3c32d869b0
scanframe(0x7f3c32d86ae8, 0x7f3c32d86c78)
/usr/lib/golang/src/pkg/runtime/mgc0.c:1631 +0x1a8 fp=0x7f3c32d86a90 sp=0x7f3c32d86a18
runtime.gentraceback(0x405bc5, 0x7f3c3c230be8, 0x0, 0xc2080037a0, 0x7f3c00000000, 0x0, 0x7fffffff, 0x40a2d0, 0x7f3c32d86c78, 0x0)
/usr/lib/golang/src/pkg/runtime/traceback_x86.c:253 +0x744 fp=0x7f3c32d86b78 sp=0x7f3c32d86a90
addstackroots(0xc2080037a0, 0x7f3c32d86c78)
/usr/lib/golang/src/pkg/runtime/mgc0.c:1692 +0x168 fp=0x7f3c32d86c08 sp=0x7f3c32d86b78
markroot(0xc208018480, 0x7f3c0000000b)
/usr/lib/golang/src/pkg/runtime/mgc0.c:1321 +0xbe fp=0x7f3c32d86c88 sp=0x7f3c32d86c08
runtime.parfordo(0xc208018480)
/usr/lib/golang/src/pkg/runtime/parfor.c:88 +0xa3 fp=0x7f3c32d86d00 sp=0x7f3c32d86c88
gc(0x7f3c3c21a8f0)
/usr/lib/golang/src/pkg/runtime/mgc0.c:2407 +0x1d6 fp=0x7f3c32d86e30 sp=0x7f3c32d86d00
mgc(0xc208002120)
/usr/lib/golang/src/pkg/runtime/mgc0.c:2349 +0x2e fp=0x7f3c32d86e40 sp=0x7f3c32d86e30
runtime.mcall(0x4021b4)
/usr/lib/golang/src/pkg/runtime/asm_amd64.s:181 +0x4b fp=0x7f3c32d86e50 sp=0x7f3c32d86e40
goroutine 21 [runnable]:
runtime.cgocall(0x401bb0, 0x7f3c3c230c48)
/usr/lib/golang/src/pkg/runtime/cgocall.c:143 +0xe5 fp=0x7f3c3c230c30 sp=0x7f3c3c230be8
database/sql.(*Tx).Commit(0xc208024ea0, 0x0, 0x0)
/usr/lib/golang/src/pkg/database/sql/sql.go:1082 +0xf1 fp=0x7f3c3c230db8 sp=0x7f3c3c230d78
goroutine 16 [garbage collection]:
runtime.gc(0x0)
/usr/lib/golang/src/pkg/runtime/mgc0.c:2329 +0x1c6 fp=0x7f3c3c21a908 sp=0x7f3c3c21a8d8
runtime.mallocgc(0x10, 0x560c60, 0x1)
/usr/lib/golang/src/pkg/runtime/malloc.goc:205 +0x1d6 fp=0x7f3c3c21a970 sp=0x7f3c3c21a908
/usr/lib/golang/src/pkg/runtime/malloc.goc:826 +0x3b fp=0x7f3c3c21a990 sp=0x7f3c3c21a970
database/sql.resultFromStatement(0x7f3c3c3b9640, 0xc208004900, 0x7f3c3c3b95a8, 0xc2080251a0, 0x7f3c3c21ad10, 0x2, 0x2, 0x0, 0x0, 0x0, ...)
/usr/lib/golang/src/pkg/database/sql/sql.go:1302 +0x317 fp=0x7f3c3c21ab78 sp=0x7f3c3c21aa48
database/sql.(*Stmt).Exec(0xc208062880, 0x7f3c3c21ad10, 0x2, 0x2, 0x0, 0x0, 0x0, 0x0)
/usr/lib/golang/src/pkg/database/sql/sql.go:1275 +0x2c7 fp=0x7f3c3c21ac50 sp=0x7f3c3c21ab78
bitbucket.org/daxko/dxp-queue.func·004(0xc208025140, 0x0, 0x0, 0x0, 0x0)
main.main()