FS#55249 - [gnuplot] 5.0.6-1 Segfault in wxgtk UI

Attached to Project: Arch Linux
Opened by Fipe Cupeli (fipecupeli) - Wednesday, 23 August 2017, 08:54 GMT
Last edited by Eli Schwartz (eschwartz) - Wednesday, 23 August 2017, 20:41 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Ronald van Haren (pressh)
Antonio Rojas (arojas)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Running gnuplot with wxt term gives the following warning:

Warning: Mismatch between the program and library build versions detected.
The library used 3.0 (wchar_t,compiler with C++ ABI 1011,wx containers,compatible with 2.8),
and your program used 3.0 (wchar_t,compiler with C++ ABI 1010,wx containers,compatible with 2.8).

Sometimes plot window shows plot, sometimes it does not.
Sometimes it gives additionally "Segmentation fault (core dumped)"

Additional info:
* package version(s)
gnuplot 5.0.6-1
wxgtk-common 3.0.3.1-7
wxgtk2 3.0.3.1-7
wxgtk2.8 2.8.12.1-4

Steps to reproduce:
run:
gnuplot -persist -e "set term wxt; plot sin(x)"
This task depends upon

Closed by  Eli Schwartz (eschwartz)
Wednesday, 23 August 2017, 20:41 GMT
Reason for closing:  Fixed
Additional comments about closing:  gnuplot 5.0.6-2
Comment by Antonio Rojas (arojas) - Wednesday, 23 August 2017, 17:38 GMT
The warning is harmless. I can't reproduce the other issues, I get the plot every single time. Post a backtrace of the segfault if you can reproduce.
Comment by Fipe Cupeli (fipecupeli) - Wednesday, 23 August 2017, 19:09 GMT
In my case plot fails not every time, but definitely often enough to be a nuisance.

Backtrace of the segfault as requested:

gdb --args gnuplot -persist -e "set term wxt; plot sin(x)"
GNU gdb (GDB) 8.0
Copyright (C) 2017 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-linux-gnu".
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 gnuplot...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/gnuplot -persist -e set\ term\ wxt\;\ plot\ sin\(x\)
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
09:53:06 PM: Warning: Mismatch between the program and library build versions detected.
The library used 3.0 (wchar_t,compiler with C++ ABI 1011,wx containers,compatible with 2.8),
and your program used 3.0 (wchar_t,compiler with C++ ABI 1010,wx containers,compatible with 2.8).
[New Thread 0x7f20ecb61700 (LWP 1259)]
[New Thread 0x7f20e7dc1700 (LWP 1260)]
[New Thread 0x7f20e75c0700 (LWP 1261)]

Thread 1 "gnuplot" received signal SIGSEGV, Segmentation fault.
0x00007f20fa00121c in ?? () from /usr/lib/libgdk-x11-2.0.so.0
(gdb) bt
#0 0x00007f20fa00121c in () at /usr/lib/libgdk-x11-2.0.so.0
#1 0x00007f20fa002f74 in () at /usr/lib/libgdk-x11-2.0.so.0
#2 0x00007f20fa004ab6 in gdk_draw_rgb_image () at /usr/lib/libgdk-x11-2.0.so.0
#3 0x00007f20fb652e7a in wxBitmap::CreateFromImageAsPixmap(wxImage const&, int) ()
at /usr/lib/libwx_gtk2u_core-3.0.so.0
#4 0x00007f20fb653c92 in wxBitmap::wxBitmap(wxImage const&, int) () at /usr/lib/libwx_gtk2u_core-3.0.so.0
#5 0x0000000000516a58 in ()
#6 0x000000000051fe84 in ()
#7 0x0000000000520fbd in ()
#8 0x00000000004fb4d9 in ()
#9 0x0000000000456f45 in ()
#10 0x000000000047ccc2 in ()
#11 0x00000000004289e9 in ()
#12 0x000000000042ab17 in ()
#13 0x000000000042ad05 in ()
#14 0x0000000000419ea4 in ()
#15 0x00007f20f80904ca in __libc_start_main () at /usr/lib/libc.so.6
#16 0x000000000041b22a in ()
(gdb)
Comment by Antonio Rojas (arojas) - Wednesday, 23 August 2017, 19:46 GMT
please test 5.0.6-2
Comment by Fipe Cupeli (fipecupeli) - Wednesday, 23 August 2017, 20:21 GMT
wxt term works in 5.0.6-2 without problems. Thanks.

Loading...