This is a discussion on Re: Fw: Informix compilation error within the Informix forums, part of the Database Server Software category; --> Hi, this is a very general error message. It means that at some point the program wants to access ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi, this is a very general error message. It means that at some point the program wants to access memory that it does not own. Usually this happens when a pointer having an invalid memory address is dereferenced and the wrong memory address is then attempted to access. The easiest way to locate the problem: use the debugger and step-by-step execution. Start step-by-step in the highest level (function main()) and work top-down from there (i.e. in the next debug-run you step into the function where it crashed in the previous debug run). In the debugger you can also see address values and memory content ... Another method without debugger is to put in print (or printf()) statements at strategic places. Upon running the program you will see the print messages until it crashes. From there you work top-down by adding print statements in lower level functions. This is more tedious as you also have to compile inbetween. Regards, Martin -- Martin Fuerderer IBM Informix Development Munich, Germany Information Management owner-informix-list@iiug.org wrote on 12.12.2005 07:22:07: > After successfully compiling any program, the error "Segmentation fault (core > dumped)" > comes up when I try to run the resultant .4gi. > > any one with sum answers ? > sending to informix-list sending to informix-list |
| ||||
| Well the RDS runner should never coredump unless a) you are linking C code that is overwriting memory. Use Purify on Unix ( http://www-306.ibm.com/software/awdtools/purifyplus/ ) - commercial although you can get eval copies. or valgrind on Linux. b) You are overrunning array bounds. Recompile every 4gl module with c4gl -a and try again. Otherwise you have a RDS bug. Which version are you running? |
| Thread Tools | |
| Display Modes | |
|
|