Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What does a “segmentation fault” or “bus error” mean?

0
Posted

What does a “segmentation fault” or “bus error” mean?

0

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

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123