Bug#725859: pdfchain: running the program fails with segmentation fault
(too old to reply)
Holger Arnold
2013-10-09 09:10:01 UTC
The segmentation fault does not happen when running the program under gdb.
To UNSUBSCRIBE, email to debian-bugs-dist-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Carlos Maddela
2017-09-06 16:00:01 UTC
Package: pdfchain
Version: 1:
Tags: patch
Followup-For: Bug #725859

Hi Johann,

I myself cannot reproduce this bug on Debian Sid, but can do on Ubuntu

From the backtraces that Holger and Jason have provided, it appears that
it is related to this openSUSE bug:
https://bugzilla.suse.com/show_bug.cgi?id=970530, for which there is
already a fix.

I couldn't find a working link to the patch, but I've extracted it from
this source RPM:

I can confirm that it fixes the crash on Ubuntu Zesty.

Best regards,


-- System Information:
Debian Release: buster/sid
APT prefers unstable
APT policy: (990, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.12.0-1-amd64 (SMP w/2 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 /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages pdfchain depends on:
ii libatkmm-1.6-1v5 2.24.2-2
ii libc6 2.24-17
ii libgcc1 1:7.2.0-3
ii libglibmm-2.4-1v5 2.50.1-1
ii libgtkmm-3.0-1v5 3.22.1-1
ii libsigc++-2.0-0v5 2.10.0-1
ii libstdc++6 7.2.0-3
ii pdftk 2.02-4+b2

pdfchain recommends no packages.

pdfchain suggests no packages.

-- no debconf information
Stefan Tauner
2019-10-09 12:10:02 UTC

this is still a problem in Debian Buster (current stable(!), still
version 1: Launching it from the command line is enough to
trigger the segfault. I did not try the patch yet or compiling from
source and debugging. However, I found a workable (albeit slot)
workaround: running pdfchain in valgrind ;)

This bug has been open for a long time despite its severity. Is there
still an active maintainer or should we file an "orphaned" bug because
of that?
Kind regards/Mit freundlichen Grüßen, Stefan Tauner
Francesco Potortì
2017-12-27 17:00:01 UTC
Here is what I get:

~$ pdfchain

PDF Chain - A graphical user interface for the PDF Toolkit

Segmentation fault (core dumped)

~$ gdb `which pdfchain` core
GNU gdb (Debian 7.12-6+b1)
Copyright (C) 2016 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-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
Find the GDB manual and other documentation resources online at:
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/bin/pdfchain...(no debugging symbols found)...done.
[New LWP 934]
[New LWP 942]
[New LWP 943]
[New LWP 945]
[New LWP 941]
[New LWP 947]
[New LWP 937]
[New LWP 946]
[New LWP 944]
[New LWP 938]
[New LWP 948]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `pdfchain'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007f60ae3fe360 in g_slist_find () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
[Current thread is 1 (Thread 0x7f60b18a7a80 (LWP 934))]

(gdb) bt
#0 0x00007f60ae3fe360 in g_slist_find () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1 0x00007f60aee889af in gtk_radio_button_set_group () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#2 0x00007f60b12efba5 in Gtk::RadioButton::set_group(Gtk::RadioButtonGroup&) ()
from /usr/lib/x86_64-linux-gnu/libgtkmm-3.0.so.1
#3 0x00007f60b136c977 in Gtk::RadioButtonGroup::add(Gtk::RadioButton&) ()
from /usr/lib/x86_64-linux-gnu/libgtkmm-3.0.so.1
#4 0x00007f60b12ef6ba in Gtk::RadioButton::RadioButton(Gtk::RadioButtonGroup&, Glib::ustring const&, bool) () from /usr/lib/x86_64-linux-gnu/libgtkmm-3.0.so.1
#5 0x000056290628d812 in ?? ()
#6 0x00005629062a0e31 in ?? ()
#7 0x00005629062a2eaa in ?? ()
#8 0x0000562906269a9a in ?? ()
#9 0x00007f60af97a561 in __libc_start_main (main=0x5629062699f0, argc=1, argv=0x7ffd4ee7f328,
init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffd4ee7f318)
at ../csu/libc-start.c:297
#10 0x0000562906269b2a in ?? ()

(gdb) quit
Francesco Potortì (ricercatore) Voice: +39.050.621.3058
ISTI - Area della ricerca CNR Mobile: +39.348.8283.107
via G. Moruzzi 1, I-56124 Pisa Skype: wnlabisti
(entrance 20, 1st floor, room C71) Web: http://fly.isti.cnr.it