Every programmer should read the source to abort() at some point in their life.
1–10 of 61 posts
Re: Every programmer should read the source to abort() at some point in their life.
#2Great article, picking apart low level code like this can be super informative - and you've explained it well.
Re: Every programmer should read the source to abort() at some point in their life.
#3glibc's abort() is even more complex:
http://sourceware.org/git/?p=glibc.git;a=blob;f=stdlib/abort...
Re: Every programmer should read the source to abort() at some point in their life.
#4glibc's abort() is even more complex: http://sourceware.org/git/?p=glibc.git;a=blob;f=stdlib/abort...
Most of the code in glibc has been heavily Dreppered.
Re: Every programmer should read the source to abort() at some point in their life.
#5Link to abort.c source:
https://gist.github.com/1093410
Re: Every programmer should read the source to abort() at some point in their life.
#6Every programmer should implement an operating system and compiler. I did. Now get off my lawn.
Re: Every programmer should read the source to abort() at some point in their life.
#7Re: Every programmer should read the source to abort() at some point in their life.
#8Reminded me of "5 ways to reboot a PC, none of them reliable" from a couple months ago.
http://news.ycombinator.com/item?id=2607116
Interesting how fundamentally simple tasks like aborting a process or rebooting the machine have very nontrivial (even kludgey) implementations.
Re: Every programmer should read the source to abort() at some point in their life.
#9Every programmer should implement an operating system and compiler. I did. Now get off my lawn.
ACK
Re: Every programmer should read the source to abort() at some point in their life.
#10Plan 9's abort causes an access fault, causing the current process to enter the `Broken' state. The process can then be inspected by a debugger. Pretty elegant.
http://plan9.bell-labs.com/sources/plan9/sys/src/libc/9sys/a...