[comp.binaries.ibm.pc.d] GnuPlot 2.0 bug?

sigma@pawl.rpi.edu (Kevin J Martin) (09/26/90)

Has anyone else had the following problem with GnuPlot 2.0?  If I attempt to
do a 'replot' command after a 'plot' (in order to get more than one plot on-
screen at the same time), I get part of the axes drawn, followed by a
Protection Exception 12 from QEMM/386, with a list of register values and
invalid opcodes that were specified.  Selecting 'Continue' locks the machine,
whereas Terminate and Reboot don't get the plot either, obviously.

The program works fine on a PS/2 Model 50Z (mine is a 386/33 compatible,
running QEMM with 1216K of expanded memory in use by a disk cache).  Does
anyone know of: 1) an explanation for this problem, 2) a workaround for
this problem, or 3) a newer version of GnuPlot (I currently have patchlevel 
zero for 2.0)?

Thanks.

-- 
Kevin Martin
sigma@pawl.rpi.edu

jpd@pc.usl.edu (Dugal James P.) (09/26/90)

In article <LQL%A9@rpi.edu> sigma@pawl.rpi.edu (Kevin J Martin) writes:
>Has anyone else had the following problem with GnuPlot 2.0?  If I attempt to
>do a 'replot' command after a 'plot' (in order to get more than one plot on-

I have the same problem.  I reported it to the maintainer, along with
a small bug I found.  But I was not able to determine how to fix it.  I
used both a version I compiled with Turbo C 2.0 and the exe available from
Simtel20.  I see patch number 1 has just been released.  I shall give
it a try soon.  The bypass is to never use the replot command; instead
issue the equivalent plot command.
BTW: replot works on the Unix version.  I wonder if Watcom or Microsoft
compilers would yield similar results under MSDOS?

-- 
-- James Dugal,	N5KNX		Internet: jpd@usl.edu
Associate Director		Ham packet: n5knx@k5arh
Computing Center		US Mail: PO Box 42770  Lafayette, LA  70504
University of Southwestern LA.	Tel. 318-231-6417	U.S.A.

eln272v@monu1.cc.monash.oz ( r lang) (09/27/90)

In article <LQL%A9@rpi.edu>, sigma@pawl.rpi.edu (Kevin J Martin) writes:
> Has anyone else had the following problem with GnuPlot 2.0?  If I attempt to
> do a 'replot' command after a 'plot' (in order to get more than one plot on-
> screen at the same time), I get part of the axes drawn, followed by a
> Protection Exception 12 from QEMM/386


> The program works fine on a PS/2 Model 50Z (mine is a 386/33 compatible,
> running QEMM with 1216K of expanded memory in use by a disk cache).  Does
> anyone know of: 1) an explanation for this problem, 
You don't have a coprocessor, so Turbo C used the floating point emulation
routines.  These used slightly more stack space and overflowed the stack,
hence the Protection Exception you reported.

> 2) a workaround for this problem, 
Use it on a PC with a coprocessor, or don't use replot :-)

> or 3) a newer version of GnuPlot (I currently have patchlevel zero for 2.0)?
Patchlevel 1 was released this week, and this bug is fixed.
See the announcement in comp.sources.bugs.


-- 
Russell Lang   Email: rjl@monu1.cc.monash.edu.au   Phone: (03) 565 3460
Department of Electrical and Computer Systems Engineering
Monash University, Australia