Re: question about segmentation fault



Hmm.. normally, a segfault indicates that there's something wrong
allocating memory.
You could try starting a segfaulting app in GDB, and give a 'bt' after
it segfaults to see a backtrace.

Judging from the fact tar 1.13 works fine, and 1.14 does not, one would
assume it's either in librt or libpthread.
Since firefox also uses both, I can't be sure which of them is the
culprit. But you could try reinstalling both libraries.

All in all, a system that segfaults on one of those libs could be very
messed up, best backup while you still have a prompt.

regards,

-R-

Ps: sorry if this is a double post. Not sure if the first one went out ok.

Giancarlo Bassi wrote:
I hope this is the right newsgroup to pose my question.

I cannot figure out the main reason why "segmentation fault"
goes out. Therefore I'm seeking such an assistance.

------------------------------------------------------------------
Running tar 1.14, it gives "segmentation fault"
Running tar 1.13 all works fine.

I'd like to understand why, or at least to get some clue.

ldd tar-1.14
librt.so.1 => /lib/librt.so.1 (0x40035000)
libc.so.6 => /lib/libc.so.6 (0x40048000)
libpthread.so.0 => /lib/libpthread.so.0 (0x40166000)
/lib/ld-linux.so.2 (0x40000000)

ldd tar-1.13
libc.so.6 => /lib/libc.so.6 (0x40035000)
/lib/ld-linux.so.2 (0x40000000)

--------------------------------------------------------------
I guess that answer could give me some hint to
understand why also:
firefox
rc.syslog

give me an "segmentation fault" message.

THX,
GB
.



Relevant Pages

  • Re: question about segmentation fault
    ... But you could try reinstalling both libraries. ... a system that segfaults on one of those libs could be very ... I cannot figure out the main reason why "segmentation fault" ... Running tar 1.14, it gives "segmentation fault" ...
    (comp.os.linux)
  • Re: Whats up with apt-get
    ... On Thu, 4 Mar 2004, Guy Fraser wrote: ... > I rebooted and now it segfaults. ... > ...$ sudo apt-get update ...
    (Fedora)
  • Re: No Buffer Overflow
    ... > a simple example of vulnerable code: ... > it segfaults, like the tutorial says. ... The overflow still occurs. ... you shouldn't expect to get predictable results; not even a segmentation fault ...
    (freebsd-questions)
  • BOOST program options and libstdc++5
    ... it segfaults when trying to run the program (gdb): ... Program received signal SIGSEGV, Segmentation fault. ...
    (Debian-User)
  • Re: gfortran and OpenMP
    ... trying to compile and run the following program: ... !$omp end parallel do ... Segmentation fault ... I just tried this with ifort and it segfaults, too, if I don't ...
    (comp.lang.fortran)