You are viewing a single thread.
View all comments
18 points

cat /dev/zero > "/proc/$(pidof vim)/mem" is my favorite dumb way. Clear its memory, wait for the segfault.

permalink
report
reply
3 points

…you can write to program memory? Idk how exactly but that feels like a security risk.

permalink
report
parent
reply
6 points

It’s your process, why shouldn’t you be able to write to it? Vi is certainly doing it…

permalink
report
parent
reply
5 points

You do need to be root to do it to arbitrary processes.

permalink
report
parent
reply
1 point
*

dumb way.

Get fancy, add progress bar: pv < /dev/zero > “/proc/$(pidof vim)/mem”

permalink
report
parent
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics

Community stats

  • 3.3K

    Monthly active users

  • 1K

    Posts

  • 38K

    Comments