I have a project where one function (reading metadata from an Icecast stream [0]) was causing a memory leak and ultimately consuming all of it.
I don't remember all the details but I've still not be able to find the bug.
But this being in Elixir I "fixed it" with Task, TaskSupervisor and try/catch/rescue.
Not really a win but it is still running fine to this day.
[0] https://github.com/conradfr/ProgRadio/blob/1fa12ca73a40aedb9...