#1105 x2tics + y2tics causes gnuplot_x11 to crash on Mac OS X Lion

open
nobody
None
5
2013-02-10
2012-03-25
Anonymous
No

I have a plot with xtics, x2tics, ytics, and y2tics set. When I create a single x11 window, everything works as expected, but when I create a second window (set term x11 2 persist) and then mouse over the first, gnuplot_x11 crashes as soon as the mouse enters the first window with this log:

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff9086182a __kill + 10
1 libsystem_c.dylib 0x00007fff95030b6c __abort + 193
2 libsystem_c.dylib 0x00007fff9502d070 __stack_chk_fail + 223
3 gnuplot_x11 0x0000000101772409 process_event + 17769
4 gnuplot_x11 0x000000010177371e main + 4206
5 gnuplot_x11 0x0000000101766f54 start + 52

The problem only occurs if I have both x2tics and y2tics set--using only one or the other but not both works fine. The sample session below results in the behavior I described:

$ gnuplot

G N U P L O T
Version 4.6 patchlevel 0    last modified 2012-03-04 
Build System: Darwin x86\_64

Copyright \(C\) 1986-1993, 1998, 2004, 2007-2012
Thomas Williams, Colin Kelley and many others

gnuplot home:     http://www.gnuplot.info
faq, bugs, etc:   type "help FAQ"
immediate help:   type "help"  \(plot window: hit 'h'\)

Terminal type set to 'x11'
gnuplot> set xtics 1
gnuplot> set x2tics 1
gnuplot> set ytics 1
gnuplot> set y2tics 1
gnuplot> plot sin(x)
gnuplot> set term x11 2 persist
Terminal type set to 'x11'
Options are '2 persist'
gnuplot> plot sin(x)

The problem exists on Mac OS X Lion 10.7.3 with gnuplot 4.6 and 4.5 both built from source with no special options enabled (except for --with-readline=builtin). I tested it under a custom version of Ubuntu (Backtrack Linux 5) with gnuplot 4.6 and the problem does not exist.

Discussion

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks