|
From: David E. <de...@us...> - 2005-07-15 06:28:57
|
ravi : > Could someone pls help me with the following? > I am able to compile the programs without any error. > But I get "segmentation fault" on executing the binary. > One is calling program and the other called program. > gdb is also of no use in this case. I am unable to > proceed any further. Pls help. > I have attached both the programs in one single file. There is some sort of memory corruption problem in one of the literals or identifiers. This is causing a segmentation fault when one of the identifiers gets initialized due to the VALUE clause. Due to the large amount of literals and identifiers it is difficult to isolate the problem, as the memory location where the problem occurs may have only a casual relation to the problem. And since the memory location is corrupt, it is difficult, if not impossible, to identify the problem statement. Anyway I will try to isolate the problem. BTW, if you which to look at the problem just compile the run-time with the GCC '-g' option, and set the '.gdbinit' file with a break-point at 'b tcob_move'. The run the tests program (gdb BPVITD3), and use the continue command. |