Unix Technical Forum

Re: Fw: Informix compilation error

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 ...


Go Back   Unix Technical Forum > Database Server Software > Informix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-20-2008, 10:50 AM
Martin Fuerderer
 
Posts: n/a
Default Re: Fw: Informix compilation error


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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-20-2008, 10:50 AM
david@smooth1.co.uk
 
Posts: n/a
Default Re: Fw: Informix compilation error


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?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:53 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com