[okular] [Bug 388228] Okular crashes when annotating a piece of text

Jonathan Schmidt-Dominé bugzilla_noreply at kde.org
Wed Jan 3 16:11:20 UTC 2018


https://bugs.kde.org/show_bug.cgi?id=388228

--- Comment #6 from Jonathan Schmidt-Dominé <devel at the-user.org> ---
Looks like a corrupted vtable. “pure virtual method called”

==30208== Memcheck, a memory error detector
==30208== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==30208== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info
==30208== Command: okular WhatMathematicalKnowledgeCouldNotBe.pdf
==30208== 

Illegal icon group:  7
Illegal icon group:  7
Illegal icon group:  7
Illegal icon group:  7
Illegal icon group:  7
Illegal icon group:  7
Illegal icon group:  7
==30208== Invalid read of size 8
==30208==    at 0x1E94427A: MouseAnnotation::cursor() const
(pageviewmouseannotation.cpp:379)
==30208==    by 0x1E94988B: PageView::updateCursor(QPoint const&)
(pageview.cpp:4032)
==30208==    by 0x1E949939: PageView::updateCursor() (pageview.cpp:3997)
==30208==    by 0x1E93BD1A: PageViewAnnotator::slotToolSelected(int)
(pageviewannotator.cpp:981)
==30208==    by 0x823C9FE: QMetaObject::activate(QObject*, int, int, void**)
(in /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.9.1)
==30208==    by 0x1E9656B9: toolSelected (moc_pageviewutils.cpp:340)
==30208==    by 0x1E9656B9: ToolBarPrivate::selectButton(ToolBarButton*) [clone
.part.38] (pageviewutils.cpp:927)
==30208==    by 0x1E9659D5: selectButton (pageviewutils.cpp:610)
==30208==    by 0x1E9659D5: PageViewToolBar::selectButton(int)
(pageviewutils.cpp:610)
==30208==    by 0x1E93D3AE: detachAnnotation (pageviewannotator.cpp:1077)
==30208==    by 0x1E93D3AE:
PageViewAnnotator::performRouteMouseOrTabletEvent(AnnotatorEngine::EventType
const&, AnnotatorEngine::Button const&, QPointF const&, PageViewItem*)
(pageviewannotator.cpp:867)
==30208==    by 0x1E93D42F: PageViewAnnotator::routeMouseEvent(QMouseEvent*,
PageViewItem*) (pageviewannotator.cpp:881)
==30208==    by 0x1E95C448: PageView::mouseReleaseEvent(QMouseEvent*)
(pageview.cpp:2443)
==30208==    by 0x6EE3DC7: QWidget::event(QEvent*) (in
/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.9.1)
==30208==    by 0x6FC32DD: QFrame::event(QEvent*) (in
/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.9.1)
==30208==  Address 0x27a2b9f0 is 0 bytes inside a block of size 16 free'd
==30208==    at 0x4C3123B: operator delete(void*) (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==30208==    by 0x1EC658E2:
Okular::AddAnnotationCommand::~AddAnnotationCommand() (documentcommands.cpp:72)
==30208==    by 0x1EC65928:
Okular::AddAnnotationCommand::~AddAnnotationCommand() (documentcommands.cpp:74)
==30208==    by 0x71FC861: QUndoStack::push(QUndoCommand*) (in
/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.9.1)
==30208==    by 0x1EC49A24: Okular::Document::addPageAnnotation(int,
Okular::Annotation*) (document.cpp:3230)
==30208==    by 0x1E93D27F:
PageViewAnnotator::performRouteMouseOrTabletEvent(AnnotatorEngine::EventType
const&, AnnotatorEngine::Button const&, QPointF const&, PageViewItem*)
(pageviewannotator.cpp:858)
==30208==    by 0x1E93D42F: PageViewAnnotator::routeMouseEvent(QMouseEvent*,
PageViewItem*) (pageviewannotator.cpp:881)
==30208==    by 0x1E95C448: PageView::mouseReleaseEvent(QMouseEvent*)
(pageview.cpp:2443)
==30208==    by 0x6EE3DC7: QWidget::event(QEvent*) (in
/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.9.1)
==30208==    by 0x6FC32DD: QFrame::event(QEvent*) (in
/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.9.1)
==30208==    by 0x1E95EF23: PageView::viewportEvent(QEvent*)
(pageview.cpp:3323)
==30208==    by 0x820DACB:
QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) (in
/usr/lib/x86_64-linux-gnu/libQt5Core.so.5.9.1)
==30208==  Block was alloc'd at
==30208==    at 0x4C3017F: operator new(unsigned long) (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==30208==    by 0x1E941D2A: TextSelectorEngine::end()
(pageviewannotator.cpp:606)
==30208==    by 0x1E93D202:
PageViewAnnotator::performRouteMouseOrTabletEvent(AnnotatorEngine::EventType
const&, AnnotatorEngine::Button const&, QPointF const&, PageViewItem*)
(pageviewannotator.cpp:849)
==30208==    by 0x1E93D42F: PageViewAnnotator::routeMouseEvent(QMouseEvent*,
PageViewItem*) (pageviewannotator.cpp:881)
==30208==    by 0x1E95C448: PageView::mouseReleaseEvent(QMouseEvent*)
(pageview.cpp:2443)
==30208==    by 0x6EE3DC7: QWidget::event(QEvent*) (in
/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.9.1)
==30208==    by 0x6FC32DD: QFrame::event(QEvent*) (in
/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.9.1)
==30208==    by 0x1E95EF23: PageView::viewportEvent(QEvent*)
(pageview.cpp:3323)
==30208==    by 0x820DACB:
QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) (in
/usr/lib/x86_64-linux-gnu/libQt5Core.so.5.9.1)
==30208==    by 0x6EA3444: QApplicationPrivate::notify_helper(QObject*,
QEvent*) (in /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.9.1)
==30208==    by 0x6EAB28E: QApplication::notify(QObject*, QEvent*) (in
/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.9.1)
==30208==    by 0x820DDE7: QCoreApplication::notifyInternal2(QObject*, QEvent*)
(in /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.9.1)
==30208== 
pure virtual method called
terminate called without an active exception
==30208== 
==30208== Process terminating with default action of signal 6 (SIGABRT)
==30208==    at 0x8A8A0BB: raise (raise.c:51)
==30208==    by 0x8A8BF5C: abort (abort.c:90)
==30208==    by 0x875F094: __gnu_cxx::__verbose_terminate_handler() (in
/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.24)
==30208==    by 0x875CC85: ??? (in
/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.24)
==30208==    by 0x875CCD0: std::terminate() (in
/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.24)
==30208==    by 0x875DABE: __cxa_pure_virtual (in
/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.24)
==30208==    by 0x1E944285: MouseAnnotation::cursor() const
(pageviewmouseannotation.cpp:379)
==30208==    by 0x1E94988B: PageView::updateCursor(QPoint const&)
(pageview.cpp:4032)
==30208==    by 0x1E949939: PageView::updateCursor() (pageview.cpp:3997)
==30208==    by 0x1E93BD1A: PageViewAnnotator::slotToolSelected(int)
(pageviewannotator.cpp:981)
==30208==    by 0x823C9FE: QMetaObject::activate(QObject*, int, int, void**)
(in /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.9.1)
==30208==    by 0x1E9656B9: toolSelected (moc_pageviewutils.cpp:340)
==30208==    by 0x1E9656B9: ToolBarPrivate::selectButton(ToolBarButton*) [clone
.part.38] (pageviewutils.cpp:927)
==30208== 
==30208== HEAP SUMMARY:
==30208==     in use at exit: 52,979,090 bytes in 337,249 blocks
==30208==   total heap usage: 3,908,136 allocs, 3,570,887 frees, 1,370,549,893
bytes allocated
==30208== 
==30208== LEAK SUMMARY:
==30208==    definitely lost: 7,168 bytes in 27 blocks
==30208==    indirectly lost: 3,469 bytes in 140 blocks
==30208==      possibly lost: 2,498,797 bytes in 8,145 blocks
==30208==    still reachable: 50,469,656 bytes in 328,937 blocks
==30208==                       of which reachable via heuristic:
==30208==                         newarray           : 6,112 bytes in 54 blocks
==30208==                         multipleinheritance: 78,152 bytes in 91
blocks
==30208==         suppressed: 0 bytes in 0 blocks
==30208== Rerun with --leak-check=full to see details of leaked memory
==30208== 
==30208== For counts of detected and suppressed errors, rerun with: -v
==30208== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Okular-devel mailing list