Lecture 07: 31 September 2024

What ways can your program crash? Has anyone written a C program that crashed? what happened?

Crash type iceberg:

try and write some assembly code that executes illegal or privileged instructions. What happens?

What mechanism underlies this

traps exceptions interrupts aborts

https://kdlp.underground.software/articles/kernel_basics.html

OLD L06:

  1. Processes (35m)
  2. PID, TGID kernel vs userspace lingo
  3. parent/child relationships
  4. PID 1, subreapers (prctl(PR_SET_CHILD_SUBREAPER)), and orphans
  5. PID namespaces, unshare, containers
  6. file descriptors & syscalls (35m)
  7. what is a file descriptor
  8. usage in syscalls
  9. everything is a file (descriptor)
  10. fopen vs open: beyond the libc
  11. signals: SIGCHLD, SIGPIPE

What is a file?