evince crashed with SIGSEGV in DJVU::MMXControl::enable_mmx()

Bug #1872835 reported by Yaron Artzi
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
evince (Ubuntu)
New
Medium
Unassigned

Bug Description

Bug was originally posted manually at: https://bugs.launchpad.net/ubuntu/+source/evince/+bug/1872716

Recap:
I tried to open a djvu file with evince. Instead of opening, the evince window shows for less than a second, and then it crashes.

The djvu file is fine and opens well with evince 3.18.2 on ubuntu 16.04.
When I try to open the file through the terminal (with 'evince <filename.djvu>') I get the output:
"Segmentation fault (core dumped)".

Additional info:

'lsb_release -rd':
Description: Ubuntu 18.04.4 LTS
Release: 18.04

'apt-cache policy evince':
evince:
  Installed: 3.28.4-0ubuntu1.2
  Candidate: 3.28.4-0ubuntu1.2

ProblemType: Crash
DistroRelease: Ubuntu 18.04
Package: evince 3.28.4-0ubuntu1.2
ProcVersionSignature: Ubuntu 5.3.0-46.38~18.04.1-generic 5.3.18
Uname: Linux 5.3.0-46-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.14
Architecture: amd64
CrashCounter: 1
CurrentDesktop: ubuntu:GNOME
Date: Tue Apr 14 11:54:35 2020
ExecutablePath: /usr/bin/evince
ExecutableTimestamp: 1560885355
InstallationDate: Installed on 2020-02-24 (50 days ago)
InstallationMedia: Ubuntu 18.04.4 LTS "Bionic Beaver" - Release amd64 (20200203.1)
ProcCmdline: /usr/bin/evince /home/yaron/technion/MRLab/books/Spin\ dynamics\ basics\ of\ nuclear\ magnetic\ resonance\ -\ Malcolm\ H.\ Levitt.djvu
ProcCwd: /home/yaron
ProcEnviron:
 LANGUAGE=en_IL:en
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_IL
 SHELL=/bin/bash
Signal: 11
SourcePackage: evince
StacktraceTop:
 DJVU::MMXControl::enable_mmx() () from /usr/lib/x86_64-linux-gnu/libdjvulibre.so.21
 DJVU::IW44Image::Transform::Decode::backward(short*, int, int, int, int, int) () from /usr/lib/x86_64-linux-gnu/libdjvulibre.so.21
 DJVU::IW44Image::Map::image(signed char*, int, int, int) () from /usr/lib/x86_64-linux-gnu/libdjvulibre.so.21
 DJVU::IWPixmap::get_pixmap() () from /usr/lib/x86_64-linux-gnu/libdjvulibre.so.21
 DJVU::DjVuFile::decode_chunk(DJVU::GUTF8String const&, DJVU::GP<DJVU::ByteStream> const&, bool, bool, bool) () from /usr/lib/x86_64-linux-gnu/libdjvulibre.so.21
Title: evince crashed with SIGSEGV in DJVU::MMXControl::enable_mmx()
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo

Revision history for this message
Yaron Artzi (yaron160) wrote :
Revision history for this message
Yaron Artzi (yaron160) wrote :

Update:
I installed djview, which had the same error (crash with Segmentation fault message). It was resolved by setting the environment variable LIBDJVU_DISABLE_MMX=1. However, this affected evince somehow, and now I can't reproduce the problem. In fact, now evince can't open DJVU files, and it gives the following error message: "File type DjVu image (image/vnd.djvu) is not supported".

Revision history for this message
Apport retracing service (apport) wrote :

StacktraceTop:
 DJVU::MMXControl::enable_mmx () at MMX.cpp:183
 DJVU::IW44Image::Transform::filter_begin (w=w@entry=372, h=h@entry=485) at IW44Image.cpp:1848
 DJVU::IW44Image::Transform::Decode::backward (p=p@entry=0x7f6c340d91b0, w=372, h=485, rowsize=384, begin=begin@entry=32, end=end@entry=1) at IW44Image.cpp:1875
 DJVU::IW44Image::Map::image (this=0x7f6c340014e0, img8=img8@entry=0x7f6c34054f50 "", rowsize=rowsize@entry=1116, pixsep=pixsep@entry=3, fast=fast@entry=0) at IW44Image.cpp:714
 DJVU::IWPixmap::get_pixmap (this=0x7f6c34001be0) at IW44Image.cpp:1656

Revision history for this message
Apport retracing service (apport) wrote : Stacktrace.txt
Revision history for this message
Apport retracing service (apport) wrote : StacktraceSource.txt
Revision history for this message
Apport retracing service (apport) wrote : ThreadStacktrace.txt
Changed in evince (Ubuntu):
importance: Undecided → Medium
tags: removed: need-amd64-retrace
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks, that's the same issue than bug #1846785, we should probably SRU that fix to bionic

information type: Private → Public
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.