# \[Poppler\] Segfault on find\_dest

**URL:** <https://www.ruby-forum.com/t/poppler-segfault-on-find-dest/214496>\
**Category:** Ruby-Gnome 2\
**Created:** [December 3, 2011, 12:33pm UTC](https://www.ruby-forum.com/t/poppler-segfault-on-find-dest/214496 "2011-12-03T12:33:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [December 3, 2011, 12:33pm UTC](https://www.ruby-forum.com/t/poppler-segfault-on-find-dest/214496/1 "2011-12-03T12:33:04Z")

</div>

Dear List hello,

[Run runtime.rb - Pastebin.com](http://pastebin.com/7JjTDL5B) is the stacktrace of my running runtime.rb  
with this file:  
ftp://tug.ctan.org/tex-archive/macros/latex/contrib/hyperref/doc/manual.pdf

A big ugly segfault.

In Pastebin is full source code.

runtime.rb: [#!/usr/bin/env rubyrequire './PDFParser.rb'pdf = PDFParser.new()pdf.lo - Pastebin.com](http://pastebin.com/MVtTnZDn)  
PDFParser.rb: [#!/usr/bin/env rubyrequire 'poppler'class PDFParser def initialize(pa - Pastebin.com](http://pastebin.com/xgnfBh1N)

FWIW:  
crackpot:~/ruby/pdfparser/light$ uname -a  
Linux crackpot.localdomain 3.0.0-13-generic #22-Ubuntu SMP Wed Nov 2  
13:27:26 UTC 2011 x86\_64 x86\_64 x86\_64 GNU/Linux  
crackpot:~/ruby/pdfparser/light$ ruby1.9.1 -v  
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86\_64-linux]

crackpot:~/ruby/pdfparser/light$ aptitude show ruby-poppler  
Package: ruby-poppler  
New: yes  
State: installed  
Automatically installed: no  
Version: 1.0.0-1  
Priority: optional  
Section: universe/ruby  
Maintainer: Ubuntu D. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Uncompressed Size: 246 k  
Depends: libc6 (\>= 2.2.5), libglib2.0-0 (\>= 2.12.0), libgtk2.0-0 (\>=  
2.8.0), libpoppler-glib6 (\>= 0.16), libruby1.8 (\>= 1.8.7.352),  
libruby1.9.1  
(\>= 1.9.2.290)  
Conflicts: ruby-poppler  
Description: Ruby bindinds for the libpoppler-glib library  
Poppler is a PDF rendering library based on xpdf PDF viewer. This  
package  
contains ruby bindings for Poppler.  
Homepage: [http://ruby-gnome2.sourceforge.jp/](http://ruby-gnome2.sourceforge.jp/)

When I want to build poppler, I have an error message, telling me “no  
.pc  
for \>=” so I couldn’t test with latest gem.

Thanks for your guidance.

---

<div class="post-metadata">

**Author:** ![SSChloSS\_DesoutterS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/8491ac/32.png) [@SSChloSS\_DesoutterS](https://www.ruby-forum.com/u/SSChloSS_DesoutterS)\
**Post date:** [December 7, 2011, 3:03pm UTC](https://www.ruby-forum.com/t/poppler-segfault-on-find-dest/214496/2 "2011-12-07T15:03:09Z")

</div>

Hi,

In [CAH9U35kPwKHe-qfSLs4i-aF7MJk+b9xzowLL8wHjb6NFq60=removed\_email\_address@domain.invalid](mailto:CAH9U35kPwKHe-qfSLs4i-aF7MJk+b9xzowLL8wHjb6NFq60=removed_email_address@domain.invalid)  
“[ruby-gnome2-devel-en] [Poppler] Segfault on find\_dest” on Sat, 3 Dec  
2011 12:31:52 +0100,  
Chlo D. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> [http://pastebin.com/7JjTDL5Bis](http://pastebin.com/7JjTDL5Bis) the stacktrace of my running runtime.rb with  
> this file:ftp://tug.ctan.org/tex-archive/macros/latex/contrib/hyperref/doc/  
> manual.pdf
> 
> A big ugly segfault.
> 
> In Pastebin is full source code.
> 
> runtime.rb:[#!/usr/bin/env rubyrequire './PDFParser.rb'pdf = PDFParser.new()pdf.lo - Pastebin.com](http://pastebin.com/MVtTnZDn)  
> PDFParser.rb:[#!/usr/bin/env rubyrequire 'poppler'class PDFParser def initialize(pa - Pastebin.com](http://pastebin.com/xgnfBh1N)

Thanks for providing a sample PDF and scripts. I can confirm  
the problem and have fixed it in master.

## Thanks,

kou
