What does a “segmentation fault” or “bus error” mean?
It often means you’re not using pointers correctly. UNIX usually generates this error if you try to dereference a NULL pointer, or a pointer that you never initialized. • coff2noff fails when I try to run it on programs in the ‘test’ directory; it gives me error messages like “can’t handle both bss and sbss” or “can’t handle both data and rdata”. This is a known limitation of the standard Nachos distribution. Here’s a workaround provided by Dr. F: It’s a known limitation of our configuration. It’s actually the linker that’s screwed up. Have him put the following in his test directory, called nachos.ld and change -T script to -T ./nachos.ld to his LDFLAGS. Works like a charm, and took me forever to find. 🙂 (Most people don’t have the problem, so I didn’t put the code in the tarball.) SEARCH_DIR(/vex/gnu/decstation-ultrix/lib); ENTRY(__start) SECTIONS { .text : { _ftext = . ; *(.init) *(.text) etext = .; _etext = .; } .data : { *(.rdata) *(.data) *(.sdata) *(.scommon) } .bss : { *(.bss