12 while (1) continue; // Frame bar
15 static void foo(void (*boomer)()) {
17 boomer(); // Frame foo
20 static void lwp_main(void *unused) {
22 foo(bar); // Frame lwp_main
25 int main(int argc, char **argv) {
28 static const size_t ssize = 16 * 1024;
31 stack = malloc(ssize);
32 _lwp_makecontext(&uc, lwp_main, NULL, NULL, stack, ssize);
33 _lwp_create(&uc, 0, &lid);
34 while (sem != 1) continue;
35 kill(getpid(), SIGSEGV);