With a corrupt wallet.dat, bitcoin-qt segfaults:
Bitcoin version v0.8.5.0-gef14a26-beta ()
Using OpenSSL version OpenSSL 1.0.1e 11 Feb 2013
Startup time: 2013-11-30 04:31:40
Default data directory /home/rena/.bitcoin
Using data directory /home/rena/.bitcoin
Using at most 7 connections (1024 file descriptors available)
Using 8 threads for script verification
init message: Verifying wallet...
dbenv.open LogDir=/home/rena/.bitcoin/database ErrorFile=/home/rena/.bitcoin/db.log
Bound to [::]:8333
Bound to 0.0.0.0:8333
init message: Loading block index...
Opening LevelDB in /home/rena/.bitcoin/blocks/index
Opened LevelDB successfully
Opening LevelDB in /home/rena/.bitcoin/chainstate
Opened LevelDB successfully
LoadBlockIndexDB(): last block file = 96
LoadBlockIndexDB(): last block file info: CBlockFileInfo(blocks=142, size=39190683, heights=272083...272223, time=2013-11-29...2013-11-30)
LoadBlockIndexDB(): transaction index disabled
LoadBlockIndexDB(): hashBestChain=0000000000000004a4f5b35063a4ff280d5caf21010edab52a5bb8d67bf873a6 height=272223 date=2013-11-30 04:17:49
init message: Verifying blocks...
Verifying last 288 blocks at level 3
No coin database inconsistencies in last 46 blocks (34503 transactions)
block index 9900ms
init message: Loading wallet...
wallet 2010ms
init message: Rescanning...
Rescanning last 272223 blocks (from block 0)...
rescan 360427ms
init message: Loading addresses...
Loaded 15456 addresses from peers.dat 79ms
mapBlockIndex.size() = 272226
nBestHeight = 272223
setKeyPool.size() = 100
mapWallet.size() = 4
mapAddressBook.size() = 2
dnsseed thread start
msghand thread start
opencon thread start
net thread start
upnp thread start
addcon thread start
dumpaddr thread start
Loading addresses from DNS seeds (could take a while)
init message: Done loading
ERROR: CTransaction::CheckTransaction() : vout empty
ERROR: CTxMemPool::accept() : CheckTransaction failed
ERROR: CTransaction::CheckTransaction() : vout empty
ERROR: CTxMemPool::accept() : CheckTransaction failed
ERROR: CTransaction::CheckTransaction() : vout empty
ERROR: CTxMemPool::accept() : CheckTransaction failed
ERROR: CTransaction::CheckTransaction() : vout empty
ERROR: CTxMemPool::accept() : CheckTransaction failed
refreshWallet
Nov 29 23:37:53 guilmon kernel: [2249560.460653] bitcoin-qt[28291]: segfault at 118 ip 00007f43141e1f74 sp 00007fff4fc99c50 error 4 in libpthread-2.17.so[7f43141d8000+17000]
An (empty) wallet that triggers this issue is here: https://dl.dropboxusercontent.com/u/105169324/broken-wallet.dat