• Skip to primary navigation
  • Skip to content
  • Skip to footer

Nakamoto Studies Institute

  • Satoshi Writings
    • Satoshi’s White Paper
    • Satoshi Nakamoto Emails
    • Satoshi Nakamoto Forum Writings
  • Literature
    • Daniel Krawisz Archive
  • About NSI
  • Newsletter
  • Support
You are here: Home / Emails / Re: Crash in bitcoin 0.1.0

Re: Crash in bitcoin 0.1.0

January 10, 2009 by bitcoincash

From: Satoshi Nakamoto <satoshi@vistomail.com>
Date: Sat, Jan 10, 2009 at 2:59 PM
Subject: Re: Crash in bitcoin 0.1.0
To: hal.finney@gmail.com

I was temporarily able to reproduce the bug and narrowed it down to the “mapAddresses.count” in the following code. It was absolutely the last piece of code to go in and mainly only got tested with the MSVC build. It’s not essential and I’m inclined to turn off optimization and delete the section of code until I figure out what’s going on.

I’m attaching a dbg exe you can try that deletes the line of code and turns off optimization. I’m not able to reproduce it anymore at the moment.

irc.cpp:
if (pszName[0] == 'u') {
CAddress addr;
if (DecodeAddress(pszName, addr)) {
CAddrDB addrdb;
if (AddAddress(addrdb, addr))
printf("new "); else
{
// make it try connecting sooner CRITICAL_BLOCK(cs_mapAddresses)
if (mapAddresses.count(addr.GetKey())) mapAddresses[addr.GetKey()].nLastFailed = 0;
}
addr.print(); }
else {
printf("decode failed\n");
  
} }

Yes, actually the version with MSVC symbols would be better, that is >the one I am using.
>
>I found that if I launched this one from a cygwin shell, it does not >crash. But if I launch it from Windows, double-clicking on the file,
>it does crash similarly to the previous version. However, I am pretty >sure that the previous version did crash even when I launched it from >cygwin.
>
>I have to go out but I’ll leave this version running for a while. >
>Hal

Filed Under: Emails Tagged With: code

Support NSI with Bitcoin Cash

Did you like this piece? Please consider dropping a tip to support our ongoing efforts to archive the work of Satoshi Nakamoto. Small tips are only made possible with Bitcoin Cash!

Footer

Categories

  • Code
  • Emails
  • Forums
  • Literature
  • Uncategorized

Keywords

adam back anonymous b-money bitcoin.org Bitcoin: A Peer-to-Peer Electronic Cash System bitcointalk bug commerce double spend dustin d. trammel gavin andresen generate coins gnutella gpu hal finney hashcash hash cash inflation james a. donald liberty standard linux micropayment mike hearn moore's law napster nicholas bohm node non-reversible transaction p2p foundation proof-of-work ray dillinger satoshi nakamoto scaling Simplified Payment Verification sirius-m the crypto anarchist manifesto" the cryptography mailing list timothy c. may tor transaction fee v0.1.6 visa wei dai white paper [bitcoin-list]

Support NSI with Bitcoin Cash

Copyright © 2020 · Genesis Sample on Genesis Framework ·