Closed sndnvaps closed 4 years ago
my go version:
go1.13.1
when i restart the kala got some error
1:6379
INFO[0000] Preparing cache
INFO[0000] Job test_job:9d3ec76d-1c58-421a-4cd3-5a12d4834228 repeating in 0s
INFO[0000] Job test_job:9d3ec76d-1c58-421a-4cd3-5a12d4834228 added to cache.
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x12cbc]
goroutine 1 [running]:
runtime/internal/atomic.goXadd64(0x240e6c4, 0x1, 0x0, 0x240d001, 0xc5)
/usr/local/go/src/runtime/internal/atomic/atomic_arm.go:103 +0x1c
github.com/cornelk/hashmap.(*List).insertAt(0x240e6c0, 0x240d880, 0x0, 0x0, 0x0)
/home/pi/gowork/pkg/mod/github.com/cornelk/hashmap@v0.0.0-20170323055448-5fee90babde7/list.go:129 +0x7c
github.com/cornelk/hashmap.(*List).AddOrUpdate(0x240e6c0, 0x240d880, 0x0, 0x240d0c0)
/home/pi/gowork/pkg/mod/github.com/cornelk/hashmap@v0.0.0-20170323055448-5fee90babde7/list.go:65 +0x118
github.com/cornelk/hashmap.(*HashMap).insertListElement(0x240e6d0, 0x240d880, 0x3956ac01, 0x7cc3581b)
/home/pi/gowork/pkg/mod/github.com/cornelk/hashmap@v0.0.0-20170323055448-5fee90babde7/hashmap.go:152 +0x64
github.com/cornelk/hashmap.(*HashMap).Set(0x240e6d0, 0x4a60c0, 0x2410bf8, 0x254c000)
/home/pi/gowork/pkg/mod/github.com/cornelk/hashmap@v0.0.0-20170323055448-5fee90babde7/hashmap.go:131 +0xa4
github.com/ajvb/kala/job.(*LockFreeJobCache).Set(...)
/home/pi/gowork/src/github.com/ajvb/kala/job/cache.go:258
github.com/ajvb/kala/job.(*LockFreeJobCache).Start(0x2540140, 0x2a05f200, 0x1, 0x7b8a800, 0xfffffff2)
/home/pi/gowork/src/github.com/ajvb/kala/job/cache.go:202 +0x1dc
github.com/ajvb/kala/cmd.init.0.func2(0x24e8100)
/home/pi/gowork/src/github.com/ajvb/kala/cmd/app.go:182 +0x408
github.com/codegangsta/cli.Command.Run(0x521bbf, 0x3, 0x0, 0x0, 0x0, 0x0, 0x0, 0x523a0c, 0x8, 0x0, ...)
/home/pi/gowork/pkg/mod/github.com/codegangsta/cli@v1.8.1-0.20150711215404-bca61c476e3c/command.go:127 +0x3b4
github.com/codegangsta/cli.(*App).Run(0x251c360, 0x2484040, 0x4, 0x4, 0x0, 0x0)
/home/pi/gowork/pkg/mod/github.com/codegangsta/cli@v1.8.1-0.20150711215404-bca61c476e3c/app.go:159 +0x3c0
main.main()
/home/pi/gowork/src/github.com/ajvb/kala/main.go:20 +0x74
Seems caused by https://github.com/cornelk/hashmap
Reviewing the go.mod file, we are pinned to a version from 2017. There have been ~50 commits since that point.
@sndnvaps how do you feel about trying with https://github.com/tooolbox/kala/tree/hashmap-update ?
@sndnvaps how do you feel about trying with https://github.com/tooolbox/kala/tree/hashmap-update ?
ok, i will try it now. thanks.
@tooolbox i have test it . every thing is ok. i hope it can merge into master branch
Yup, merged & tagged as v0.3.3
i have run kala with cmd
then create new job with
got the crash