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

Wallet crash on raspberry pi (3.7.5, 3.7.7 and 3.7.11.0) #912

Closed
dduenker opened this issue Feb 2, 2018 · 10 comments
Closed

Wallet crash on raspberry pi (3.7.5, 3.7.7 and 3.7.11.0) #912

dduenker opened this issue Feb 2, 2018 · 10 comments

Comments

@dduenker
Copy link

dduenker commented Feb 2, 2018

My wallet.dat seems to crash gridcoinresearchd, it dies with a segmentation fault, when it tries to load the wallet.
This happens as well on versions 3.7.5 and 3.7.7.

The same wallet.dat produces no crash on 3.7.7, when run on x64 linux.
The same happens with backups of the wallet.dat.

EDIT:
wallet.zip

OS: ubuntu mate 16.04

debug.log (3.7.5)

AppInit
Boost Version: Using Boost 1.58.0
Using specific arg defaultEntering debug mode.
Entering GRC debug mode.
Entering GRC debug mode.
02/02/18 10:39:26 



















02/02/18 10:39:26 ***************************************** GRIDCOIN RESEARCH ***************************************************
02/02/18 10:39:26 Gridcoin version v3.7.5.0-unk ()
02/02/18 10:39:26 Using OpenSSL version OpenSSL 1.0.2g  1 Mar 2016
02/02/18 10:39:26 Default data directory /home/pi/.GridcoinResearch
02/02/18 10:39:26 Used data directory /home/pi/.GridcoinResearch
02/02/18 10:39:26 dbenv.open LogDir=/home/pi/.GridcoinResearch/database ErrorFile=/home/pi/.GridcoinResearch/db.log
02/02/18 10:39:26 Bound to [::]:32749
02/02/18 10:39:26 Bound to 0.0.0.0:32749
02/02/18 10:39:26 Loading block index...
02/02/18 10:39:26 Mode=Prod
02/02/18 10:39:26 Opening LevelDB in /home/pi/.GridcoinResearch/txleveldb
02/02/18 10:39:26 Transaction index version is 180015
02/02/18 10:39:26 Opened LevelDB successfully
02/02/18 10:39:26 Loading DiskIndex 0
02/02/18 10:39:26 Time to memorize diskindex containing 1 blocks :               2ms
02/02/18 10:39:26 Time to calculate Chain Trust               0ms
02/02/18 10:39:26 LoadBlockIndex(): hashBestChain=000005a247b397eadfef  height=0  trust=1048577  date=10/11/14 13:22:57
02/02/18 10:39:26 Verifying last 0 blocks at level 1
02/02/18 10:39:26 Time to Verify Blocks               0ms
02/02/18 10:39:26 Set up RA RA Complete - RA Time               0ms
02/02/18 10:39:26  block index              42ms
02/02/18 10:39:26 Loading wallet...

debug.log (3.7.7)

AppInit
Boost Version: Using Boost 1.58.0
Using specific arg defaultEntering debug mode.
Entering GRC debug mode.
Entering GRC debug mode.
02/02/18 10:41:50 



















02/02/18 10:41:50 ***************************************** GRIDCOIN RESEARCH ***************************************************
02/02/18 10:41:50 Gridcoin version v3.7.7.0-unk ()
02/02/18 10:41:50 Using OpenSSL version OpenSSL 1.0.2g  1 Mar 2016
02/02/18 10:41:50 Default data directory /home/pi/.GridcoinResearch
02/02/18 10:41:50 Used data directory /home/pi/.GridcoinResearch
02/02/18 10:41:50 dbenv.open LogDir=/home/pi/.GridcoinResearch/database ErrorFile=/home/pi/.GridcoinResearch/db.log
02/02/18 10:41:50 Bound to [::]:32749
02/02/18 10:41:50 Bound to 0.0.0.0:32749
02/02/18 10:41:50 Loading block index...
02/02/18 10:41:50 Mode=Prod
02/02/18 10:41:50 Opening LevelDB in /home/pi/.GridcoinResearch/txleveldb
02/02/18 10:41:50 Transaction index version is 180015
02/02/18 10:41:50 Opened LevelDB successfully
02/02/18 10:41:50 Loading DiskIndex 0
02/02/18 10:41:50 Time to memorize diskindex containing 1 blocks :               5ms
02/02/18 10:41:50 Time to calculate Chain Trust               0ms
02/02/18 10:41:50 LoadBlockIndex(): hashBestChain=000005a247b397eadfef  height=0  trust=1048577  date=10/11/14 13:22:57
02/02/18 10:41:50 Verifying last 0 blocks at level 1
02/02/18 10:41:50 Time to Verify Blocks               0ms
02/02/18 10:41:50 Set up RA RA Complete - RA Time               0ms
02/02/18 10:41:50  block index              43ms
02/02/18 10:41:50 Loading wallet...
AppInitAppInit

I will try to reproduce this on a fresh pi, is there other information i can provide?

@denravonska
Copy link
Member

denravonska commented Feb 3, 2018

Hmmm, unable to produce on mine using my wallet.dat :( Will try from a 0-chain.

Edit: That worked as well. Let me know how your other test goes.

@Quezacoatl1
Copy link
Contributor

I see a similar behavior on my pi 2, Ubuntu 16.04, 3.7.7.0
I tried syncing from 0 and from snapshot. I did not try without a wallet.DAT yet.

I believe the daemon dies in the end of the block loading process as it takes much more time for it to die if syncing from snapshot

@dduenker
Copy link
Author

dduenker commented Feb 5, 2018

I did another test on a fresh installation of Ubuntu Mate 16.04 and Gridcoin 3.7.7.0, using my wallet.dat and had the crash again.
Would it help, if i gave access to my wallet.dat to a developer?

@denravonska
Copy link
Member

It would help, yeah. If you feel uncomfortable sharing your main wallet, try to reproduce the issue with an empty wallet. Create a new wallet.dat on the same computer as your current one if possible, and then see if that dat can be used to trigger the error on the Pi.

@dduenker
Copy link
Author

dduenker commented Feb 5, 2018

I noticed, that when i remove the optimization flag -O2 from makefile.unix, the resulting binary does not crash.

@iFoggz
Copy link
Member

iFoggz commented Feb 6, 2018

interesting. sounds like optimization problems?

tomasbrod added a commit to tomasbrod/Gridcoin-Wallet that referenced this issue Feb 8, 2018
 - Move context sensitive DPoR block checks to ConnectBlock, gridcoin-community#912 (@tomasbrod)
 - Check incomming blocks for malformed DPoR signature gridcoin-community#912
 - Corect Tally height on Init, gridcoin-community#917 (@denravonska)
denravonska added a commit that referenced this issue Mar 1, 2018
Fixed:
 - Move context sensitive DPoR block checks to ConnectBlock, #912 (@tomasbrod).
 - Check incoming blocks for malformed DPoR signature, #912.
 - Corect tally height on init, #917 (@denravonska).
 - Prevent staking of a block with a failed signature, #948 (@Foggyx420).
 - Fix UI and RPC slowdown regression, #961 (@denravonska).
 - Fix Debian lint errors, #886, #885, #884, #883 (@caraka).
 - Fix fork issue due to research age calculation inconsistencies, #939
   (@denravonska).
 - Fix crashes when tallying, #934 (@denravonska).
 - Revert reorganize of the chain trust becomes less than what it was, #957
   (@tomasbrod).
 - Fix sync issues with incorrectly accepted v8 beacons, #979 (@tomasbrod).

Changed:
  - Double check PoS kernel, #958 (@tomasbrod).
  - Don't tally until V9 to speed up syncing, #943 (@denravonska).
  - Double check proof of stake kernel, #958 (@tomasbrod).
@Quezacoatl1
Copy link
Contributor

From Slack::
ravon [6:31 PM]
I wonder if it's 32 vs 64 bit issues on int widths. Just speculating.

@tomasbrod
Copy link
Member

I saw this on my pi.

@dduenker dduenker changed the title Wallet crash on raspberry pi (3.7.5 and 3.7.7) Wallet crash on raspberry pi (3.7.5, 3.7.7 and 3.7.11) Apr 26, 2018
@dduenker dduenker changed the title Wallet crash on raspberry pi (3.7.5, 3.7.7 and 3.7.11) Wallet crash on raspberry pi (3.7.5, 3.7.7 and 3.7.11.0) Apr 26, 2018
@dduenker
Copy link
Author

dduenker commented Apr 26, 2018

I just have this issue again with a freshly generated wallet.
Again it loads fine, when i compile gridcoinresearchd with -O0, but the binary provided in the ppa crashes.

I edited my first post and attached the wallet.dat, which crashes on my pi, as zip.

@jamescowens
Copy link
Member

I believe this issue is resolved with newer builds. I am closing this issue. If it happens again reply to the issue and I will reopen.

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