Hello Linux-People,
I have the funny effect that some programs written by me are
terminated by a SIGSEGV. When running them in gdb 4.16 it shows up
that the segfaults appear at the very end of a function, i.e., in the
line that contains the closing "}". It is interesting that gdb also
gets sometimes mixed up with the function names. For example, it
outputs a segfault in somefunction() in test.c line 232: -> } but
somefunction() is located at a position far away from line 232 in
test.c.
This behaviour appeared first and mostly (but not exclusively) when I
tried to debug my program with the Electric Fence library in order to
check for malloc-errors.
I have gcc 2.7.2, gdb 4.16 (binary from slackware) and libc
5.4.33. I'm afraid I have some incompatible versions of system
software in my setup. Because my old gprof did not run anymore I
recently updated to binutils 2.8.1.
Has someone made similar experiences or an idea how to fix this?
Thanks for your answers,
Rainer
--
*** ____ ****** . * . ******* Dipl.-Ing. Rainer Menzner ********************
( / \ /| /| Ruhr-Universitaet Bochum
/ | / | / | Institut fuer Neuroinformatik
/____/ / |/ | __ D-44780 Bochum, Germany
/ \ / ' | ( / ----------------------------------------------
(/ \_ o (/ | -/- o
********************* /--) ** Tel. +49-234/700-7978 ************************
WWW: http://www.neuroinformatik.ruhr-uni-bochum.de/ini/PEOPLE/rmz/top.html