Reproduction
Try to sign a transaction with signrawtransaction, but instead of using the uncompressed key as third argument, use a compressed key.
Expected behaviour
A meaningful error message.
Actual behaviour
The error message returned will be "Operation not valid with the current stack size".
What version of bitcoin-core are you using?
3bf06e9bac57b5b5a746677b75e297a7b154bdbd