[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gnuplot-info-beta
Subject:    Re: segfault with debug enabled on mingw in mouse.c
From:       Ethan Merritt <merritt () u ! washington ! edu>
Date:       2009-02-27 19:09:15
Message-ID: 200902271109.15226.merritt () u ! washington ! edu
[Download RAW message or body]

On Friday 27 February 2009 10:06:56 Benjamin Lindner wrote:
> Ethan A Merritt wrote:
> > On Sunday 22 February 2009, Benjamin Lindner wrote:
> > 
> >> The compiled version segfaults reproducably in mouse.c. Looking at the 
> >> code I see that the FPRINTF macro is missing stderr as target stream
> > 
> > Thank you.  Fixed in CVS.
> > 
> 
> Thanks, but in the second hunk there is I guess a typo in CVS, 'stderr' 
> should not be part of the string, but be the first argument.

Proving once again that no fix is too simple to mess up when
applied by hand :-\


> benjamin
> 
> diff -r 78ae0c4f5e82 src/mouse.c
> --- a/src/mouse.c	Fri Feb 27 10:45:13 2009 +0100
> +++ b/src/mouse.c	Fri Feb 27 10:53:28 2009 +0100
> @@ -314,7 +314,7 @@
>   	    *y = AXIS_MAPBACK(FIRST_Y_AXIS, yy);
>   	    *y2 = AXIS_MAPBACK(SECOND_Y_AXIS, yy);
>   	}
> -	FPRINTF(("stderr, POS: xx=%i, yy=%i  =>  x=%g  y=%g\n", xx, yy, *x, *y));
> +	FPRINTF((stderr, "POS: xx=%i, yy=%i  =>  x=%g  y=%g\n", xx, yy, *x, *y));
> 
>       } else {
>   	/* for 3D plots, we treat the mouse position as if it is


-- 
Ethan A Merritt

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
gnuplot-beta mailing list
gnuplot-beta@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuplot-beta
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic