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

go1.8 can't iterate over map while writing to it #9

Closed
ZGeomantic opened this issue Feb 27, 2017 · 3 comments
Closed

go1.8 can't iterate over map while writing to it #9

ZGeomantic opened this issue Feb 27, 2017 · 3 comments
Labels

Comments

@ZGeomantic
Copy link

I upgrade golang to 1.8 and encounter this panic while using cache2go:

goroutine 363453 [running]:
runtime.throw(0x94121a, 0x26)
/usr/local/go/src/runtime/panic.go:596 +0x95 fp=0xc420513de0 sp=0xc420513dc0
runtime.mapiternext(0xc420513f68)
/usr/local/go/src/runtime/hashmap.go:737 +0x7ee fp=0xc420513e90 sp=0xc420513de0
github.com/muesli/cache2go.(*CacheTable).expirationCheck(0xc4201d2540)
/Users/geomantic/Documents/develop/gopath/src/github.com/muesli/cache2go/cachetable.go:111 +0x336 fp=0xc4205 13fd8 sp=0xc420513e90
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:2197 +0x1 fp=0xc420513fe0 sp=0xc420513fd8
created by github.com/muesli/cache2go.(*CacheTable).expirationCheck.func1
/Users/geomantic/Documents/develop/gopath/src/github.com/muesli/cache2go/cachetable.go:137 +0x3e

@muesli muesli added the bug label Feb 27, 2017
@Steven086
Copy link

solved?

1 similar comment
@zhaohuxing
Copy link

solved?

@muesli
Copy link
Owner

muesli commented Jun 4, 2017

Working on it.

@muesli muesli changed the title go1.8 can't iteration map while write go1.8 can't iterate over map while writing to it Jun 4, 2017
@muesli muesli closed this as completed in 21535fd Jun 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants