Bug 340024 - Konqueror crashes when opening PDFs in new browser tabs
Summary: Konqueror crashes when opening PDFs in new browser tabs
Status: RESOLVED DUPLICATE of bug 329907
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2014-10-16 13:27 UTC by Frank Steinmetzger
Modified: 2014-10-16 22:17 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 Frank Steinmetzger 2014-10-16 13:27:56 UTC
Application: konqueror (4.14.0)
KDE Platform Version: 4.14.0
Qt Version: 4.8.5
Operating System: Linux 3.16.3-kern x86_64
Distribution (Platform): Gentoo Packages

-- Information about the crash:
- What I was doing when the application crashed:

I was reading http://bugs.ghostscript.com/show_bug.cgi?id=695259 and middle-clicked on the attachment links in comments #6 and #7 to open them in new tabs (using the Okular kpart). If I click on the two links in quick succession, Konqueror immediately crashes upon clicking the second one. If I give it some time inbetween or switch to the tab of the first link before opening the second, Konqueror is usually fine.

Not sure if related:
If I go right to “Report problem” in the KDE crash handler, the error report is completely empty. All it says is that Konqueror had a segfault. I have to display the backtrace first before starting the error report assistant.

The crash can be reproduced every time.

-- Backtrace:
Application: Konqueror (konqueror), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
pthread_cond_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
[Current thread is 1 (Thread 0x7f65e583a780 (LWP 32650))]

Thread 5 (Thread 0x7f65ce306700 (LWP 32651)):
#0  0x00007f65e2e9af9d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f65dfdad31c in g_main_context_poll (n_fds=1, fds=0x7f65c8003320, timeout=-1, context=0x7f65c80009a0, priority=<optimized out>) at /var/tmp/portage/dev-libs/glib-2.40.0-r1/work/glib-2.40.0/glib/gmain.c:4028
#2  g_main_context_iterate (context=context@entry=0x7f65c80009a0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /var/tmp/portage/dev-libs/glib-2.40.0-r1/work/glib-2.40.0/glib/gmain.c:3729
#3  0x00007f65dfdad444 in g_main_context_iteration (context=0x7f65c80009a0, may_block=1) at /var/tmp/portage/dev-libs/glib-2.40.0-r1/work/glib-2.40.0/glib/gmain.c:3795
#4  0x00007f65e44bcd6e in QEventDispatcherGlib::processEvents (this=0x7f65c80008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:450
#5  0x00007f65e448d66f in QEventLoop::processEvents (this=this@entry=0x7f65ce305e40, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007f65e448d8f8 in QEventLoop::exec (this=this@entry=0x7f65ce305e40, flags=...) at kernel/qeventloop.cpp:204
#7  0x00007f65e4391300 in QThread::exec (this=this@entry=0x1ae14b0) at thread/qthread.cpp:536
#8  0x00007f65dd3806de in KIO::NameLookUpThread::run (this=0x1ae14b0) at /var/tmp/portage/kde-base/kdelibs-4.14.0/work/kdelibs-4.14.0/kio/kio/hostinfo.cpp:226
#9  0x00007f65e4393a7c in QThreadPrivate::start (arg=0x1ae14b0) at thread/qthread_unix.cpp:338
#10 0x00007f65e40fd1da in start_thread (arg=0x7f65ce306700) at pthread_create.c:309
#11 0x00007f65e2ea49cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 4 (Thread 0x7f65b7f9d700 (LWP 32663)):
#0  pthread_cond_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f65e4393fdb in wait (time=18446744073709551615, this=0x29df080) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x2781520, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f65e438ff47 in QSemaphore::acquire (this=this@entry=0x2a1caf0, n=n@entry=1) at thread/qsemaphore.cpp:144
#4  0x00007f65b965c37f in GSRendererThread::run (this=0x2a1cae0) at /var/tmp/portage/kde-base/okular-4.14.0/work/okular-4.14.0/generators/spectre/rendererthread.cpp:50
#5  0x00007f65e4393a7c in QThreadPrivate::start (arg=0x2a1cae0) at thread/qthread_unix.cpp:338
#6  0x00007f65e40fd1da in start_thread (arg=0x7f65b7f9d700) at pthread_create.c:309
#7  0x00007f65e2ea49cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 3 (Thread 0x7f65b596e700 (LWP 32664)):
#0  syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x00007f65e4392584 in _q_futex (timeout=0x0, val=2, op=0, addr=0x2aba1a0, addr2=<optimized out>, val2=<optimized out>) at thread/qmutex_unix.cpp:99
#2  QMutexPrivate::wait (this=this@entry=0x2aba1a0, timeout=timeout@entry=-1) at thread/qmutex_unix.cpp:113
#3  0x00007f65e438e785 in QMutex::lockInternal (this=<optimized out>) at thread/qmutex.cpp:450
#4  0x00007f65e438e873 in QMutex::lock (this=<optimized out>) at thread/qmutex.cpp:177
#5  0x00007f65b6b736ad in PDFGenerator::image (this=0x2a2bd30, request=0x2ab2540) at /var/tmp/portage/kde-base/okular-4.14.0/work/okular-4.14.0/generators/poppler/generator_pdf.cpp:860
#6  0x00007f65bba76f31 in Okular::PixmapGenerationThread::run (this=0x277bdd0) at /var/tmp/portage/kde-base/okular-4.14.0/work/okular-4.14.0/core/generator_p.cpp:64
#7  0x00007f65e4393a7c in QThreadPrivate::start (arg=0x277bdd0) at thread/qthread_unix.cpp:338
#8  0x00007f65e40fd1da in start_thread (arg=0x7f65b596e700) at pthread_create.c:309
#9  0x00007f65e2ea49cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 2 (Thread 0x7f65b516d700 (LWP 32665)):
[KCrash Handler]
#6  gs_lcms2_malloc (id=0x0, size=56) at ./base/gsicc_lcms2.c:49
#7  0x00007f65d1f431a5 in _cmsMallocZeroDefaultFn (ContextID=<optimized out>, size=56) at /var/tmp/portage/media-libs/lcms-2.5-r1/work/lcms2-2.5/src/cmserr.c:97
#8  0x00007f65d1f436c5 in AllocateToneCurveStruct (ContextID=0x0, nEntries=nEntries@entry=4096, nSegments=nSegments@entry=1, Segments=0x7f65b516c920, Values=Values@entry=0x0) at /var/tmp/portage/media-libs/lcms-2.5-r1/work/lcms2-2.5/src/cmsgamma.c:165
#9  0x00007f65d1f440e0 in cmsBuildSegmentedToneCurve (ContextID=ContextID@entry=0x0, nSegments=nSegments@entry=1, Segments=Segments@entry=0x7f65b516c920) at /var/tmp/portage/media-libs/lcms-2.5-r1/work/lcms2-2.5/src/cmsgamma.c:583
#10 0x00007f65d1f4436d in cmsBuildParametricToneCurve (ContextID=ContextID@entry=0x0, Type=Type@entry=4, Params=Params@entry=0x7f65b516ca00) at /var/tmp/portage/media-libs/lcms-2.5-r1/work/lcms2-2.5/src/cmsgamma.c:669
#11 0x00007f65d1f5f0c6 in Build_sRGBGamma (ContextID=0x0) at /var/tmp/portage/media-libs/lcms-2.5-r1/work/lcms2-2.5/src/cmsvirt.c:639
#12 cmsCreate_sRGBProfileTHR (ContextID=0x0) at /var/tmp/portage/media-libs/lcms-2.5-r1/work/lcms2-2.5/src/cmsvirt.c:655
#13 0x00007f65b65a16d5 in GfxColorSpace::setupColorProfiles () at /var/tmp/portage/app-text/poppler-0.24.5/work/poppler-0.24.5/poppler/GfxState.cc:415
#14 0x00007f65b6594f20 in Gfx::Gfx (this=0x7f65a000da90, docA=<optimized out>, outA=<optimized out>, pageNum=1, resDict=<optimized out>, hDPI=<optimized out>, vDPI=<optimized out>, box=<optimized out>, cropBox=0x0, rotate=0, abortCheckCbkA=0x0, abortCheckCbkDataA=0x0, xrefA=0x7f65a0003480) at /var/tmp/portage/app-text/poppler-0.24.5/work/poppler-0.24.5/poppler/Gfx.cc:558
#15 0x00007f65b65cf0e1 in Page::createGfx (this=this@entry=0x2a911b0, out=out@entry=0x7f65a0003020, hDPI=hDPI@entry=72, vDPI=vDPI@entry=72, rotate=rotate@entry=0, useMediaBox=useMediaBox@entry=false, crop=crop@entry=false, sliceX=sliceX@entry=-1, sliceY=sliceY@entry=-1, sliceW=sliceW@entry=-1, sliceH=sliceH@entry=-1, printing=printing@entry=false, abortCheckCbk=abortCheckCbk@entry=0x0, abortCheckCbkData=abortCheckCbkData@entry=0x0, xrefA=xrefA@entry=0x7f65a0003480) at /var/tmp/portage/app-text/poppler-0.24.5/work/poppler-0.24.5/poppler/Page.cc:544
#16 0x00007f65b65cf3ad in Page::displaySlice (this=0x2a911b0, out=0x7f65a0003020, out@entry=0x4052000000000000, hDPI=72, hDPI@entry=2.6248039270403031e-302, vDPI=72, vDPI@entry=6.9205974984760022e-310, rotate=rotate@entry=0, useMediaBox=useMediaBox@entry=false, crop=crop@entry=false, sliceX=-1, sliceX@entry=13, sliceY=-1, sliceW=-1, sliceH=-1, printing=false, abortCheckCbk=0x0, abortCheckCbkData=0x0, annotDisplayDecideCbk=0x0, annotDisplayDecideCbkData=0x0, copyXRef=true) at /var/tmp/portage/app-text/poppler-0.24.5/work/poppler-0.24.5/poppler/Page.cc:579
#17 0x00007f65b65d582a in PDFDoc::displayPageSlice (this=<optimized out>, out=0x4052000000000000, out@entry=0x7f65a0003020, page=<optimized out>, hDPI=2.6248039270403031e-302, hDPI@entry=72, vDPI=6.9205974984760022e-310, vDPI@entry=72, rotate=rotate@entry=0, useMediaBox=useMediaBox@entry=false, crop=crop@entry=false, printing=255, printing@entry=false, sliceX=sliceX@entry=-1, sliceY=sliceY@entry=-1, sliceW=0, sliceW@entry=-1, sliceH=0, sliceH@entry=-1, abortCheckCbk=abortCheckCbk@entry=0x0, abortCheckCbkData=abortCheckCbkData@entry=0x0, annotDisplayDecideCbk=annotDisplayDecideCbk@entry=0x0, annotDisplayDecideCbkData=0x1, annotDisplayDecideCbkData@entry=0x0, copyXRef=copyXRef@entry=true) at /var/tmp/portage/app-text/poppler-0.24.5/work/poppler-0.24.5/poppler/PDFDoc.cc:498
#18 0x00007f65b693b0a2 in Poppler::Page::textList (this=this@entry=0x7f65a00013d0, rotate=rotate@entry=Poppler::Page::Rotate0) at /var/tmp/portage/app-text/poppler-0.24.5/work/poppler-0.24.5/qt4/src/poppler-page.cc:539
#19 0x00007f65b6b700cb in PDFGenerator::textPage (this=0x2a2bd30, page=0x2a918d0) at /var/tmp/portage/kde-base/okular-4.14.0/work/okular-4.14.0/generators/poppler/generator_pdf.cpp:992
#20 0x00007f65bba76a92 in Okular::TextPageGenerationThread::run (this=0x2aba240) at /var/tmp/portage/kde-base/okular-4.14.0/work/okular-4.14.0/core/generator_p.cpp:103
#21 0x00007f65e4393a7c in QThreadPrivate::start (arg=0x2aba240) at thread/qthread_unix.cpp:338
#22 0x00007f65e40fd1da in start_thread (arg=0x7f65b516d700) at pthread_create.c:309
#23 0x00007f65e2ea49cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7f65e583a780 (LWP 32650)):
#0  pthread_cond_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f65e4393fdb in wait (time=18446744073709551615, this=0x1a8d100) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=this@entry=0x1a5d0f0, mutex=0x1a5d0c8, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f65e439365c in QThread::wait (this=this@entry=0x1ae14b0, time=time@entry=18446744073709551615) at thread/qthread_unix.cpp:709
#4  0x00007f65dd380632 in ~NameLookUpThread (this=0x1ae14b0, __in_chrg=<optimized out>) at /var/tmp/portage/kde-base/kdelibs-4.14.0/work/kdelibs-4.14.0/kio/kio/hostinfo.cpp:208
#5  KIO::NameLookUpThread::~NameLookUpThread (this=0x1ae14b0, __in_chrg=<optimized out>) at /var/tmp/portage/kde-base/kdelibs-4.14.0/work/kdelibs-4.14.0/kio/kio/hostinfo.cpp:209
#6  0x00007f65e2df2319 in __run_exit_handlers (status=1, listp=0x7f65e31575c8 <__exit_funcs>, run_list_atexit=run_list_atexit@entry=true) at exit.c:82
#7  0x00007f65e2df23a5 in __GI_exit (status=<optimized out>) at exit.c:104
#8  0x00007f65e36aa868 in qt_xio_errhandler () at kernel/qapplication_x11.cpp:772
#9  0x00007f65e524ec38 in KApplication::xioErrhandler (this=0x7fff0ece5b00, dpy=0x1992740) at /var/tmp/portage/kde-base/kdelibs-4.14.0/work/kdelibs-4.14.0/kdeui/kernel/kapplication.cpp:419
#10 0x00007f65e4d0c66e in _XIOError (dpy=dpy@entry=0x1992740) at /var/tmp/portage/x11-libs/libX11-1.6.2/work/libX11-1.6.2/src/XlibInt.c:1498
#11 0x00007f65e4d0a1cd in _XEventsQueued (dpy=dpy@entry=0x1992740, mode=mode@entry=2) at /var/tmp/portage/x11-libs/libX11-1.6.2/work/libX11-1.6.2/src/xcb_io.c:366
#12 0x00007f65e4cfb8bb in XEventsQueued (dpy=0x1992740, mode=2) at /var/tmp/portage/x11-libs/libX11-1.6.2/work/libX11-1.6.2/src/Pending.c:43
#13 0x00007f65e36e0e3c in x11EventSourceCheck (s=0x1972eb0) at kernel/qguieventdispatcher_glib.cpp:85
#14 0x00007f65dfdacda9 in g_main_context_check (context=context@entry=0x1971ad0, max_priority=2147483647, fds=fds@entry=0x27227d0, n_fds=n_fds@entry=13) at /var/tmp/portage/dev-libs/glib-2.40.0-r1/work/glib-2.40.0/glib/gmain.c:3575
#15 0x00007f65dfdad2b5 in g_main_context_iterate (context=context@entry=0x1971ad0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /var/tmp/portage/dev-libs/glib-2.40.0-r1/work/glib-2.40.0/glib/gmain.c:3731
#16 0x00007f65dfdad444 in g_main_context_iteration (context=0x1971ad0, may_block=1) at /var/tmp/portage/dev-libs/glib-2.40.0-r1/work/glib-2.40.0/glib/gmain.c:3795
#17 0x00007f65e44bcd6e in QEventDispatcherGlib::processEvents (this=0x1894810, flags=...) at kernel/qeventdispatcher_glib.cpp:450
#18 0x00007f65e36e13ce in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#19 0x00007f65e448d66f in QEventLoop::processEvents (this=this@entry=0x7fff0ece5800, flags=...) at kernel/qeventloop.cpp:149
#20 0x00007f65e448d8f8 in QEventLoop::exec (this=this@entry=0x7fff0ece5800, flags=...) at kernel/qeventloop.cpp:204
#21 0x00007f65e4492b68 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1221
#22 0x00007f65e363f1dc in QApplication::exec () at kernel/qapplication.cpp:3823
#23 0x00007f65d3ef9832 in kdemain (argc=<optimized out>, argv=<optimized out>) at /var/tmp/portage/kde-base/konqueror-4.14.0/work/konqueror-4.14.0/konqueror/src/konqmain.cpp:227
#24 0x00000000004088ea in launch (argc=argc@entry=4, _name=_name@entry=0x1922f78 "konqueror", args=0x1922fc9 "/home/frank", args@entry=0x1922f82 "-mimetype", cwd=cwd@entry=0x1922fc9 "/home/frank", envc=envc@entry=67, envs=<optimized out>, envs@entry=0x1922fdd "QT_IMMODULE=uim", reset_env=true, tty=tty@entry=0x0, avoid_loops=false, startup_id_str=startup_id_str@entry=0x1923bb6 "kern;1413465829;460645;3033_TIME47081241") at /var/tmp/portage/kde-base/kdelibs-4.14.0/work/kdelibs-4.14.0/kinit/kinit.cpp:726
#25 0x000000000040977b in handle_launcher_request (sock=sock@entry=15, who=<optimized out>) at /var/tmp/portage/kde-base/kdelibs-4.14.0/work/kdelibs-4.14.0/kinit/kinit.cpp:1218
#26 0x0000000000409d79 in handle_requests (waitForPid=waitForPid@entry=0) at /var/tmp/portage/kde-base/kdelibs-4.14.0/work/kdelibs-4.14.0/kinit/kinit.cpp:1402
#27 0x0000000000405c6f in main (argc=2, argv=0x7fff00000001, envp=0x7fff0ece67d0) at /var/tmp/portage/kde-base/kdelibs-4.14.0/work/kdelibs-4.14.0/kinit/kinit.cpp:1899

Reported using DrKonqi
Comment 1 Frank Steinmetzger 2014-10-16 13:34:19 UTC
Addendum:
I was more cautious now. I opened the link in comment #6 and displayed the tab. All fine. Then I went back and clicked on the link in comment #7. As soon as I switched to that tab – boom. The backtrace was nonexistant again, even in the backtrace tab of the crash handler.

I should also add that the PDF in comment #7 is about a buggy output, perhaps this is relevant.
Comment 2 Albert Astals Cid 2014-10-16 22:17:48 UTC

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