FS#22734 - [epdfview] segfaults

Attached to Project: Community Packages
Opened by a.a. (eca) - Thursday, 03 February 2011, 06:31 GMT
Last edited by Jakob Gruber (schuay) - Saturday, 05 February 2011, 12:15 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To Jakob Gruber (schuay)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
[epdfview] 0.1.7-6 and [evince] 2.32.0-6 segfaults.

Additional info:
* package version(s)
epdfview 0.1.7-6
poppler 0.16.2-2
poppler-glib 0.16.2-2
evince 2.32.0-6
* config and/or log files etc.

(gdb) run
Starting program: /usr/bin/epdfview
[Thread debugging using libthread_db enabled]
[New Thread 0xb670db70 (LWP 4530)]

(epdfview:4527): Pango-WARNING **: failed to choose a font, expect ugly output. engine-type='PangoRenderFc', script='common'
[New Thread 0xb25f1b70 (LWP 4531)]
[New Thread 0xb1df0b70 (LWP 4532)]
[New Thread 0xb13ffb70 (LWP 4533)]
[Thread 0xb25f1b70 (LWP 4531) exited]
[Thread 0xb1df0b70 (LWP 4532) exited]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb670db70 (LWP 4530)]
0xb776b99b in strlen () from /lib/libc.so.6
(gdb) bt
#0 0xb776b99b in strlen () from /lib/libc.so.6
#1 0xb7f491db in g_strdup () from /usr/lib/libglib-2.0.so.0
#2 0x0804fa80 in ?? ()
#3 0x08054792 in ?? ()
#4 0x08054ed7 in ?? ()
#5 0x080513d1 in ?? ()
#6 0x0805109f in ?? ()
#7 0xb7f51bcf in ?? () from /usr/lib/libglib-2.0.so.0
#8 0xb7954dd0 in start_thread () from /lib/libpthread.so.0
#9 0xb77c689e in clone () from /lib/libc.so.6
(gdb) quit

Steps to reproduce:
epdfview *.pdf
This task depends upon

Closed by  Jakob Gruber (schuay)
Saturday, 05 February 2011, 12:15 GMT
Reason for closing:  Fixed
Additional comments about closing:  0.1.7-7
Comment by a.a. (eca) - Thursday, 03 February 2011, 06:36 GMT
Opps should be: Severity high, Architecture i686, Packages: testing
Comment by Jakob Gruber (schuay) - Thursday, 03 February 2011, 17:07 GMT
Here are 2 test pdfs:

[1] bisherM1.pdf
http://db.tt/uJaQdMF

[2] informatik-studienplan-2009.pdf
http://db.tt/Nr9ezgn

[1] works without issues with 0.1.7-6.
[2] segfaults on load with 0.1.7-6. epdfview-svn works fine but segfaults when closing the application.

Not sure what else to do here, so I'm forwarding this upstream.
Comment by a.a. (eca) - Thursday, 03 February 2011, 20:38 GMT
Ok thanks. I just noticed its only one pdf for me; I should've tested more. It was http://www.isr.umd.edu/~jwh2/papers/faim2000ncat.pdf
Comment by Andreas Radke (AndyRTR) - Saturday, 05 February 2011, 09:05 GMT
Evince is working fine for me. But epdfview also segfaults here.

Fedora has a poppler patch. I guess that's the fix you need to apply!

http://pkgs.fedoraproject.org/gitweb/?p=epdfview.git;a=tree;h=refs/heads/master;hb=master
Comment by Jakob Gruber (schuay) - Saturday, 05 February 2011, 09:21 GMT
@andy, I did apply that one (it doesn't build without it).

evince also segfaults with affected pdfs for me while closing the application.
Comment by Andreas Radke (AndyRTR) - Saturday, 05 February 2011, 10:14 GMT
The patch you have applied is not enough. It's even not the full r354 commit. epdfview so fully segfaults for me at start.

Please apply the full patches for revision:
http://trac.emma-soft.com/epdfview/changeset/354/trunk?format=diff&new=354
http://trac.emma-soft.com/epdfview/changeset/357/trunk?format=diff&new=357 and maybe even r356 and test it again.

And yes. I also have that evince closing segfault.
Comment by Jakob Gruber (schuay) - Saturday, 05 February 2011, 10:32 GMT
For the record, r357 was missing. I'm sure I already tried those 2 patches together, maybe I was put off by the closing segfault.

Anyways, got a working version locally. Uploading in a bit.
Comment by Jakob Gruber (schuay) - Saturday, 05 February 2011, 11:37 GMT
epdfview 0.1.7-7 is now in [community-testing], can you confirm that the opening segfault is fixed?
Comment by Andreas Radke (AndyRTR) - Saturday, 05 February 2011, 12:05 GMT
it's fixed now for me. thanks.

Loading...