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

package keystore panic sometimes when make test #440

Closed
gzliudan opened this issue Feb 23, 2024 · 1 comment · Fixed by #441
Closed

package keystore panic sometimes when make test #440

gzliudan opened this issue Feb 23, 2024 · 1 comment · Fixed by #441

Comments

@gzliudan
Copy link
Collaborator

gzliudan commented Feb 23, 2024

When I run make test, package keystore sometimes panic:

?       github.com/XinFinOrg/XDPoSChain/internal/ethapi [no test files]
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x30 pc=0x5d221c]

goroutine 25 [running]:
github.com/XinFinOrg/XDPoSChain/accounts/keystore.skipKeyFile({0x0, 0x0})
        /home/me/XDPoSChain/accounts/keystore/file_cache.go:97 +0x1c
github.com/XinFinOrg/XDPoSChain/accounts/keystore.(*fileCache).scan(0xc0000fc290, {0xc0000d0060, 0x18})
        /home/me/XDPoSChain/accounts/keystore/file_cache.go:64 +0x437
github.com/XinFinOrg/XDPoSChain/accounts/keystore.(*accountCache).scanAccounts(0xc0000fc240)
        /home/me/XDPoSChain/accounts/keystore/account_cache.go:235 +0x38
github.com/XinFinOrg/XDPoSChain/accounts/keystore.(*watcher).loop(0xc0000d51e0)
        /home/me/XDPoSChain/accounts/keystore/watch.go:104 +0x46b
created by github.com/XinFinOrg/XDPoSChain/accounts/keystore.(*watcher).start in goroutine 21
        /home/me/XDPoSChain/accounts/keystore/watch.go:52 +0x66
FAIL    github.com/XinFinOrg/XDPoSChain/internal/guide  5.611s
ok      github.com/XinFinOrg/XDPoSChain/internal/jsre   (cached)

Another test fail case:

image

@gzliudan gzliudan changed the title make test failed at package keystore sometimes package keystore panic sometimes when make test Feb 23, 2024
gzliudan added a commit to gzliudan/XDPoSChain that referenced this issue Feb 23, 2024
@gzliudan
Copy link
Collaborator Author

Closed by #441.

gzliudan added a commit that referenced this issue Feb 26, 2024
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

Successfully merging a pull request may close this issue.

1 participant