Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
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?
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.