[Poppler-bugs] [Bug 54435] New: segfault when searching text

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Sep 3 05:37:22 PDT 2012


https://bugs.freedesktop.org/show_bug.cgi?id=54435

             Bug #: 54435
           Summary: segfault when searching text
    Classification: Unclassified
           Product: poppler
           Version: unspecified
          Platform: x86-64 (AMD64)
        OS/Version: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: general
        AssignedTo: poppler-bugs at lists.freedesktop.org
        ReportedBy: steven.vancoillie at gmail.com


Created attachment 66539
  --> https://bugs.freedesktop.org/attachment.cgi?id=66539
pdf that gives the problem

When looking at a (specific) pdf file with zathura, searching for text gave a
segfault. This is reproducible but seemingly occurs random after searching for
a few word. I traced this back to poppler, backtrace from gdb:

Program received signal SIGSEGV, Segmentation fault.
0x00007fffeb6ef217 in TextPage::findText (this=0x960240, s=<optimized out>,
len=6, startAtTop=false, stopAtBottom=true, startAtLast=<optimized out>,
stopAtLast=false, caseSensitive=false, backward=false, wholeWord=false,
xMin=0x7fffffffb390, yMin=0x7fffffffb398, xMax=0x7fffffffb3a0,
yMax=0x7fffffffb3a8) at TextOutputDev.cc:3598

3598        blk = blocks[i];

(gdb) bt
#0  0x00007fffeb6ef217 in TextPage::findText (this=0x960240, s=<optimized out>,
len=6, startAtTop=false, stopAtBottom=true, startAtLast=<optimized out>,
stopAtLast=false, caseSensitive=false, backward=false, wholeWord=false,
xMin=0x7fffffffb390, yMin=0x7fffffffb398, xMax=0x7fffffffb3a0,
yMax=0x7fffffffb3a8) at TextOutputDev.cc:3598
#1  0x00007fffeb9f6082 in poppler_page_find_text (page=<optimized out>,
text=<optimized out>) at poppler-page.cc:886
#2  0x00007fffebc3b017 in pdf_page_search_text () from /usr/lib/zathura/pdf.so
#3  0x0000000000415c3f in cmd_search ()
...

When I print the address of 'blocks', it gives 0x0, so I guess that's the
culprit...

grtz
Steven

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Poppler-bugs mailing list