invalid memory --- #include "stdio.h" int main() { char *ptr = (char*)0xdeadbeef; printf("%s\n", *ptr); // char *ptr = (char*)0xdeadbeef; // *ptr='a'; } exploding the heap --- queue_t q; while(1){ enqueue(&q, NULL); } exploding the heap, normal OS? --- #include "stdlib.h" #include "stdio.h" int main() { int mem = 0; while(1) { void *xyz = malloc(1024*1024); // 1M mem += 1; printf("allocated: %.3fG\n", mem/1024.0); } } gdb for egos app --- (gdb) b helloworld.c:main (gdb) add-symbol-file build/release/user/helloworld.elf (gdb) p core_to_proc_idx[core_in_kernel] (gdb) b helloworld.c:main if core_to_proc_idx[core_in_kernel]==5