From: David E. <de...@us...> - 2005-06-16 18:04:58
|
> I am getting "segmentation fault" error while I am > executing program. > The program is the result of compilation of called and > calling program. Compilation goes fine. > When I run gdb the output is as follows: A "segmentation fault", when using main and sub-programs, can be caused by improper parameter passing. > [Thread debugging using lib thread_db enabled] > [New Thread - 151214400 (LWP 7591)] > Program received signal SIGSEGV, segmentation fault > [Switching Thread - 151214400 (LWP 7591)] > 0x00a5e4da in memcpy () from /lib/tls/libc.so.6 > > I am using TC 0.62 on Fedora Core 3 linux. First, TC does not have any native support for 'Threads'. Since the TC stabs generation, required by GDB, is not being maintained, it is not recommended that GDB be used to debug TC programs. The old fashioned 'DISPLAY' statement should work, in isolating the problem statement. |