Re: [Plplot-devel] -dev tk fails to work for install tree

2010-03-01 Thread Arjen Markus
Hi Andrew,

ah, you found it! Good to hear that. (The original code made a list
of two elements, one of them being a list in itself.)

Regards,

Arjen

> 
> The revision is question was quite small so it didn't take long to find 
> the problem. Turned out to be an issue with the list handling of the tcl 
> auto_path variable. Revision 10836 fixes the problem. I've also checked
> that directory names with blanks still work (and they do).
> 

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel


Re: [Plplot-devel] examples/c++/qt_example locks up when attempting to exit for -DENABLE_DYNDRIVERS=OFF

2010-03-01 Thread Andrew Ross
On Mon, Mar 01, 2010 at 01:05:15PM -0800, Alan Irwin wrote:
> On 2010-03-01 20:24- Andrew Ross wrote:
> 
> >
> > Alan,
> >
> > Precisely what did you do to trigger this? I've tried running the
> > example in the build tree on by Ubuntu system and I do not get any
> > errors. I've only the standard qt libraries installed. It is also
> > a 32 bit system which might be relevant.
> 
> Most of the relevant details are in README.release (revision 10837 where I
> have just noted, for example, I am testing on a 64-bit system).
> 
> N.B. from that file the issue _only_ occurs with the combination
> -DENABLE_DYNDRIVERS=OFF -DBUILD_SHARED_LIBS=ON.  Did you use that combination
> of cmake options for your test?
> 
> For that particular case, if I run examples/c++/qt_example in the build tree
> or c++/qt_example in the install tree, the example works fine in all regards
> (the curves, the histogram, the location crosshairs) except it just hangs when
> you attempt to exit by normal means, and you must use ctrl-C instead.
> 
> The valgrind error messages only start when you attempt to exit by
> normal means (alt F4, or the two possible GUI methods).
> 
> If with the correct CMake options you cannot replicate this issue on either
> your 32-bit or 64-bit systems, then I will start trying older Qt versions,
> and I hope you will also try the latest Qt release (Qt-4.6.1) that I am
> using.

Alan,

Sorry - I missed the details in README.release. I can confirm that I see 
the same error as you under those conditions. I will look further.

Andrew

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel


Re: [Plplot-devel] examples/c++/qt_example locks up when attempting to exit for -DENABLE_DYNDRIVERS=OFF

2010-03-01 Thread Andrew Ross

I've checked on a 64-bit Ubuntu system as well - still no crash
or lock-up. This is qt 4.5.2. Next step to try valgrind on the
example.

Andrew

On Mon, Mar 01, 2010 at 08:24:21PM +, Andrew Ross wrote:
> 
> Alan,
> 
> Precisely what did you do to trigger this? I've tried running the
> example in the build tree on by Ubuntu system and I do not get any
> errors. I've only the standard qt libraries installed. It is also 
> a 32 bit system which might be relevant.
> 
> Andrew
> 
> On Fri, Feb 26, 2010 at 10:16:44PM -0800, Alan Irwin wrote:
> > Subject line pretty much says it all.
> > 
> > Initial valgrind output is
> > 
> > ==15558== Invalid read of size 8
> > ==15558==at 0x7B6A901: pthread_cond_destroy@@GLIBC_2.3.2 (in
> > /lib/libpthread-2.7.so)
> > ==15558==by 0x706A2D0: QMutexPrivate::~QMutexPrivate()
> > (qmutex_unix.cpp:74)
> > ==15558==by 0x7065850: QMutex::~QMutex() (qmutex.cpp:132)
> > 
> > which I assume means our mutex logic for qt is screwed up for the
> > -DENABLE_DYNDRIVERS=OFF case.  Can somebody familiar with our qt mutex
> > logic have a look at 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); PLplot scientific plotting software
> > package (plplot.org); 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
> > __
> > 
> > --
> > Download Intel® Parallel Studio Eval
> > Try the new software tools for yourself. Speed compiling, find bugs
> > proactively, and fine-tune applications for parallel performance.
> > See why Intel Parallel Studio got high marks during beta.
> > http://p.sf.net/sfu/intel-sw-dev
> > ___
> > Plplot-devel mailing list
> > Plplot-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/plplot-devel
> > 
> 
> --
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> ___
> Plplot-devel mailing list
> Plplot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/plplot-devel
> 

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel


Re: [Plplot-devel] examples/c++/qt_example locks up when attempting to exit for -DENABLE_DYNDRIVERS=OFF

2010-03-01 Thread Alan W. Irwin
On 2010-03-01 20:24- Andrew Ross wrote:

>
> Alan,
>
> Precisely what did you do to trigger this? I've tried running the
> example in the build tree on by Ubuntu system and I do not get any
> errors. I've only the standard qt libraries installed. It is also
> a 32 bit system which might be relevant.

Most of the relevant details are in README.release (revision 10837 where I
have just noted, for example, I am testing on a 64-bit system).

N.B. from that file the issue _only_ occurs with the combination
-DENABLE_DYNDRIVERS=OFF -DBUILD_SHARED_LIBS=ON.  Did you use that combination
of cmake options for your test?

For that particular case, if I run examples/c++/qt_example in the build tree
or c++/qt_example in the install tree, the example works fine in all regards
(the curves, the histogram, the location crosshairs) except it just hangs when
you attempt to exit by normal means, and you must use ctrl-C instead.

The valgrind error messages only start when you attempt to exit by
normal means (alt F4, or the two possible GUI methods).

If with the correct CMake options you cannot replicate this issue on either
your 32-bit or 64-bit systems, then I will start trying older Qt versions,
and I hope you will also try the latest Qt release (Qt-4.6.1) that I am
using.

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); PLplot scientific plotting software
package (plplot.org); 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
__

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel


[Plplot-devel] Testing requested for Mac OS X

2010-03-01 Thread Alan W. Irwin
I have just completed comprehensive Linux testing of our three major
configurations for CMake-2.6.4 and CMake-2.8.1-RC3, and the results (see
README.release) show there are (finally) no regressions left between
CMake-2.6.4 and CMake-2.8.1 for the Linux (Debian Lenny) platform.

Arjen is doing similar regression testing of CMake-2.6.4 and CMake-2.8.1-RC3
using the default configuration for three different Windows platforms
(Cygwin, MinGW, and proprietary Windows compiler).

If somebody could do similar regression testing of CMake-2.6.4 and
CMake-2.8.1-RC3 for Mac OS X and report results in README.release, it would
help to complete all our major platforms and give us complete confidence in
CMake-2.8.1 (whose release is expected shortly) as well as CMake-2.6.4.

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); PLplot scientific plotting software
package (plplot.org); 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
__

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel


Re: [Plplot-devel] examples/c++/qt_example locks up when attempting to exit for -DENABLE_DYNDRIVERS=OFF

2010-03-01 Thread Andrew Ross

Alan,

Precisely what did you do to trigger this? I've tried running the
example in the build tree on by Ubuntu system and I do not get any
errors. I've only the standard qt libraries installed. It is also 
a 32 bit system which might be relevant.

Andrew

On Fri, Feb 26, 2010 at 10:16:44PM -0800, Alan Irwin wrote:
> Subject line pretty much says it all.
> 
> Initial valgrind output is
> 
> ==15558== Invalid read of size 8
> ==15558==at 0x7B6A901: pthread_cond_destroy@@GLIBC_2.3.2 (in
> /lib/libpthread-2.7.so)
> ==15558==by 0x706A2D0: QMutexPrivate::~QMutexPrivate()
> (qmutex_unix.cpp:74)
> ==15558==by 0x7065850: QMutex::~QMutex() (qmutex.cpp:132)
> 
> which I assume means our mutex logic for qt is screwed up for the
> -DENABLE_DYNDRIVERS=OFF case.  Can somebody familiar with our qt mutex
> logic have a look at 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); PLplot scientific plotting software
> package (plplot.org); 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
> __
> 
> --
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> ___
> Plplot-devel mailing list
> Plplot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/plplot-devel
> 

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel


[Plplot-devel] [PATCH] Fix plfimage function

2010-03-01 Thread David MacMahon

This fixes a parameter ordering problem in plfimage's call to the minmax
operator function.
---
 src/plimage.c |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/plimage.c b/src/plimage.c
index bfa5ef7..d18b5cf 100644
--- a/src/plimage.c
+++ b/src/plimage.c
@@ -363,7 +363,7 @@ plfimage( PLF2OPS idataops, PLPointer idatap, PLINT nx, PLINT ny,
 
 /* Find the minimum and maximum values in the image.  Use these values to
  * for the color scale range. */
-idataops->minmax( idatap, nx, ny, &data_max, &data_min );
+idataops->minmax( idatap, nx, ny, &data_min, &data_max );
 
 if ( xmin == Dxmin && xmax == Dxmax && ymin == Dymin && ymax == Dymax )
 {
--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel


Re: [Plplot-devel] -dev tk fails to work for install tree

2010-03-01 Thread Andrew Ross
On Sat, Feb 27, 2010 at 02:34:34PM +, Andrew Ross wrote:
> On Fri, Feb 26, 2010 at 01:34:15PM -0800, Alan Irwin wrote:
> > On 2010-02-26 11:29-0800 David MacMahon wrote:
> > 
> > >
> > > On Feb 26, 2010, at 11:19 , Alan W. Irwin wrote:
> > >
> > >> (1) Update my local svn repository for PLplot.
> > >
> > > I can't resist pointing out that git always has a local repository!  It 
> > > can't 
> > > really be called a local copy of *the* repository, but it is local. :-)
> > >
> > >> (2) Write a script to do the steps mentioned in the previous e-mail to
> > >> demonstrate the error.  This is straightforward, but it needs to be
> > >> done for every error where either git-bisect or svn-bisect is to be used
> > >> to find the revision that corresponds to introducing the regression.
> > >
> > > With this script, it should be very easy for me to run "git bisect".  It 
> > > will 
> > > also make it easier for me to fit in that task time-wise! :-)
> > 
> > I am done.  The bad revision is 10794 (Andrew, the one where you
> > fixed up issues with embedded blanks in directory names according to
> > Arjen's suggestions.)  revision 10793 works fine.  Andrew, could you take
> > a look please?
> 
> I'll try and take a look unless Arjen beats me to it.

The revision is question was quite small so it didn't take long to find 
the problem. Turned out to be an issue with the list handling of the tcl 
auto_path variable. Revision 10836 fixes the problem. I've also checked
that directory names with blanks still work (and they do).

Regards

Andrew

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel


[Plplot-devel] plGraphicsIn button field

2010-03-01 Thread David MacMahon
I've been working on "porting" example 20 to Ruby.  I notice when I'm  
dragging the crosshairs around to select a rectangle that sometimes  
the button field of the plGraphicsIn structure will get set to a  
large value (e.g. 0x7b8000).  Although I haven't seen this behavior  
with x20c, I think that maybe there is a problem in drivers/xwin.c.

In MasterEH(), the event is dispatched according to its type.  The  
dispatch for the MotionNotify is...

 case MotionNotify:
 if ( event->xmotion.state )
 ButtonEH( pls, event ); /* drag */
 MotionEH( pls, event );

The (postulated) problem is that this can call ButtonEH, which calls  
LookupXButtonEvent, which treats the XEvent as an XButtonEvent when  
in fact it is an XMotionEvent.  LookupXButtonEvent assigns the  
plGraphicIn's button field from the "button" field of the mis-cast  
XEvent structure.  In the case of an XMotionEvent, I think this ends  
up treating the "is_hint" char field and subsequent "mystery bytes"  
as an unsigned int, leading to the bogus values I am seeing.   
Presumably. the memory usage of x20c is such that these extra  
"mystery bytes" are always zero so this problem never really  
manifests itself.

More info about these XEvents can be seen here...

http://www.xfree86.org/current/XButtonEvent.3.html

I'm not sure whether this is a real problem nor how to deal with it  
if it is.  For now I am ignoring it and moving on, but I thought I'd  
mention it in case anyone else has any thoughts or ideas about it.

Thanks,
Dave


--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel