I have found the following series of RPC calls that can make bitcoind crash. You need to know the rpc username and password, as well as the wallet password.
#!/bin/bash
RPCUSER=1
RPCPASSWORD=2
WALLETPASSWORD=1
set -e
for n in {1..999};
do
bitcoind -rpcuser=$RPCUSER -rpcpassword=$RPCPASSWORD walletpassphrase $WALLETPASSWORD 99999
bitcoind -rpcuser=$RPCUSER -rpcpassword=$RPCPASSWORD walletlock
echo -n "$n "
done
This is due to the re-locking not killing the previous re-locking thread before starting itself. This has a negative impact on my application, which does frequent locks and unlocks.