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

geth crashes with signal SIGBUS: bus error code=0x2 #15051

Closed
SinghalB opened this issue Aug 28, 2017 · 5 comments
Closed

geth crashes with signal SIGBUS: bus error code=0x2 #15051

SinghalB opened this issue Aug 28, 2017 · 5 comments

Comments

@SinghalB
Copy link

System information

Geth version: geth version
Geth
Version: 1.7.0-unstable
Git Commit: ebf41d1
Architecture: amd64
Protocol Versions: [63 62]
Network Id: 1
Go Version: go1.8.1
Operating System: linux
GOPATH=
GOROOT=/usr/lib/go-1.8

OS & Version: Ubuntu 14.04.5 LTS (Linux Kernel: 4.4.0-42-generic)

Expected behaviour

Should just work.

Actual behaviour

unexpected fault address 0x7f10dab0e000
fatal error: fault
[signal SIGBUS: bus error code=0x2 addr=0x7f10dab0e000 pc=0x46109b]

Steps to reproduce the behaviour

./build/bin/geth --datadir "/dev/shm/data1" --ethash.dagdir "/dev/shm/ethash" init /root/privGenesis.json
./build/bin/geth --datadir "/dev/shm/data1" --ethash.dagdir "/dev/shm/ethash" --rpc console

personal.newAccount()
personal.unlockAccount(eth.accounts[0])
miner.start()
INFO [08-28|12:07:14] Generating DAG in progress epoch=1 percentage=91 elapsed=2m15.065s
unexpected fault address 0x7f10dab0e000
fatal error: fault
[signal SIGBUS: bus error code=0x2 addr=0x7f10dab0e000 pc=0x46109b]

Backtrace

goroutine 405 [running]:
runtime.throw(0xf48d1b, 0x5)
        /usr/lib/go-1.8/src/runtime/panic.go:596 +0x95 fp=0xc424507e48 sp=0xc424507e28
runtime.sigpanic()
        /usr/lib/go-1.8/src/runtime/signal_unix.go:287 +0xf4 fp=0xc424507e98 sp=0xc424507e48
runtime.memmove(0x7f10dab0dfc8, 0xc4266d3b40, 0x40)
        /usr/lib/go-1.8/src/runtime/memmove_amd64.s:191 +0x67b fp=0xc424507ea0 sp=0xc424507e98
github.com/ethereum/go-ethereum/consensus/ethash.generateDataset.func2(0xc421888080, 0x407fff80, 0x4, 0xc428324000, 0x407f30, 0x407f30, 0x0, 0x7f10ab800008, 0x407fff80, 0x407fff80, ...)
        /root/ethereum/go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/consensus/ethash/algorithm.go:275 +0x1f4 fp=0xc424507f58 sp=0xc424507ea0
runtime.goexit()
        /usr/lib/go-1.8/src/runtime/asm_amd64.s:2197 +0x1 fp=0xc424507f60 sp=0xc424507f58
created by github.com/ethereum/go-ethereum/consensus/ethash.generateDataset
        /root/ethereum/go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/consensus/ethash/algorithm.go:281 +0x3ad

@holiman
Copy link
Contributor

holiman commented Aug 31, 2017

So, the /dev/shm is a memory-backed virtual folder? How much did you allocate for it when you mounted it?

I tried your example (without using /dev/shm), and the ethash.dagdir quickly filled 1.8G.

@SinghalB
Copy link
Author

@holiman

Yes, around 2GB was allocated for /dev/shm and ethhash.dagdir took up all of the space.
I re-tried with 4GB /dev/shm and it worked fine.

Thanks a lot, closing the issue!

@Jacodelange
Copy link

I still have this issue, my folder is not a memory-backed virtual folder. Just a normal folder I created in the home directory, there is still 50gb available. After a while it still crashes even after creating a swap area as other people suggested

@NIVJAIN
Copy link

NIVJAIN commented Oct 29, 2018

I have the same issue on private eth network, mine a normal folder as well and no swap. around 19 gig still available.

@bigfoot31
Copy link

for future visitors, check if memory as well as file storage is totally used up.

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

6 participants
@holiman @bigfoot31 @Jacodelange @SinghalB @NIVJAIN and others