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

[BUG] calendar.NewLunarYear 并发写LEAP以及CACHE #9

Open
Durden-T opened this issue Feb 13, 2023 · 1 comment
Open

[BUG] calendar.NewLunarYear 并发写LEAP以及CACHE #9

Durden-T opened this issue Feb 13, 2023 · 1 comment

Comments

@Durden-T
Copy link

Durden-T commented Feb 13, 2023

fatal error: concurrent map writes

goroutine 83169046 [running]:
runtime.throw(0x23499751, 0x15)
/usr/local/go/src/runtime/panic.go:1117 +0x72 fp=0xc049027458 sp=0xc049027428 pc=0x9b894b2
runtime.mapassign_fast64(0x21ae1ac0, 0xc00eab86c0, 0x7f2, 0x337c7f00)
/usr/local/go/src/runtime/map_fast64.go:101 +0x33e fp=0xc049027498 sp=0xc049027458 pc=0x9b63bde
github.com/6tail/lunar-go/calendar.NewLunarYear(0x7f2, 0xeeff37e80)
/opt/compile_path/pkg/mod/github.com/6tail/lunar-go@v1.2.21/calendar/LunarYear.go:58 +0x27e fp=0xc0490274f0 sp=0xc049027498 pc=0x20a5417e
github.com/6tail/lunar-go/calendar.NewLunarFromDate(0x0, 0xeeff37e80, 0x33765e40, 0x0)
/opt/compile_path/pkg/mod/github.com/6tail/lunar-go@v1.2.21/calendar/Lunar.go:93 +0xa5 fp=0xc0490275a0 sp=0xc0490274f0 pc=0x20a3e225
github.com/6tail/lunar-go/calendar.(*Solar).GetLunar(...)
/opt/compile_path/pkg/mod/github.com/6tail/lunar-go@v1.2.21/calendar/Solar.go:355

image

@6tail
Copy link
Owner

6tail commented Feb 20, 2023

v1.3.0理论上已修复。

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

2 participants