Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#29514 - [evince] crashes after upgrade of openjpeg from 1.4-1 to 1.5.0-1

Attached to Project: Arch Linux
Opened by Jagadish R (jarav) - Wednesday, 18 April 2012, 00:02 GMT
Last edited by Jan de Groot (JGC) - Sunday, 13 May 2012, 15:08 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Ionut Biru (wonder)
Architecture i686
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

Description:

evince crashes after upgrade of openjpeg from 1.4-1 to 1.5.0-1
Additional info:
* package version(s)
* config and/or log files etc.

evince 3.2.1

Steps to reproduce:

open any pdf with evince
This task depends upon

Closed by  Jan de Groot (JGC)
Sunday, 13 May 2012, 15:08 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed by rebuilding poppler.
Comment by Ionut Biru (wonder) - Wednesday, 18 April 2012, 19:54 GMT
please enable testing and do pacman -Syu and let me know if the bug exists in evince 3.4
Comment by Jagadish R (jarav) - Friday, 27 April 2012, 01:58 GMT
Sorry for not responding earlier. The bug continues to exist in evince 3.4.
Comment by Allan McRae (Allan) - Saturday, 28 April 2012, 12:07 GMT
Can you provide a backtrace?
Comment by Diego M (tokoro) - Tuesday, 01 May 2012, 17:02 GMT
Not every pdf makes evince crash. Here is the original thread from the forums in which a particular book is given. It should be useful for testing.

Also, it seems that other programs like gimp and inkscape keep crashing under this version of openjpeg.

Link to thread: https://bbs.archlinux.org/viewtopic.php?id=139786
Link to book: http://www.4shared.com/office/fr5ulK56/Digital_Design_by_Frank_Vahid_.html

Also, shouldn't this be an openjpeg bug instead of an evince bug?
Comment by Alfredo Amatriain (amatriain) - Thursday, 03 May 2012, 11:33 GMT
I'm experiencing the same crash.

This is the backtrace I get:

http://pastebin.com/ZdV2imki

Please tell me if I need to compile any binary with debug symbols to provide a gdb trace.
Comment by Allan McRae (Allan) - Thursday, 03 May 2012, 11:36 GMT
@amatriain: it would be helpful if you could compile poppler with debug symbols and provide the backtrace. I see not mention of openjpeg there...
Comment by Alfredo Amatriain (amatriain) - Thursday, 03 May 2012, 12:54 GMT
This is the gdb trace with debug symbols enabled in openjpeg, poppler and evince:

http://pastebin.com/HR9Yvphh

I can also confirm that downloading openjpeg to 1.4 makes the bug disappear.
Comment by Ionut Biru (wonder) - Thursday, 03 May 2012, 12:55 GMT
sadly, your traces does not contain usefull informations.

please read https://wiki.archlinux.org/index.php/Step_By_Step_Debugging_Guide#Technique_.232_-_even_better_gdb_output
and not forget about adding to options !strip
Comment by Alfredo Amatriain (amatriain) - Friday, 04 May 2012, 07:46 GMT
Okay, funny thing now.

I've recompiled and run again following the instructions in https://wiki.archlinux.org/index.php/Step_By_Step_Debugging_Guide#Technique_.232_-_even_better_gdb_output (I had previously followed the guide in https://wiki.archlinux.org/index.php/Debug_-_Getting_Traces and the flags suggested there are a bit different).

The binaries I've recompiled and installed are:

poppler version 0.18.4-1
poppler-qt version 0.18.4-1
poppler-glib version 0.18.4-1
openjpeg version 1.5.0-1
evince version 3.4.0-1

Using the recompiled binaries with debug symbols, evince does not crash. I've tested with my pdfs and with the pdf posted by @tokoro.

I've reinstalled those same binaries, same versions, from the repositories and tested again. Indeed, with the binaries downloaded from the repos evince crashes when opening those pdfs.

Obviously there's something different between the binaries from the repos and the binaries I've compiled. What else can I do to gather more information?
Comment by Ionut Biru (wonder) - Friday, 04 May 2012, 08:48 GMT
i guess is yet another optimization bug from gcc 4.7 since you disabled them (O0). Can you try to use O2 now?
Comment by Alfredo Amatriain (amatriain) - Friday, 04 May 2012, 10:02 GMT
Recompiled poppler, openjpeg and evince with O2 instead of O0. Installed poppler, poppler-qt, poppler-glib, openjpeg and evince. Evince doesn't crash.
Comment by Frank Phillips (fphillips) - Thursday, 10 May 2012, 17:22 GMT
Here is a much smaller pdf to test with (163KB): http://vintageair.com/catalog11/pg65wc.pdf
Comment by Jan de Groot (JGC) - Sunday, 13 May 2012, 14:50 GMT
The updated openjpeg crashes because they broke ABI without bumping soname. Poppler has reserved some memory for the structs passed by openjpeg, but as these have increased in size, you'll see segfaults. Recompiling poppler will fix this (and is what I'm doing at this moment).

Loading...