Comment 99 for bug 743323

Revision history for this message
Johan Walles (walles) wrote :

To work around this you can play with the kernel's overcommit settings:

sudo bash
echo 100 > /proc/sys/vm/overcommit_ratio
echo 2 > /proc/sys/vm/overcommit_memory
exit
vlc

Now, when vlc runs amok, a memory allocation will fail and vlc will crash.

Note that messing with the overcommit settings can crash your machine (until you reboot) and the 100 value may need tuning. If processes start crashing before you even start VLC, raise it by 50. If your machine goes down rather than just VLC crashing, lower it by 50.