Bitcoin Forum
May 08, 2024, 07:19:44 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Segmentation fault  (Read 1361 times)
justusranvier (OP)
Legendary
*
Offline Offline

Activity: 1400
Merit: 1009



View Profile
February 14, 2013, 12:01:17 PM
 #1

Since the last time I upgraded (0.87.2) I've noticed that Armory only runs for a few days before crashing. I finally ran it from the console so that I could get the error message. This most recent time I started up at block 220285 and it ran fine until this:

Code:
New Block:  220990
Added new blocks to memory pool: 1
New Block:  220991
Added new blocks to memory pool: 1
New Block:  220992
Added new blocks to memory pool: 1
New Block:  220993
Added new blocks to memory pool: 1
New Block:  220994
Added new blocks to memory pool: 1
New Block:  220995
Added new blocks to memory pool: 1
New Block:  220996
New block file split! /home/justus/.bitcoin/blocks/blk00042.dat
Segmentation fault
1715195984
Hero Member
*
Offline Offline

Posts: 1715195984

View Profile Personal Message (Offline)

Ignore
1715195984
Reply with quote  #2

1715195984
Report to moderator
Even in the event that an attacker gains more than 50% of the network's computational power, only transactions sent by the attacker could be reversed or double-spent. The network would not be destroyed.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715195984
Hero Member
*
Offline Offline

Posts: 1715195984

View Profile Personal Message (Offline)

Ignore
1715195984
Reply with quote  #2

1715195984
Report to moderator
1715195984
Hero Member
*
Offline Offline

Posts: 1715195984

View Profile Personal Message (Offline)

Ignore
1715195984
Reply with quote  #2

1715195984
Report to moderator
etotheipi
Legendary
*
Offline Offline

Activity: 1428
Merit: 1093


Core Armory Developer


View Profile WWW
February 14, 2013, 12:25:26 PM
 #2

Since the last time I upgraded (0.87.2) I've noticed that Armory only runs for a few days before crashing. I finally ran it from the console so that I could get the error message. This most recent time I started up at block 220285 and it ran fine until this:

Code:
New Block:  220990
Added new blocks to memory pool: 1
New Block:  220991
Added new blocks to memory pool: 1
New Block:  220992
Added new blocks to memory pool: 1
New Block:  220993
Added new blocks to memory pool: 1
New Block:  220994
Added new blocks to memory pool: 1
New Block:  220995
Added new blocks to memory pool: 1
New Block:  220996
New block file split! /home/justus/.bitcoin/blocks/blk00042.dat
Segmentation fault

Yeah, the funny thing about that is I just completed a pretty exhaustive set of unit-tests using the 0.87.2-beta code base, to make sure that shouldn't happen.  I set up the test with complicated blockfile splits and it runs flawlessly.  But on the real network, it still segfaults... Unfortunately, I noticed it the night before I went out of town for two weeks so there was nothing I could do.  If you've seen some of my other threads about Armory managing its own blockchain, that is in my immediate plans and will make this problem go away entirely -- in fact a lot of problems will go away, since most are related to colliding with bitcoind/-qt file management.

I am going to start the new blockchain management stuff (using leveldb), and get a feel for how long it's going to take.  If it's going to be smooth, I might just skip fixing this, since it's strictly an artifact of "the old way."  Or maybe I'll do both ... I'll run Armory in the debugger while writing the new code and see if I can catch the segfault and put out a temporary fix.

Founder and CEO of Armory Technologies, Inc.
Armory Bitcoin Wallet: Bringing cold storage to the average user!
Only use Armory software signed by the Armory Offline Signing Key (0x98832223)

Please donate to the Armory project by clicking here!    (or donate directly via 1QBDLYTDFHHZAABYSKGKPWKLSXZWCCJQBX -- yes, it's a real address!)
hackjealousy
Newbie
*
Offline Offline

Activity: 53
Merit: 0



View Profile
April 05, 2013, 02:10:42 AM
 #3

Bump.

I get these crashes as well.  Is there a branch, different from master, that I should try?
etotheipi
Legendary
*
Offline Offline

Activity: 1428
Merit: 1093


Core Armory Developer


View Profile WWW
April 05, 2013, 02:29:24 AM
 #4

Bump.

I get these crashes as well.  Is there a branch, different from master, that I should try?

Nope, this is a bug that I've tried to fix a couple times, and I have some pretty brutal unit-tests to try to squeeze it out (which pass, by the way), but it still fails on the actual network.

I would spend more time to fix it, but it's actually going to become irrelevant in a couple weeks.  When I get the persistent blockchain utilities implemented, I won't even be reading block files any more and this won't be a problem (I will use it for full scans, but not for each block update).

This is also why I haven't spent much time on armoryd... because it's not very useful as a server if it's just going to crash like that every few days Undecided

Founder and CEO of Armory Technologies, Inc.
Armory Bitcoin Wallet: Bringing cold storage to the average user!
Only use Armory software signed by the Armory Offline Signing Key (0x98832223)

Please donate to the Armory project by clicking here!    (or donate directly via 1QBDLYTDFHHZAABYSKGKPWKLSXZWCCJQBX -- yes, it's a real address!)
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!