agarrarse a un clavo ardiendo

Etymology
lit. 'grab oneself to a burning nail'.

Verb

 * 1)  to clutch at straws
 * 2)  any port in a storm