Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic: [EN] pdfchain alternatives ?  (Read 3333 times)

Offline OppaErich

  • OLE
  • User
  • Posts: 381
[EN] pdfchain alternatives ?
« on: 2017/12/14, 14:43:51 »
Hi,


pdfchain decided to quit working. It just segfaults when started.
Code: [Select]

oppa@oppa-hex-ssd:~$ pdfchain
PDF Chain 0.4.4.2 - A graphical user interface for the PDF Toolkit
Segmentation fault


This is sad because this was very easy to use and did the job. Do you know of any alternatives ?
Please let me know.


Have fun,
Stephan


Edit:
Does this help ? It seems to choke on glib.
Code: [Select]

(gdb) run
Starting program: /usr/bin/pdfchain
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffea4fe700 (LWP 16794)]
[New Thread 0x7fffe9cfd700 (LWP 16795)]


PDF Chain 0.4.4.2 - A graphical user interface for the PDF Toolkit


[New Thread 0x7fffe3fff700 (LWP 16797)]
[New Thread 0x7fffe36eb700 (LWP 16798)]
[New Thread 0x7fffe2c97700 (LWP 16800)]


Thread 1 "pdfchain" received signal SIGSEGV, Segmentation fault.
0x00007ffff4af9360 in g_slist_find () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
« Last Edit: 2017/12/14, 14:52:54 by OppaErich »

Offline melmarker

  • User
  • Posts: 2.799
    • g-com.eu
Re: pdfchain alternatives ?
« Reply #1 on: 2017/12/14, 15:24:09 »
An alternative might be: file a bug
Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety. (Benjamin Franklin, November 11, 1755)
Never attribute to malice that which can be adequately explained by stupidity. (Hanlons razor)

Offline jure

  • User
  • Posts: 635
Re: pdfchain alternatives ?
« Reply #2 on: 2017/12/14, 15:35:39 »
Hi Stephan,

no problems here with pdfchain 1:0.4.4.2-1 on my kde based system.

I think pdfsam could do the same job
Gruss Juergen

Offline melmarker

  • User
  • Posts: 2.799
    • g-com.eu
Re: pdfchain alternatives ?
« Reply #3 on: 2017/12/14, 16:46:00 »
Mal ganz ehrlich - wir fahren sid - und da ändern sich auch mal Bibliotheken un ABIs und so was - normalerweise wird das während Transitions erledigt. Wenn das mal nicht klappt, dann sollte man nen bug malen. Terminal auf, "reportbug pdfchain" ist doch nur wirklich nicht zu viel, oder? So über den Daumen gepeilt ist ein Segfault einer der Fehler, die in Debian nicht auftreten sollten - und wenn doch, dann wissen die jeweiligen Maintainer auch gerne darüber Bescheid um das zu fixen.
Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety. (Benjamin Franklin, November 11, 1755)
Never attribute to malice that which can be adequately explained by stupidity. (Hanlons razor)

Offline OppaErich

  • OLE
  • User
  • Posts: 381
Re: pdfchain alternatives ?
« Reply #4 on: 2017/12/14, 16:49:23 »
Quote
An alternative might be: file a bug

Well, not for me. I'm either too numb for this or I'm not allowed to file bugs. I've used reportbug two times but never saw these bug reports or heard something about it.
Quote
I think pdfsam could do the same job

Thanks, I'll have a look. For now I used pdftk:
Code: [Select]
pdftk file1 file2 fileN cat output outputfilename 

Edit: this was all messed up by itself...
« Last Edit: 2017/12/14, 17:00:24 by OppaErich »

Offline harley-peter

  • User
  • Posts: 1.022
Re: pdfchain alternatives ?
« Reply #5 on: 2017/12/14, 17:31:07 »
Also here no problem with version 1:0.4.4.2-1 and Xfce.

Offline musca

  • User
  • Posts: 725
  • sid, fly high!
Re: pdfchain alternatives ?
« Reply #6 on: 2017/12/14, 20:41:40 »
neither do I see issues with cinnamon.

Perhaps you can see what config file causes the crash with

~$ strace -eopen pdfchain

„Es irrt der Mensch, solang er strebt.“  (Goethe, Faust)

Offline der_bud

  • User
  • Posts: 1.072
  • member
Re: pdfchain alternatives ?
« Reply #7 on: 2017/12/14, 21:16:58 »
For me pdfchain does not crash/segfault, but there is an existing bugreport already from 2013, still not fixed since then, with same symptoms (libglib): https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=725859
Du lachst? Wieso lachst du? Das ist doch oft so, Leute lachen erst und dann sind sie tot.

Offline OppaErich

  • OLE
  • User
  • Posts: 381
Re: pdfchain alternatives ?
« Reply #8 on: 2017/12/14, 21:23:35 »
Hi,


this produces about a billion lines of output.
Code: [Select]

strace -eopen pdfchain | grep WHAT
?


I did this as root by accident and pdfchain is showing up. It is bright white, I have the dark theme running in Gnome but this maybe because root started it.


Edit: I've started it as root again. There is some problem, the screen shows some flickering in the upper right. This stops when I close pdfchain.

« Last Edit: 2017/12/14, 21:28:23 by OppaErich »

Offline musca

  • User
  • Posts: 725
  • sid, fly high!
Re: pdfchain alternatives ?
« Reply #9 on: 2017/12/14, 22:52:05 »
Don't start it as root.

The strace will stop as soon as the segfault happens, so hopefully the culprit will be opened near the end.

At least this is the theory ...
With some more luck, the cause is one of your user config files, so you can avoid it easily.

greetz
musca
„Es irrt der Mensch, solang er strebt.“  (Goethe, Faust)

Offline melmarker

  • User
  • Posts: 2.799
    • g-com.eu
Re: pdfchain alternatives ?
« Reply #10 on: 2017/12/14, 23:37:38 »
The strace will stop as soon as the segfault happens, so hopefully the culprit will be opened near the end.

It might be that strace is the wrong tool for that - i would suggest gdb - and some debug symbols installed. But before i would clean up the system, install the latest packages, remove not needed packages and packages that are no longer in the repository. Segfaults are not common behaviour of debian packages - and they mostly occour if wrong or broken dependencies are installed.
Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety. (Benjamin Franklin, November 11, 1755)
Never attribute to malice that which can be adequately explained by stupidity. (Hanlons razor)

Offline OppaErich

  • OLE
  • User
  • Posts: 381
Re: pdfchain alternatives ?
« Reply #11 on: 2017/12/15, 12:40:57 »
Moin,


after a reboot and a d-u and another reboot.


Output of strace -eopen pdfchain: http://paste.siduction.org/20171215113748
To me this looks like I'm missing everything. A ton of ENOENT lines.


Have a nice weekend,
Stephan

Offline musca

  • User
  • Posts: 725
  • sid, fly high!
Re: pdfchain alternatives ?
« Reply #12 on: 2017/12/15, 14:33:53 »
In case of optional files you don't need to worry about ENOENT.

It seems reading "/home/oppa/.config/dconf/user" lets  your app segfault.
you can try to avoid that.

„Es irrt der Mensch, solang er strebt.“  (Goethe, Faust)

Offline OppaErich

  • OLE
  • User
  • Posts: 381
Re: pdfchain alternatives ?
« Reply #13 on: 2017/12/15, 14:43:09 »
Erm - how do I avoid this ? I've tried to rename but then I get another ENOENT and a segfault.