Bug 176304 - crash on opening a certain pdf file
Summary: crash on opening a certain pdf file
Status: RESOLVED DUPLICATE of bug 176320
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Unspecified
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-28 05:07 UTC by Ryan Ren
Modified: 2009-01-12 11:48 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Ren 2008-11-28 05:07:07 UTC
Version:            0.7.3  (using KDE 4.1.3)
Compiler:          gcc (GCC) 4.3.2 gcc binary package in Arch Linux Current
Installed from:    Unspecified Linux

okular crashes on the pdf file download here:
http://link.aps.org/abstract/PRB/v78/e193404

I've tried acroread, it works well on this file.

I cannot attach this file for copyright issue of APS. It's downloadable for APS members or any subscriber of APS journals.


===========================================
Application: Okular (okular), signal SIGFPE
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
0xb690c0d7 in select () from /lib/libc.so.6
[Current thread is 1 (process 7354)]

Thread 1 (process 7354):
#0  0xb690c0d7 in select () from /lib/libc.so.6
#1  0xb638e265 in ?? () from /usr/lib/libxcb.so.1
#2  0xb638fc3a in xcb_wait_for_reply () from /usr/lib/libxcb.so.1
#3  0xb73856c1 in _XReply () from /usr/lib/libX11.so.6
#4  0xb737a211 in XTranslateCoordinates () from /usr/lib/libX11.so.6
#5  0xb6c5a200 in QWidget::mapFromGlobal(QPoint const&) const ()
   from /usr/lib/libQtGui.so.4
#6  0xb6c5a251 in QWidget::mapFromGlobal(QPoint const&) const ()
   from /usr/lib/libQtGui.so.4
#7  0xb6c5a251 in QWidget::mapFromGlobal(QPoint const&) const ()
   from /usr/lib/libQtGui.so.4
#8  0xb6c5a251 in QWidget::mapFromGlobal(QPoint const&) const ()
   from /usr/lib/libQtGui.so.4
#9  0xb6c5a251 in QWidget::mapFromGlobal(QPoint const&) const ()
   from /usr/lib/libQtGui.so.4
#10 0xb6c5a251 in QWidget::mapFromGlobal(QPoint const&) const ()
   from /usr/lib/libQtGui.so.4
#11 0xb6c5a251 in QWidget::mapFromGlobal(QPoint const&) const ()
   from /usr/lib/libQtGui.so.4
#12 0xb6bdfe08 in QApplicationPrivate::pickMouseReceiver(QWidget*, QPoint const&, QPoint&, QEvent::Type, QFlags<Qt::MouseButton>, QWidget*, QWidget*) ()
   from /usr/lib/libQtGui.so.4
#13 0xb6c44692 in ?? () from /usr/lib/libQtGui.so.4
#14 0xb6c43bed in QApplication::x11ProcessEvent(_XEvent*) ()
   from /usr/lib/libQtGui.so.4
#15 0xb6c69192 in ?? () from /usr/lib/libQtGui.so.4
#16 0xb67b92c1 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#17 0xb67bc953 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#18 0xb67bcb11 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#19 0xb7f91677 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#20 0xb6c68985 in ?? () from /usr/lib/libQtGui.so.4
#21 0xb7f6973a in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#22 0xb7f698fa in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/libQtCore.so.4
#23 0xb7f6bb7d in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#24 0xb6bdf997 in QApplication::exec() () from /usr/lib/libQtGui.so.4
#25 0x0804e05f in _start ()
Comment 1 Albert Astals Cid 2008-11-28 20:35:24 UTC
Whithout the file there's not much we can do
Comment 2 Brad Hards 2008-11-29 09:46:09 UTC
Do you have debug packages in Arch Linux? If so, please install the debug packages for freetype and poppler.

Then provide a new backtrace.
Comment 3 Pino Toscano 2009-01-03 22:57:11 UTC
Hi Ryan,

without a file and more information (like the version of your poppler-qt4 library), there's not that can be done.
Could you please provide more information, and whether the problem is still reproduceable?

Thanks.
Comment 4 Ryan Ren 2009-01-06 01:55:39 UTC
I've switched from i686 to x86_64 recently. This crash is still reproduceable.  
I sent an email to Brad with the pdf file attached in Nov.

Qt: 4.4.3
KDE: 4.1.3
Okular: 0.7.3

poppler 0.10.2
poppler-qt 0.10.2

Thank you.

Comment 5 Ryan Ren 2009-01-12 04:31:57 UTC
Hello,

I download kdegraphics-4.1.87.tar.bz2 and build it on my machine and reproduced this crash with self-built okular. Hope this helps.


bash-3.2$ gdb ./okular
GNU gdb 6.8           
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.           
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"   
and "show warranty" for details.                                             
This GDB was configured as "x86_64-unknown-linux-gnu"...                     
(gdb) run                                                                    
Starting program: /home/pem/tmp/kde-beta/build.kdegraphics/okular/shell/okular 
[Thread debugging using libthread_db enabled]                                  
[New Thread 0x7f4cda92b750 (LWP 9689)]                                         
QStringList Solid::Backends::Hal::HalManager::findDeviceByDeviceInterface(const Solid::DeviceInterface::Type&)  error:  "org.freedesktop.DBus.Error.Disconnected" 

QStringList Solid::Backends::Hal::HalManager::findDeviceByDeviceInterface(const Solid::DeviceInterface::Type&)  error:  "org.freedesktop.DBus.Error.Disconnected" 

QStringList Solid::Backends::Hal::HalManager::findDeviceByDeviceInterface(const Solid::DeviceInterface::Type&)  error:  "org.freedesktop.DBus.Error.Disconnected" 

[New Thread 0x7f4cca643950 (LWP 9705)]
[Thread 0x7f4cca643950 (LWP 9705) exited]
[New Thread 0x7f4cca643950 (LWP 9706)]   
[Thread 0x7f4cca643950 (LWP 9706) exited]
[New Thread 0x7f4cca643950 (LWP 9707)]   
[New Thread 0x7f4cc9e42950 (LWP 9708)]   
[Thread 0x7f4cca643950 (LWP 9707) exited]

Program received signal SIGFPE, Arithmetic exception.
[Switching to Thread 0x7f4cc9e42950 (LWP 9708)]      
0x00007f4cd36f257f in cff_parse_real () from /usr/lib/libfreetype.so.6
(gdb) where                                                           
#0  0x00007f4cd36f257f in cff_parse_real () from /usr/lib/libfreetype.so.6
#1  0x00007f4cd36f6a65 in cff_parse_font_bbox () from /usr/lib/libfreetype.so.6
#2  0x00007f4cd36f2892 in cff_parser_run () from /usr/lib/libfreetype.so.6                                                                                                      
#3  0x00007f4cd36f688b in cff_subfont_load () from /usr/lib/libfreetype.so.6                                                                                                    
#4  0x00007f4cd36f6eae in cff_face_init () from /usr/lib/libfreetype.so.6                                                                                                       
#5  0x00007f4cd36d7200 in open_face () from /usr/lib/libfreetype.so.6                                                                                                           
#6  0x00007f4cd36d961e in FT_Open_Face () from /usr/lib/libfreetype.so.6                                                                                                        
#7  0x00007f4cd36da330 in FT_New_Memory_Face () from /usr/lib/libfreetype.so.6                                                                                                  
#8  0x00007f4cca9c807b in SplashFTFontFile::loadType1Font () from /usr/lib/libpoppler.so.4                                                                                      
---Type <return> to continue, or q <return> to quit---                                                                                                                          
#9  0x00007f4cca9c8dd4 in SplashFontEngine::loadType1CFont () from /usr/lib/libpoppler.so.4                                                                                     
#10 0x00007f4cca8f5c0a in SplashOutputDev::doUpdateFont () from /usr/lib/libpoppler.so.4                                                                                        
#11 0x00007f4cca8f5eec in SplashOutputDev::drawChar () from /usr/lib/libpoppler.so.4                                                                                            
#12 0x00007f4cca9342d2 in Gfx::doShowText () from /usr/lib/libpoppler.so.4                                                                                                      
#13 0x00007f4cca934624 in Gfx::opShowText () from /usr/lib/libpoppler.so.4                                                                                                      
#14 0x00007f4cca92b80d in Gfx::go () from /usr/lib/libpoppler.so.4                                                                                                              
#15 0x00007f4cca92fd26 in Gfx::display () from /usr/lib/libpoppler.so.4                                                                                                         
#16 0x00007f4cca972430 in Page::displaySlice () from /usr/lib/libpoppler.so.4                                                                                                   
#17 0x00007f4ccac87e1d in Poppler::Page::renderToImage () from /usr/lib/libpoppler-qt4.so.3                                                                                     
---Type <return> to continue, or q <return> to quit---                                                                                                                          
#18 0x00007f4ccaee95b2 in PDFPixmapGeneratorThread::run () from /usr/lib/kde4/okularGenerator_poppler.so                                                                        
#19 0x00007f4cda493d79 in ?? () from /usr/lib/libQtCore.so.4
#20 0x00007f4cda222fc7 in start_thread () from /lib/libpthread.so.0
#21 0x00007f4cd4b355dd in clone () from /lib/libc.so.6
#22 0x0000000000000000 in ?? ()
(gdb) list
27          QDBusInterface iface("org.kde.okular", "/okular", "org.kde.okular");
28          if (!iface.isValid())
29              return false;
30
31          iface.call("openDocument", args->url(0).pathOrUrl());
32
33          return true;
34      }
35
---Type <return> to continue, or q <return> to quit---
36      int main(int argc, char** argv)
(gdb)
Comment 6 Pino Toscano 2009-01-12 11:48:09 UTC
From the backtrace it looks like bug #176320.

*** This bug has been marked as a duplicate of bug 176320 ***