pdftotext crashed with SIGSEGV in TextPage::beginWord()

Bug #252854 reported by nullack
8
Affects Status Importance Assigned to Milestone
Poppler
Fix Released
Medium
poppler (Ubuntu)
Fix Released
Medium
Ubuntu Desktop Bugs

Bug Description

Crashed in the background while downloading some pdf's

ProblemType: Crash
Architecture: amd64
CrashCounter: 1
Date: Tue Jul 29 18:34:17 2008
DistroRelease: Ubuntu 8.10
ExecutablePath: /usr/bin/pdftotext
NonfreeKernelModules: nvidia
Package: poppler-utils 0.8.4-1.1
PackageArchitecture: amd64
ProcCmdline: pdftotext -enc UTF-8 -q -nopgbrk /home/username/Desktop/D&D\ 4th\ Edition\ -\ DMG-OEF.pdf /tmp/Tracker-User Name.5264/tmp_text_file_22RWEU
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=en_AU.UTF-8
 SHELL=/bin/bash
Signal: 11
SourcePackage: poppler
StacktraceTop:
 TextPage::beginWord () from /usr/lib/libpoppler.so.3
 TextPage::addChar () from /usr/lib/libpoppler.so.3
 TextOutputDev::endMarkedContent ()
 Gfx::go () from /usr/lib/libpoppler.so.3
 Gfx::display () from /usr/lib/libpoppler.so.3
Title: pdftotext crashed with SIGSEGV in TextPage::beginWord()
Uname: Linux 2.6.26-4-generic x86_64
UserGroups: adm admin audio cdrom dialout dip floppy fuse lpadmin plugdev video

Tags: apport-crash
Revision history for this message
In , Adrian Johnson (ajohnson-redneon) wrote :

Created an attachment (id=17958)
Fix bug in TextOutputDev.cc

Attaching the PDF file would assist with debugging this problem.

From the stack trace I could see one problem. At #2 the string contains only the unicode byte order marker FEFF. At this point in the code the length should be 0, not 1. Patch to fix this is attached.

Without the original PDF file I do not know if this patch will fix this bug.

Revision history for this message
nullack (nullack) wrote :

Crashed in the background while downloading some pdf's

ProblemType: Crash
Architecture: amd64
CrashCounter: 1
Date: Tue Jul 29 18:34:17 2008
DistroRelease: Ubuntu 8.10
ExecutablePath: /usr/bin/pdftotext
NonfreeKernelModules: nvidia
Package: poppler-utils 0.8.4-1.1
PackageArchitecture: amd64
ProcCmdline: pdftotext -enc UTF-8 -q -nopgbrk /home/username/Desktop/D&D\ 4th\ Edition\ -\ DMG-OEF.pdf /tmp/Tracker-User Name.5264/tmp_text_file_22RWEU
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=en_AU.UTF-8
 SHELL=/bin/bash
Signal: 11
SourcePackage: poppler
StacktraceTop:
 TextPage::beginWord () from /usr/lib/libpoppler.so.3
 TextPage::addChar () from /usr/lib/libpoppler.so.3
 TextOutputDev::endMarkedContent ()
 Gfx::go () from /usr/lib/libpoppler.so.3
 Gfx::display () from /usr/lib/libpoppler.so.3
Title: pdftotext crashed with SIGSEGV in TextPage::beginWord()
Uname: Linux 2.6.26-4-generic x86_64
UserGroups: adm admin audio cdrom dialout dip floppy fuse lpadmin plugdev video

Revision history for this message
nullack (nullack) wrote :
Revision history for this message
Apport retracing service (apport) wrote : Symbolic stack trace

StacktraceTop:TextPage::beginWord (this=0x120e660, state=0x12bc0f0, x0=<value optimized out>, y0=<value optimized out>) at TextOutputDev.cc:1940
TextPage::addChar (this=0x120e660, state=0x12bc0f0, x=<value optimized out>, y=<value optimized out>, dx=<value optimized out>, dy=<value optimized out>,
TextOutputDev::endMarkedContent (this=0x1215640, state=0x12bc0f0) at TextOutputDev.cc:4645
Gfx::go (this=0x125f110, topLevel=1) at Gfx.cc:611
Gfx::display (this=0x125f110, obj=0x7fffc9b75300, topLevel=1) at Gfx.cc:580

Revision history for this message
Apport retracing service (apport) wrote : Symbolic threaded stack trace
Changed in poppler:
importance: Undecided → Medium
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks for your bug report. This bug has been reported to the developers of the software. You can track it and make comments here: https://bugs.freedesktop.org/show_bug.cgi?id=16885

Changed in poppler:
status: New → Triaged
Changed in poppler:
status: Unknown → Confirmed
Revision history for this message
In , Sebastien Bacher (seb128) wrote :

I've asked the example to the submitter but the description suggests that the pdf was being downloaded and the issue was due to the partial copy rather

Revision history for this message
Sebastien Bacher (seb128) wrote :

do you get the issue every time on the mentionned example? could you attach it to the bug?

Revision history for this message
In , Albert Astals Cid (aacid) wrote :

I've commited Adrian's patch, not that we can do much more without more info, so i'm closing the bug.

Changed in poppler:
status: Confirmed → Fix Released
Revision history for this message
Pedro Villavicencio (pedro) wrote :

fixed upstream, thanks for reporting.

Changed in poppler:
assignee: nobody → desktop-bugs
status: Triaged → Fix Committed
Revision history for this message
nullack (nullack) wrote :

Since getting the 0.8.6-1 package upgrade I have not replicated this problem, fix released, thank you :)

Changed in poppler:
status: Fix Committed → Fix Released
Changed in poppler:
importance: Unknown → Medium
Changed in poppler:
importance: Medium → Unknown
Changed in poppler:
importance: Unknown → Medium
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.