Bug#755903: Have to invoke gnuplot with two copies of same input file
Witold Baryluk
witold.baryluk at gmail.com
Mon Nov 26 15:26:01 GMT 2018
Package: gnuplot
Followup-For: Bug #755903
This works just fine with current version of gnuplot.
I can't reproduce the problem orignally posted by Ian.
Single invocation works and produces plot with expected data.
It is possible that early implementation of the epscairo required
explicit 'unset terminal' or 'unset output' at the end to force setting
of the footer and close the file. This should happen automatically at
exit, but maybe it wasn't working.
I was not able to find anything specific in changelogs, but possibly
this change was a fix that made it finally work
2013-10-25 Thomas Bleher <tbleher at gmx.de>
* src/stdfn.c(gp_atexit gp_exit) src/stdfn.h src/command.c(exit_command)
src/plot.c(main) src/qtterminal/qt_term.cpp src/win/winmain.c
src/wxterminal/gp_cairo.c src/wxterminal/gp_cairo_helpers.c
src/wxterminal/wxt_gui.cpp term/be.trm term/x11.trm:
Create gnuplot atexit handlers that are called before exit(3)
Normal atexit-handlers are called in the reverse order of registration.
This causes problems when a library has its own global destructors which
do not handle the case that objects of the library may still be active
and destroyed in the atexit handler. This has been observed with Qt.
Introduce a new function gp_exit() which calls the gnuplot atexit handlers
and then calls exit(3). Also create gp_atexit() to register gnuplot exit
handlers.
Not sure if it was included in the 4.6.0-8 or not. Probably was, so it might
be a red hearing. And it is not really touching cairo non-wxt outputs.
Anyhow, this bug can be closed.
-- System Information:
Debian Release: buster/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.18.0-2-amd64 (SMP w/32 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages gnuplot depends on:
ii gnuplot-x11 [gnuplot-nox] 5.2.5+dfsg1-1
gnuplot recommends no packages.
Versions of packages gnuplot suggests:
ii gnuplot-doc 5.2.5+dfsg1-1
-- no debconf information
More information about the debian-science-maintainers
mailing list