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

OS X - SIGSEGV: Illegal storage access. (Attempt to read from nil?) #198

Closed
Swader opened this issue Dec 12, 2018 · 7 comments
Closed

OS X - SIGSEGV: Illegal storage access. (Attempt to read from nil?) #198

Swader opened this issue Dec 12, 2018 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@Swader
Copy link
Contributor

Swader commented Dec 12, 2018

On OS X, 10.13.6. Nimbus runs for a short while (a few minutes at most), then crashes.

Brunos-MBP:nimbus swader$ nimbus/nimbus
Nimbus Version 0.0.1 [macosx: amd64]
Copyright (C) 2018 Status Research & Development GmbH
INF 2018-12-12 14:54:17+01:00 RLPx listener up                           thread=0 self=enode:https://0a7fdcd6f6e7d80ac24a03841ceb7371775579babebf4769e11bcb8f21a79fe78241b5e496181c47a173a43e3e810d1dc6c852af57d4526e7d80b21adbfea467@0.0.0.0:30303
ERR 2018-12-12 14:54:20+01:00 Exception in rlpxAccept                    topics="rlpx" thread=0 err="Error: EciesError" stackTrace=
ERR 2018-12-12 14:54:20+01:00 Exception in rlpxAccept                    topics="rlpx" thread=0 err="Error: EciesError" stackTrace=
ERR 2018-12-12 14:54:20+01:00 Exception in rlpxAccept                    topics="rlpx" thread=0 err="Error: EciesError" stackTrace=
ERR 2018-12-12 14:54:20+01:00 Exception in rlpxAccept                    topics="rlpx" thread=0 err="Error: EciesError" stackTrace=
ERR 2018-12-12 14:54:20+01:00 Exception in rlpxAccept                    topics="rlpx" thread=0 err="Error: EciesError" stackTrace=
ERR 2018-12-12 14:54:20+01:00 Exception in rlpxAccept                    topics="rlpx" thread=0 err="Error: EciesError" stackTrace=
ERR 2018-12-12 14:54:20+01:00 Exception in rlpxAccept                    topics="rlpx" thread=0 err="Error: EciesError" stackTrace=
ERR 2018-12-12 14:54:20+01:00 Exception in rlpxAccept                    topics="rlpx" thread=0 err="Error: EciesError" stackTrace=
ERR 2018-12-12 14:54:20+01:00 Exception in rlpxAccept                    topics="rlpx" thread=0 err="Error: EciesError" stackTrace=
ERR 2018-12-12 14:54:20+01:00 Exception in rlpxAccept                    topics="rlpx" thread=0 err="Error: EciesError" stackTrace=
ERR 2018-12-12 14:54:20+01:00 Exception in rlpxAccept                    topics="rlpx" thread=0 err="Error: EciesError" stackTrace=
INF 2018-12-12 14:54:25+01:00 Running PeerPool...                        thread=0
INF 2018-12-12 14:54:25+01:00 Exception in rlpxConnect                   topics="rlpx" thread=0 err="(61) Connection refused" exc=Exception remote=Node[5.1.83.226:30303]
INF 2018-12-12 14:54:27+01:00 Exception in rlpxConnect                   topics="rlpx" thread=0 err="(61) Connection refused" exc=Exception remote=Node[5.1.83.226:30303]
INF 2018-12-12 14:54:27+01:00 Exception in rlpxConnect                   topics="rlpx" thread=0 err="(61) Connection refused" exc=Exception remote=Node[40.127.200.157:30303]
INF 2018-12-12 14:54:27+01:00 Exception in rlpxConnect                   topics="rlpx" thread=0 err="(32) Broken pipe" exc=Exception remote=Node[46.101.169.110:30303]
INF 2018-12-12 14:54:27+01:00 Connection established                     thread=0 peer=Node[88.198.47.121:30303]
INF 2018-12-12 14:54:29+01:00 Exception in rlpxConnect                   topics="rlpx" thread=0 err="(32) Broken pipe" exc=Exception remote=Node[8.9.31.130:30303]
INF 2018-12-12 14:54:31+01:00 Exception in rlpxConnect                   topics="rlpx" thread=0 err="(32) Broken pipe" exc=Exception remote=Node[45.77.108.243:30303]
INF 2018-12-12 14:54:33+01:00 Exception in rlpxConnect                   topics="rlpx" thread=0 err="(61) Connection refused" exc=Exception remote=Node[213.32.53.181:30371]
INF 2018-12-12 14:54:34+01:00 Connection established                     thread=0 peer=Node[149.28.146.145:30303]
INF 2018-12-12 14:54:34+01:00 New sync end block number                  thread=0 number=6873311
queue len: 0
SIGSEGV: Illegal storage access. (Attempt to read from nil?)
@stefantalpalaru
Copy link
Contributor

Please test it again. You should now reach the block 49018 error without intermittent network problems.

@Swader
Copy link
Contributor Author

Swader commented Dec 19, 2018

        ... db/db_chain.nim(246, 56) Error: undeclared identifier: 'ValidationResult'

@stefantalpalaru
Copy link
Contributor

stefantalpalaru commented Dec 19, 2018

You need to also "git pull" in all related repos (in this case, nim-eth-common and nim-eth-p2p).

@Swader
Copy link
Contributor Author

Swader commented Dec 19, 2018

No dice it seems.

Brunos-MBP:nimbus swader$ ./nimbus/nimbus
Nimbus Version 0.0.1 [macosx: amd64]
Copyright (C) 2018 Status Research & Development GmbH
SIGSEGV: Illegal storage access. (Attempt to read from nil?)

@Swader
Copy link
Contributor Author

Swader commented Dec 25, 2018

Brand new VM, never touched Nim. Installation from zero. Nimbus does not start, produces same error. All tests with nimble test pass.

@Swader
Copy link
Contributor Author

Swader commented Dec 25, 2018

Reproducible in VM: https://github.com/status-im/nim-vagrant

@Swader
Copy link
Contributor Author

Swader commented Dec 26, 2018

Was running wrong binary. Real one is produced by running nimble nimbus and then running from ./build/nimbus.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants