Priapism is a rare condition resulting in an uncontrolled erection lasting for an unusually long time. It can be painful.