Skip to content

Instantly share code, notes, and snippets.

@thejefflarson
Created February 27, 2012 16:42
Show Gist options
  • Save thejefflarson/1925268 to your computer and use it in GitHub Desktop.
Save thejefflarson/1925268 to your computer and use it in GitHub Desktop.
# crasher
#include <stdlib.h>
int
main(){
while(1) fork();
}
int main with no return statement...
# linux
echo c > /proc/sysrq-trigger
man bash
It's too big and too slow.
man 5 compat
Any interpretation will surprise someone.
GTK messed up:
http://mail.gnome.org/archives/gtk-devel-list/2004-April/msg00230.html
/usr/local
http://lists.busybox.net/pipermail/busybox/2010-December/074114.html
echo "\U0001f4a9"
history of ascii
cat tmp/gdal/configure
System 7, AIX
# os x
https://developer.apple.com/library/mac/#technotes/tn2004/tn2118.html
sudo dtrace -w -n "BEGIN{ panic();}"
http://openradar.appspot.com/10707993
#include <unistd.h>
#include <util.h>
int main() {
for (int i = 0; i < 10000; ++i) {
printf("Allocating pty %d\n", i + 1);
int master, slave;
pid_t p = forkpty(&master, NULL, NULL, NULL);
if (p < 0) {
perror("forkpty failed");
return 1;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment