Siduction Forum

Siduction Forum => Software - Support => Topic started by: OppaErich on 2017/12/14, 14:43:51

Title: pdfchain alternatives ?
Post by: OppaErich 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
Title: Re: pdfchain alternatives ?
Post by: melmarker on 2017/12/14, 15:24:09
An alternative might be: file a bug
Title: Re: pdfchain alternatives ?
Post by: jure 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
Title: Re: pdfchain alternatives ?
Post by: melmarker 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.
Title: Re: pdfchain alternatives ?
Post by: OppaErich 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...
Title: Re: pdfchain alternatives ?
Post by: harley-peter on 2017/12/14, 17:31:07
Also here no problem with version 1:0.4.4.2-1 and Xfce.
Title: Re: pdfchain alternatives ?
Post by: musca 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

Title: Re: pdfchain alternatives ?
Post by: der_bud 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
Title: Re: pdfchain alternatives ?
Post by: OppaErich 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.

Title: Re: pdfchain alternatives ?
Post by: musca 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
Title: Re: pdfchain alternatives ?
Post by: melmarker 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.
Title: Re: pdfchain alternatives ?
Post by: OppaErich 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
Title: Re: pdfchain alternatives ?
Post by: musca 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.

Title: Re: pdfchain alternatives ?
Post by: OppaErich 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.