On 2014-04-07 12:00-0700 Alan W. Irwin wrote:

> [...]I will take a look.

The GNU debugger (gdb) made this a really easy issue to solve. It
turned out the issue was an integer overflow in an unused (in the
plbox case) calculation of physical coordinates corresponding to the
default 0., 0., world coordinates of the unused axis origin which was
very far from the actual range of world coordinates used in the plot
for example 29 page 5 and above.

I eliminated this issue (as of revision 13099) by making sure the
physical coordinates of the axis origin were only calculated when
needed (i.e., the "a" option was specified and the corresponding axis
line was somewhere in the viewport).  This tightening of the logic
makes the physical coordinate of the axis line a reasonable integer
number which by definition cannot overflow.

Thanks, Hazen, for spotting this long-standing bug which would have
occurred in the past for any plbox call where the range of data was
relatively far from zero so the calculated (but unused) axis line was
very far outside the actual viewport.  We were "lucky" that example 29
provided such a plbox call so we could find and fix this bug.

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state
implementation for stellar interiors (freeeos.sf.net); the Time
Ephemerides project (timeephem.sf.net); PLplot scientific plotting
software package (plplot.sf.net); the libLASi project
(unifont.org/lasi); the Loads of Linux Links project (loll.sf.net);
and the Linux Brochure Project (lbproject.sf.net).
__________________________

Linux-powered Science
__________________________

------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to