I'm running current CVS gnuplot on Arch linux, linked with wxgtk2
3.0.3, and I'm seeing the program aborting on exit. Not on every
invocation -- this mostly happens when I run a script which generates
several plots, via separate calls to gnuplot, using the wxt terminal
with the -persist command-line flag.
If instead I run the gnuplot 5.0.6 that's supplied with Arch (linked
with the same wxWidgets library), the problem does not occur.
Here's an example of what I'm seeing on stderr using the CVS code;
The program 'gnuplot' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadMatch (invalid parameter attributes)'.
(Details: serial 519 error_code 8 request_code 130 minor_code 3)
(Note to programmers: normally, X errors are reported
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error()
Gnuplot exiting abnormally. Trying to execute exit handlers anyway.
./src/unix/threadpsx.cpp(1480): assert "This() != this" failed in
Wait(): a thread can't wait for itself [in thread 7f83ce033700]