RE: RE: segmentation fault
Posted in 2009
Felix-
I'm not a Linux guru by any stretch of the imagination, so I'm
cross posting this to the more general Informix news list,
comp.databases.informix. You will have to look for responses there or
subscribe to the informix list (not the same as IDS list) through the
iiug. You would probably do well to subscribe in any case, because a
fair bit of useful information passes through there.
For those who didn't see the original post to IDS list, I'm adding it to
the end.
As to the current issue, my new best guess is that it may have something
to do with the curses or ncurses library, but that's just a wild guess.
--EEM
> -----Original Message-----
> From: FELIX MWANGO MUTALE [mailto:fmutale02@yahoo.com]
> Sent: Monday, April 20, 2009 2:57 AM
> To: Everett Mills
> Subject: Re: RE: segmentation fault []
>
> The following e-mail was sent to you via IDS Forum from FELIX MWANGO
> MUTALE (fmutale02@yahoo.com) at IP address 196.46.223.3.
>
>
************************************************************************
**
> *****
>
> Re: RE: segmentation fault
>
> Hello Everett,
>
> Thanks for your response. I have tried your suggestion but to no
avail. I
> am just wondering does RHEL 5 fully support the following Informix
> products?
> Informix SE version 7.26 UC6R1
> Informix 4gl Developer Version 7.32 UC4
> Informix 4gl Runtime Version 7.32 UC4
> Informix 4gl Compiler RT Version 7.32 UC3
> Informix Sql Development Version 7.32 UC4
> Informix Sql Runtime Version 7.32 UC4
>
> If it does, what environmental variables need to be set ? I have the
> following:
> PATH=$PATH:$HOME/phaseI/bin>
> export PATH
> export DBDATE=DMY4/> export DBSCREENOUT=/tmp/screen.out
> export DBPATH=/srs-prps/ppsys
> export INFORMIXDIR=/srs-prps/informix
> export INFORMIXSERVER=mainsrvr> export TERMCAP=$INFORMIXDIR/etc/termcap
> export INFORMIXTERM=termcap
> export INFORMIXSQLHOSTS=/srs-prps/informix/etc/sqlhosts> export
>
LD_LIBRARY_PATH=$INFORMIXDIR/lib/tools:$INFORMIXDIR/lib:$INFORMIXDIR/lib/e
> sql:$LD_LIBRARY_PATH
> export SQLEXEC=$INFORMIXDIR/lib/sqlexec
> export TERM=vt100
> export ROWS=34, COLUMNS=127
> ####export PATH=$PATH:$INFORMIXDIR/bin
>
> What is astonishing is that, the segmentationfault come up after the
form
> is displayed and only fails to place the cursor in the input field.
This
> particular program I indicated to you works perfectly well on SCO
> OpenServer 5.05 and Informix 4gl 7,20 UD7.
>
>
> I tried to change the termcap hoping I would overcome the problem but,
it
> like the problem is fat fetched. It would have helped me if the error
was
> coming with message code but, it just comes up with segmentation fault
and
> it does not dump atall.
>
> I am stuck and frustrated. Please help Iam new to linux.
>
> Thanking you in advance.
>
>
> Felix Mwango Mutale
>
>
************************************************************************
**
> *****
> I posted a message over the above problem but, I have had no feed
back.
> Here
> is my problem.
>
> We Installed RHEL 5 with these Informix products
>
> Informix SE version 7.26 UC6R1
> Informix 4gl Developer Version 7.32 UC4
> Informix 4gl Runtime Version 7.32 UC4
> Informix 4gl Compiler RT Version 7.32 UC3
> Informix Sql Development Version 7.32 UC4
> Informix Sql Runtime Version 7.32 UC4
>
> And the profile as:
>
> export DBSCREENOUT=/tmp/screen.out
> export DBPATH=/srs-prps/ppsys
> export INFORMIXDIR=/srs-prps/informix
> export PATH=$INFORMIXDIR/bin:$PATH
> export INFORMIXDIR=/srs-prps/informix
> export INFORMIXSERVER=mainsrvr> export TERMCAP=/srs-prps/informix/etc/termcap
> export INFORMIXTERM=termcap
> export INFORMIXSQLHOSTS=/srs-prps/informix/etc/sqlhosts
>
LD_LIBRARY_PATH=$INFORMIXDIR/lib/tools:$INFORMIXDIR/lib:$INFORMIXDIR/lib
/e
> sql
> export LD_LIBRARY_PATH
> export SQLEXEC=$INFORMIXDIR/lib/sqlexec
> export TERM=vt100
>
> I have part of the code like this. I have tried to put displays around
to
> track down the flow as follows:
>
> LET GetInput = TRUE
> WHILE GetInput
> display " Inside infield manno 1 "
> display "GetInput = ", GetInput
> sleep 5
> INPUT w_manno,
> w_surname
> WITHOUT DEFAULTS
> FROM manno,
> surname
>
> AFTER FIELD manno
> display " Inside infield manno 2 "
> sleep 5
> IF w_manno <> " "
> AND w_manno IS NOT NULL
> THEN
> SELECT COUNT(*)
> INTO w_cnt>
> The second display is not coming. I can't put a display just after the
> INPUT
> command or as I am getting a syntax error.
>
> I have also tried the following:
>
> LET GetInput = TRUE
> WHILE GetInput
> display " Inside infield manno 1 "
> display "GetInput = ", GetInput
> sleep 5
> INPUT BY NAME manno,
> surname
> WITHOUT DEFAULTS
>
> But still I don't seem to get what is going on. How do control the
cursor
> to
> placed in the input field ? Is it an Informix problem or linux ?
>
> Thanking you in advance.
>
> Felix Mwango Mutale