Comment 4 for bug 300829

Revision history for this message
wollig (wollig) wrote : Re: gnuplot crashes on opening a second window

Same for me
I use ubuntu 8.10 kernel 2.6.27-11, gnuplot Version 4.2 patchlevel 3
I can do one plot, then gnuplot freezes.

i tried 'strace gnuplot ...'
what i can see then
(1) gnuplot starts up (no window yet) and 'hangs' in read, which is ok
(2) i type 'plot sin(x)'
(3) gnuplot displays the expected plot
(4) gnuplot now calls select endlessly with a timeout of (i guess 10000 nanoseconds) and always returns with timeout. This is ok as i did not type anything until now
(5) i type 'set xrange [-1:1]; replot'
(6) now gnuplot freezes, nothing is plotted

in strace i see the following lines at the end of the trace
rt_sigaction(SIGFPE, {0x429f00, [FPE], SA_RESTORER|SA_RESTART, 0x7f7558537060}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGFPE, {SIG_DFL}, {0x429f00, [FPE], SA_RESTORER|SA_RESTART, 0x7f7558537060}, 8) = 0
rt_sigaction(SIGINT, {0x4da970, [INT], SA_RESTORER|SA_RESTART, 0x7f7558537060}, {0x45fbf0, [INT], SA_RESTORER|SA_RESTART, 0x7f7558537060}, 8) = 0
futex(0x12ca540, 0x80 /* FUTEX_??? */, 2

The last line seems incomplete to me, but i am not very familiar with strace. For me it looks like, that gnuplot is waiting for some trigger to continue. In fact, i would expect a 'select' again.
Maybe this description is of any help