Forum: Ruby-Gnome 2 [Poppler] Segfault on find_dest

Posted by "ChloƩ Desoutter" <chloe.desoutter@gmail.com> (Guest)
on 2011-12-03 12:33
(Received via mailing list)
Dear List hello,

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: http://pastebin.com/MVtTnZDn
PDFParser.rb: 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 Developers <ubuntu-devel-discuss@lists.ubuntu.com>
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/

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.
Posted by Kouhei Sutou (Guest)
on 2011-12-07 15:03
(Received via mailing list)
Hi,

In <CAH9U35kPwKHe-qfSLs4i-aF7MJk+b9xzowLL8wHjb6NFq60=xQ@mail.gmail.com>
  "[ruby-gnome2-devel-en] [Poppler] Segfault on find_dest" on Sat, 3 Dec 
2011 12:31:52 +0100,
  Chlo Desoutter <chloe.desoutter@gmail.com> wrote:

> 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:http://pastebin.com/MVtTnZDn
> PDFParser.rb: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
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.