Linux and readline

Kenneth Brody kenbrody at spamcop.net
Thu Jun 4 14:51:19 PDT 2009


Doug Luurs wrote:
> We are changing over to LINUX and ran into a problem with the readline command.
> 
> 326  -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -
> Rdr     If:
>       Then: bb = readline(aa,cc)
> 327  -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -
> 
> This command works fine on SCO, but on linux it will generate a
> segmentation violation (fault) when it executes.
> 
> Anyone had this problem, and how might it be resolved.

There was a problem (fixed post-5.0.15 and 5.6.06) where if

     you have an uncast variable as the destination of readline()
and
     you have never assigned a value to this variable
and
     you leave off the optional third parameter to readline()

then filePro could crash.

As a workaround, you can pass the third parameter as "-1".

-- 
Kenneth Brody



More information about the Filepro-list mailing list