| 
      
      
      From: David E. <de...@ar...> - 2003-10-20 17:56:11
      
     | 
| On 19/10/03, Rod Schell wrote: > I have a program was compiled and running with no > errors until I made a small change. > Now I have no syntax errors but I get a Segmentation > fault error during the compile. > Is there a way for me to find out what the Segmentation > fault error is? Yes there is. The compiler must compiled with the debugging information, or the '-g' flag. This is not the default. First, delete or rename the old TC binary. Compile the compiler 'htcobol' using the debug flag '-g'. This can be done using the 'configure --enable-debug-all' flag, or by the manual addition of the '-g' flag to the 'compiler' make files. Copy or install the new compiler binary. Now use GDB to trace execution as follows. $gdb htcobol (gdb) r -P -v source.cob (gdb) ... (gdb) ba (gdb) q This will normally give you the source file and line were the segmentation fault occurs. Alternatively you could send me the source code. Hope this helps. |