If "getaccountaddress" is the first RPC method to be called on an empty wallet, it will hang and crash the RPC interface. To reproduce:
- remove wallet.dat
- start "./bitcoind"
- check if running with "./bitcoind help"
- run "./bitcoind getaccountaddress foo"
- observe that the call never returns
Note: This will not happen, if you call "getinfo" or "getnewaddress" (and possibly others) before the call to getaccountaddress.
Some debugging shows the hang to happen on line 348 in rpc.cpp when GetKeyFromKeyPool() is called.