summaryrefslogtreecommitdiff
path: root/ae/b8fa86fc447fc07ea2545b3e9695b43fa87686
blob: 39253dfbd2774499b30d3ec72092b017d62f3a3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
Received: from sog-mx-1.v43.ch3.sourceforge.com ([172.29.43.191]
	helo=mx.sourceforge.net)
	by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.76)
	(envelope-from <toshi@peernova.com>) id 1WrYQe-0001W9-Dg
	for bitcoin-development@lists.sourceforge.net;
	Mon, 02 Jun 2014 20:01:56 +0000
Received-SPF: pass (sog-mx-1.v43.ch3.sourceforge.com: domain of peernova.com
	designates 209.85.128.170 as permitted sender)
	client-ip=209.85.128.170; envelope-from=toshi@peernova.com;
	helo=mail-ve0-f170.google.com; 
Received: from mail-ve0-f170.google.com ([209.85.128.170])
	by sog-mx-1.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128)
	(Exim 4.76) id 1WrYQd-0004k9-KH
	for bitcoin-development@lists.sourceforge.net;
	Mon, 02 Jun 2014 20:01:56 +0000
Received: by mail-ve0-f170.google.com with SMTP id db11so5767966veb.15
	for <bitcoin-development@lists.sourceforge.net>;
	Mon, 02 Jun 2014 13:01:50 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20130820;
	h=x-gm-message-state:mime-version:date:message-id:subject:from:to
	:content-type;
	bh=3YwMyEInXwjrEjV3QY8jkdt+dQpgVCthlEaZNIPN/r8=;
	b=aClhVIgJyuEuDUQEU7y1HMvX3PqR3eWzg0xOl7Ut0U66CwYMEmN8QRBy4PIncsnev+
	Iv7diddZDlGBRisJZXoUx0GiOkpAgGYVCUwR359Tj4EUx2us5nXgBh28A7lFuwWrnXl9
	vSaJgWhuyZIj2cey7i7KlZ3P8IAepLj33YQ8u7neSM1N5yo4MNQhKEQvUSdY/N5xaom5
	CpEHDvvKwlo8zIh6S6iulG2ct/vJsQDepqdWxLUkLLqDHr+1+88rAGHGvEE27ZEiU9H4
	kbbfv/7dr4an5zdH2VkGh5ccJBN5c6p6ov1tzucA0M3/XnKE42Nww2QL8BHu6QwHze6K
	foAQ==
X-Gm-Message-State: ALoCoQmbBHfmIWRJaNNOJ0PCbOwBnYmkUZBHAF08PjVG7PHV1oCWFzuTuJrEICM3yW0BXfZJEmlb
MIME-Version: 1.0
X-Received: by 10.58.227.193 with SMTP id sc1mr3068767vec.43.1401739309917;
	Mon, 02 Jun 2014 13:01:49 -0700 (PDT)
Received: by 10.52.34.146 with HTTP; Mon, 2 Jun 2014 13:01:49 -0700 (PDT)
Date: Mon, 2 Jun 2014 13:01:49 -0700
Message-ID: <CANFXpYOdmweoxXRM_LcnB-jFNHt8kj_B0jTFZ00Jffi7UHvwPA@mail.gmail.com>
From: Toshi Morita <toshi@peernova.com>
To: bitcoin-development <bitcoin-development@lists.sourceforge.net>
Content-Type: multipart/alternative; boundary=047d7bd6b87ca2bccd04fadfdd01
X-Spam-Score: -0.5 (/)
X-Spam-Report: Spam Filtering performed by mx.sourceforge.net.
	See http://spamassassin.org/tag/ for more details.
	-1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for
	sender-domain
	-0.0 SPF_PASS               SPF: sender matches SPF record
	1.0 HTML_MESSAGE           BODY: HTML included in message
X-Headers-End: 1WrYQd-0004k9-KH
Subject: [Bitcoin-development] Another uninitialized memory problem
X-BeenThere: bitcoin-development@lists.sourceforge.net
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: <bitcoin-development.lists.sourceforge.net>
List-Unsubscribe: <https://lists.sourceforge.net/lists/listinfo/bitcoin-development>,
	<mailto:bitcoin-development-request@lists.sourceforge.net?subject=unsubscribe>
List-Archive: <http://sourceforge.net/mailarchive/forum.php?forum_name=bitcoin-development>
List-Post: <mailto:bitcoin-development@lists.sourceforge.net>
List-Help: <mailto:bitcoin-development-request@lists.sourceforge.net?subject=help>
List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/bitcoin-development>,
	<mailto:bitcoin-development-request@lists.sourceforge.net?subject=subscribe>
X-List-Received-Date: Mon, 02 Jun 2014 20:01:56 -0000

--047d7bd6b87ca2bccd04fadfdd01
Content-Type: text/plain; charset=UTF-8

I'm seeing another uninitialized memory problem in bitcoind using valgrind:

tm@tm-VirtualBox:~/bitcoind/bitcoin/src$ valgrind ./bitcoind
==2337== Memcheck, a memory error detector
==2337== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al.
==2337== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info
==2337== Command: ./bitcoind
==2337==
==2337== Conditional jump or move depends on uninitialised value(s)
==2337==    at 0x319176: CWallet::LoadKeyMetadata(CPubKey const&,
CKeyMetadata const&) (wallet.cpp:110)
==2337==    by 0x33645A: ReadKeyValue(CWallet*, CDataStream&, CDataStream&,
CWalletScanState&, std::string&, std::string&) (walletdb.cpp:509)
==2337==    by 0x3374F0: CWalletDB::LoadWallet(CWallet*) (walletdb.cpp:623)
==2337==    by 0x3218FD: CWallet::LoadWallet(bool&) (wallet.cpp:1485)
==2337==    by 0x157F16: AppInit2(boost::thread_group&) (init.cpp:958)
==2337==    by 0x140142: AppInit(int, char**) (bitcoind.cpp:143)
==2337==    by 0x13649E: main (bitcoind.cpp:180)
==2337==

--047d7bd6b87ca2bccd04fadfdd01
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">I&#39;m seeing another uninitialized memory problem in bit=
coind using valgrind:<br><br>tm@tm-VirtualBox:~/bitcoind/bitcoin/src$ valgr=
ind ./bitcoind<br>=3D=3D2337=3D=3D Memcheck, a memory error detector<br>=3D=
=3D2337=3D=3D Copyright (C) 2002-2012, and GNU GPL&#39;d, by Julian Seward =
et al.<br>
=3D=3D2337=3D=3D Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyrig=
ht info<br>=3D=3D2337=3D=3D Command: ./bitcoind<br>=3D=3D2337=3D=3D<br>=3D=
=3D2337=3D=3D Conditional jump or move depends on uninitialised value(s)<br=
>=3D=3D2337=3D=3D=C2=A0=C2=A0=C2=A0 at 0x319176: CWallet::LoadKeyMetadata(C=
PubKey const&amp;, CKeyMetadata const&amp;) (wallet.cpp:110)<br>
=3D=3D2337=3D=3D=C2=A0=C2=A0=C2=A0 by 0x33645A: ReadKeyValue(CWallet*, CDat=
aStream&amp;, CDataStream&amp;, CWalletScanState&amp;, std::string&amp;, st=
d::string&amp;) (walletdb.cpp:509)<br>=3D=3D2337=3D=3D=C2=A0=C2=A0=C2=A0 by=
 0x3374F0: CWalletDB::LoadWallet(CWallet*) (walletdb.cpp:623)<br>
=3D=3D2337=3D=3D=C2=A0=C2=A0=C2=A0 by 0x3218FD: CWallet::LoadWallet(bool&am=
p;) (wallet.cpp:1485)<br>=3D=3D2337=3D=3D=C2=A0=C2=A0=C2=A0 by 0x157F16: Ap=
pInit2(boost::thread_group&amp;) (init.cpp:958)<br>=3D=3D2337=3D=3D=C2=A0=
=C2=A0=C2=A0 by 0x140142: AppInit(int, char**) (bitcoind.cpp:143)<br>
=3D=3D2337=3D=3D=C2=A0=C2=A0=C2=A0 by 0x13649E: main (bitcoind.cpp:180)<br>=
=3D=3D2337=3D=3D<br><br></div>

--047d7bd6b87ca2bccd04fadfdd01--