caca terminal fails on Cygwin_X64
I have built cvs gnuplot on Cygwin_X64
Version 5.0 patchlevel alpha last modified 2014-04-20
gnuplot> set term caca
Terminal type set to 'caca'
Options are 'enhanced size 80, 25 background rgb "white" color noinverted charset blocks'
gnuplot> plot sin(x)
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 1 (X_CreateWindow)
Value in failed request: 0x0
Serial number of failed request: 4149
Current serial number in output stream: 4150
Gnuplot not exited using gp_exit(). Exit handlers may not work correctly!
gcc version is
Thread model: posix
gcc version 4.8.2 (GCC)
Run under gdb
$ gdb /usr/local/gnuplotcvs/bin/gnuplot
..
Reading symbols from /usr/local/gnuplotcvs/bin/gnuplot...done.
(gdb) run
Starting program: /usr/local/gnuplotcvs/bin/gnuplot
[New Thread 1816.0x121c]
[New Thread 1816.0x10b0]
G N U P L O T Version 5.0 patchlevel alpha last modified 2014-04-20 Copyright (C) 1986-1993, 1998, 2004, 2007-2014 Thomas Williams, Colin Kelley and many others gnuplot home: http://www.gnuplot.info mailing list: gnuplot-beta@lists.sourceforge.net faq, bugs, etc: type "help FAQ" immediate help: type "help" (plot window: hit 'h')
Terminal type set to 'x11'
gnuplot> set term caca
Terminal type set to 'caca'
Options are 'enhanced size 80, 25 background rgb "white" color noinverted charset blocks'
gnuplot> plot sin(x)
[New Thread 1816.0x1e58]
[Thread 1816.0x1e58 exited with code 0]
[New Thread 1816.0x15e0]
[New Thread 1816.0x1964]
[New Thread 1816.0x1e4c]
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 1 (X_CreateWindow)
Value in failed request: 0x0
Serial number of failed request: 4149
Current serial number in output stream: 4150
Gnuplot not exited using gp_exit(). Exit handlers may not work correctly!
[Thread 1816.0x15e0 exited with code 1]
[Thread 1816.0x10b0 exited with code 1]
[Thread 1816.0x1e4c exited with code 1]
[Inferior 1 (process 1816) exited with code 01]
Any suggestions ?
The same phenomenon has occurred on Cygwin_X86.
However, I test it on not multiwindow mode.
The caca terminal works correctly. I will check on Cygwin_x86-64.
(Perhaps it will also go well )
I have tested the caca terminal on Cygwin-64.
Terminal type set to 'qt'
gnuplot> set term caca
Terminal type set to 'caca'
Options are 'enhanced size 80, 25 background rgb "white" color noinverted charset blocks'
gnuplot> plot sin(x)
gnuplot terminate silently.
I have re-install gnuplot by "make install" and execute gnuplot on gdb.
$ gdb /usr/local/gnuplotcvs/bin/gnuplot
GNU gdb (GDB) 7.6.50.20130728-cvs (cygwin-special)
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-cygwin".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/.
Find the GDB manual and other documentation resources online at:
http://www.gnu.org/software/gdb/documentation/.
For help, type "help".
Type "apropos word" to search for commands related to "word".
..
Reading symbols from /usr/local/gnuplotcvs/bin/gnuplot...done.
(gdb) r
Starting program: /usr/local/gnuplotcvs/bin/gnuplot
[New Thread 8676.0x2074]
[New Thread 8676.0x2180]
Terminal type set to 'qt'
gnuplot> set term caca
Terminal type set to 'caca'
Options are 'enhanced size 80, 25 background rgb "white" color noinverted charset blocks'
gnuplot> plot sin(x)
Program received signal SIGSEGV, Segmentation fault.
0x0000000077868e5d in ntdll!RtlUnwindEx ()
from /cygdrive/c/Windows/system32/ntdll.dll
(gdb)
Seems to be Cygwin-64 a specific issue. At the moment I stop the report here. I will ask at Cygwin ML.
On current cygwin-64, caca terminal works without problem.
So this bug is closed.