Calling getblocktemplate or getwork in the Bitcoin-Qt console window causes a crash with 0.8.2.
The cause is pMiningKey being uninitialized (it is initialized in StartRPCThreads(), which isn't called if Bitcoin-Qt is not running with the -server flag).
Workaround is to run Bitcoin-Qt with -server.