Bug 243279 - Gwenview crashes on invalid SVG file
Summary: Gwenview crashes on invalid SVG file
Status: RESOLVED DUPLICATE of bug 229925
Alias: None
Product: gwenview
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Gwenview Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-30 20:37 UTC by Alexey Neyman
Modified: 2012-10-19 13:26 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Neyman 2010-06-30 20:37:07 UTC
Application: gwenview (2.4.2)
KDE Platform Version: 4.4.2 (KDE 4.4.2)
Qt Version: 4.6.2
Operating System: Linux 2.6.34-020634-generic i686
Distribution: Ubuntu 10.04 LTS

-- Information about the crash:
When Gwenview tried to display an invalid SVG file, it crashed. Invalid file consisted of a single line:

<ellipse cx="240" cy="100" rx="220" ry="30" style="fill:purple"/>

(no <svg> and </svg> wrappers; I was experimenting with inclusion of one SVG into another).

The crash can be reproduced every time.

 -- Backtrace:
Application: Gwenview (gwenview), signal: Segmentation fault
[Current thread is 1 (Thread 0xb50daaa0 (LWP 26040))]

Thread 9 (Thread 0xb3ac7b70 (LWP 26041)):
#0  0xb77e3430 in __kernel_vsyscall ()
#1  0xb5a8f015 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb5edb9dd in pthread_cond_wait () from /lib/tls/i686/cmov/libc.so.6
#3  0xb71f3287 in QWaitConditionPrivate::wait (this=0x8beb7b8, mutex=0x8beb7b4, time=4294967295) at thread/qwaitcondition_unix.cpp:87
#4  QWaitCondition::wait (this=0x8beb7b8, mutex=0x8beb7b4, time=4294967295) at thread/qwaitcondition_unix.cpp:159
#5  0xb7734ba2 in Gwenview::SemanticInfoThread::run (this=0x8beb7a8) at ../../../gwenview/lib/semanticinfo/nepomuksemanticinfobackend.cpp:132
#6  0xb71f232e in QThreadPrivate::start (arg=0x8beb7a8) at thread/qthread_unix.cpp:248
#7  0xb5a8a96e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#8  0xb5ecea4e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 8 (Thread 0xb2cd8b70 (LWP 26044)):
#0  0xb77e3430 in __kernel_vsyscall ()
#1  0xb5ec0b86 in poll () from /lib/tls/i686/cmov/libc.so.6
#2  0xb56764eb in g_poll () from /lib/libglib-2.0.so.0
#3  0xb56690ac in ?? () from /lib/libglib-2.0.so.0
#4  0xb56694b8 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#5  0xb732060f in QEventDispatcherGlib::processEvents (this=0x8bc0278, flags=...) at kernel/qeventdispatcher_glib.cpp:414
#6  0xb72f3059 in QEventLoop::processEvents (this=0xb2cd8290, flags=) at kernel/qeventloop.cpp:149
#7  0xb72f34aa in QEventLoop::exec (this=0xb2cd8290, flags=...) at kernel/qeventloop.cpp:201
#8  0xb71ef5a8 in QThread::exec (this=0x8f26c88) at thread/qthread.cpp:487
#9  0xb72d2c1b in QInotifyFileSystemWatcherEngine::run (this=0x8f26c88) at io/qfilesystemwatcher_inotify.cpp:248
#10 0xb71f232e in QThreadPrivate::start (arg=0x8f26c88) at thread/qthread_unix.cpp:248
#11 0xb5a8a96e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#12 0xb5ecea4e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 7 (Thread 0xb10ffb70 (LWP 26045)):
#0  0xb77e3430 in __kernel_vsyscall ()
#1  0xb5a8f015 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb5edb9dd in pthread_cond_wait () from /lib/tls/i686/cmov/libc.so.6
#3  0xb71f3287 in QWaitConditionPrivate::wait (this=0x8f67008, mutex=0x8f67004, time=4294967295) at thread/qwaitcondition_unix.cpp:87
#4  QWaitCondition::wait (this=0x8f67008, mutex=0x8f67004, time=4294967295) at thread/qwaitcondition_unix.cpp:159
#5  0xb7734ba2 in Gwenview::SemanticInfoThread::run (this=0x8f66ff8) at ../../../gwenview/lib/semanticinfo/nepomuksemanticinfobackend.cpp:132
#6  0xb71f232e in QThreadPrivate::start (arg=0x8f66ff8) at thread/qthread_unix.cpp:248
#7  0xb5a8a96e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#8  0xb5ecea4e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 6 (Thread 0xb08feb70 (LWP 26046)):
#0  0xb77e3430 in __kernel_vsyscall ()
#1  0xb5a8f015 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb5edb9dd in pthread_cond_wait () from /lib/tls/i686/cmov/libc.so.6
#3  0xb71f3287 in QWaitConditionPrivate::wait (this=0xb1100c88, mutex=0xb1100c84, time=4294967295) at thread/qwaitcondition_unix.cpp:87
#4  QWaitCondition::wait (this=0xb1100c88, mutex=0xb1100c84, time=4294967295) at thread/qwaitcondition_unix.cpp:159
#5  0xb7734ba2 in Gwenview::SemanticInfoThread::run (this=0xb1100c78) at ../../../gwenview/lib/semanticinfo/nepomuksemanticinfobackend.cpp:132
#6  0xb71f232e in QThreadPrivate::start (arg=0xb1100c78) at thread/qthread_unix.cpp:248
#7  0xb5a8a96e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#8  0xb5ecea4e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 5 (Thread 0xb00fdb70 (LWP 26047)):
#0  0xb77e3430 in __kernel_vsyscall ()
#1  0xb5a8f015 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb5edb9dd in pthread_cond_wait () from /lib/tls/i686/cmov/libc.so.6
#3  0xb71f3287 in QWaitConditionPrivate::wait (this=0x8f6c008, mutex=0x8f6c004, time=4294967295) at thread/qwaitcondition_unix.cpp:87
#4  QWaitCondition::wait (this=0x8f6c008, mutex=0x8f6c004, time=4294967295) at thread/qwaitcondition_unix.cpp:159
#5  0xb7734ba2 in Gwenview::SemanticInfoThread::run (this=0x8f6bff8) at ../../../gwenview/lib/semanticinfo/nepomuksemanticinfobackend.cpp:132
#6  0xb71f232e in QThreadPrivate::start (arg=0x8f6bff8) at thread/qthread_unix.cpp:248
#7  0xb5a8a96e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#8  0xb5ecea4e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 4 (Thread 0xaf8fcb70 (LWP 26048)):
#0  0xb77e3430 in __kernel_vsyscall ()
#1  0xb5a8f015 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb5edb9dd in pthread_cond_wait () from /lib/tls/i686/cmov/libc.so.6
#3  0xb71f3287 in QWaitConditionPrivate::wait (this=0xb1102510, mutex=0xb110250c, time=4294967295) at thread/qwaitcondition_unix.cpp:87
#4  QWaitCondition::wait (this=0xb1102510, mutex=0xb110250c, time=4294967295) at thread/qwaitcondition_unix.cpp:159
#5  0xb7734ba2 in Gwenview::SemanticInfoThread::run (this=0xb1102500) at ../../../gwenview/lib/semanticinfo/nepomuksemanticinfobackend.cpp:132
#6  0xb71f232e in QThreadPrivate::start (arg=0xb1102500) at thread/qthread_unix.cpp:248
#7  0xb5a8a96e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#8  0xb5ecea4e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 3 (Thread 0xaf0fbb70 (LWP 26049)):
#0  0xb77e3430 in __kernel_vsyscall ()
#1  0xb5a8f015 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb5edb9dd in pthread_cond_wait () from /lib/tls/i686/cmov/libc.so.6
#3  0xb71f3287 in QWaitConditionPrivate::wait (this=0x8f98558, mutex=0x8f98554, time=4294967295) at thread/qwaitcondition_unix.cpp:87
#4  QWaitCondition::wait (this=0x8f98558, mutex=0x8f98554, time=4294967295) at thread/qwaitcondition_unix.cpp:159
#5  0xb7734ba2 in Gwenview::SemanticInfoThread::run (this=0x8f98548) at ../../../gwenview/lib/semanticinfo/nepomuksemanticinfobackend.cpp:132
#6  0xb71f232e in QThreadPrivate::start (arg=0x8f98548) at thread/qthread_unix.cpp:248
#7  0xb5a8a96e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#8  0xb5ecea4e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 2 (Thread 0xae8fab70 (LWP 26050)):
#0  0xb77e3430 in __kernel_vsyscall ()
#1  0xb5a8f015 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb5edb9dd in pthread_cond_wait () from /lib/tls/i686/cmov/libc.so.6
#3  0xb71f3287 in QWaitConditionPrivate::wait (this=0x8f40a98, mutex=0x8f40a94, time=4294967295) at thread/qwaitcondition_unix.cpp:87
#4  QWaitCondition::wait (this=0x8f40a98, mutex=0x8f40a94, time=4294967295) at thread/qwaitcondition_unix.cpp:159
#5  0xb7734ba2 in Gwenview::SemanticInfoThread::run (this=0x8f40a88) at ../../../gwenview/lib/semanticinfo/nepomuksemanticinfobackend.cpp:132
#6  0xb71f232e in QThreadPrivate::start (arg=0x8f40a88) at thread/qthread_unix.cpp:248
#7  0xb5a8a96e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#8  0xb5ecea4e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 1 (Thread 0xb50daaa0 (LWP 26040)):
[KCrash Handler]
#6  0xb5ac5911 in QSvgHandler::startElement (this=0xbf92ec04, localName=..., attributes=...) at qsvghandler.cpp:3604
#7  0xb5ac7378 in QSvgHandler::parse (this=0xbf92ec04) at qsvghandler.cpp:3528
#8  0xb5ac76be in QSvgHandler::init (this=0xbf92ec04) at qsvghandler.cpp:3508
#9  0xb5ac79db in QSvgHandler (this=0xbf92ec04, data=...) at qsvghandler.cpp:3491
#10 0xb5ad7c47 in QSvgTinyDocument::load (contents=...) at qsvgtinydocument.cpp:208
#11 0xb5ada4da in loadDocument<QByteArray> (this=0x90d2b10, contents=...) at qsvgrenderer.cpp:317
#12 QSvgRenderer::load (this=0x90d2b10, contents=...) at qsvgrenderer.cpp:353
#13 0xb6fb4314 in KSvgRenderer::load (this=0x90d2b10, contents=...) at ../../kdeui/util/ksvgrenderer.cpp:46
#14 0xb76e44e9 in Gwenview::SvgViewAdapter::loadFromDocument (this=0x90e2758) at ../../../gwenview/lib/documentview/svgviewadapter.cpp:90
#15 0xb76e47f7 in Gwenview::SvgViewAdapter::setDocument (this=0x90e2758, doc=...) at ../../../gwenview/lib/documentview/svgviewadapter.cpp:82
#16 0xb76e0d74 in Gwenview::DocumentView::finishOpenUrl (this=0x8d238c8) at ../../../gwenview/lib/documentview/documentview.cpp:387
#17 0xb76e0fe4 in Gwenview::DocumentView::openUrl (this=0x8d238c8, url=...) at ../../../gwenview/lib/documentview/documentview.cpp:362
#18 0x080878b1 in Gwenview::MainWindow::openDocumentUrl (this=0x8bd7248, url=...) at ../../../gwenview/app/mainwindow.cpp:1013
#19 0x08087afa in Gwenview::MainWindow::openSelectedDocument (this=0x8bd7248) at ../../../gwenview/app/mainwindow.cpp:939
#20 0x08089a30 in Gwenview::MainWindow::slotSelectionChanged (this=0x8bd7248) at ../../../gwenview/app/mainwindow.cpp:1063
#21 0x0808bb4e in Gwenview::MainWindow::qt_metacall (this=0x8bd7248, _c=QMetaObject::InvokeMetaMethod, _id=63, _a=0xbf92f084) at ./mainwindow.moc:150
#22 0xb72f9c9a in QMetaObject::metacall (object=0x8bd7248, cl=3214076936, idx=63, argv=0xbf92f084) at kernel/qmetaobject.cpp:237
#23 0xb73083d5 in QMetaObject::activate (sender=0x8c239f8, m=0xb6d2be30, local_signal_index=0, argv=0xbf92f084) at kernel/qobject.cpp:3293
#24 0xb69f15f9 in QItemSelectionModel::selectionChanged (this=0x8c239f8, _t1=..., _t2=...) at .moc/release-shared/moc_qitemselectionmodel.cpp:152
#25 0xb69fa943 in QItemSelectionModel::emitSelectionChanged (this=0x8c239f8, newSelection=..., oldSelection=...) at itemviews/qitemselectionmodel.cpp:1592
#26 0xb69fac53 in QItemSelectionModel::select (this=0x8c239f8, selection=..., command=...) at itemviews/qitemselectionmodel.cpp:1099
#27 0xb69bbe53 in QListView::setSelection (this=0x8d2c7f0, rect=..., command=...) at itemviews/qlistview.cpp:1385
#28 0xb699b7fb in QAbstractItemView::mousePressEvent (this=0x8d2c7f0, event=0xbf92fc50) at itemviews/qabstractitemview.cpp:1656
#29 0xb64547dc in QWidget::event (this=0x8d2c7f0, event=0xbf92fc50) at kernel/qwidget.cpp:7994
#30 0xb6850fd3 in QFrame::event (this=0x8d2c7f0, e=0xbf92fc50) at widgets/qframe.cpp:557
#31 0xb68eb382 in QAbstractScrollArea::viewportEvent (this=0xbf92ec08, e=0x1) at widgets/qabstractscrollarea.cpp:1036
#32 0xb699fbd7 in QAbstractItemView::viewportEvent (this=0x8d2c7f0, event=0xbf92fc50) at itemviews/qabstractitemview.cpp:1610
#33 0xb68edc65 in QAbstractScrollAreaPrivate::viewportEvent (this=0x8d2dba0, o=0x8d2c388, e=0xbf92fc50) at widgets/qabstractscrollarea_p.h:100
#34 QAbstractScrollAreaFilter::eventFilter (this=0x8d2dba0, o=0x8d2c388, e=0xbf92fc50) at widgets/qabstractscrollarea_p.h:116
#35 0xb72f3cda in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=0x8b58090, receiver=0x8d2c388, event=0xbf92fc50) at kernel/qcoreapplication.cpp:819
#36 0xb63f64b9 in QApplicationPrivate::notify_helper (this=0x8b58090, receiver=0x8d2c388, e=0xbf92fc50) at kernel/qapplication.cpp:4296
#37 0xb63fd9f7 in QApplication::notify (this=0xbf930500, receiver=0x8d2c388, e=0xbf92fc50) at kernel/qapplication.cpp:3865
#38 0xb6f1cf2a in KApplication::notify (this=0xbf930500, receiver=0x8d2c388, event=0xbf92fc50) at ../../kdeui/kernel/kapplication.cpp:302
#39 0xb72f4a3b in QCoreApplication::notifyInternal (this=0xbf930500, receiver=0x8d2c388, event=0xbf92fc50) at kernel/qcoreapplication.cpp:704
#40 0xb63fc952 in QCoreApplication::sendEvent (receiver=0x8d2c388, event=0xbf92fc50, alienWidget=0x8d2c388, nativeWidget=0x8bd7248, buttonDown=0xb6d3a058, lastMouseReceiver=..., spontaneous=true)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#41 QApplicationPrivate::sendMouseEvent (receiver=0x8d2c388, event=0xbf92fc50, alienWidget=0x8d2c388, nativeWidget=0x8bd7248, buttonDown=0xb6d3a058, lastMouseReceiver=..., spontaneous=true)
    at kernel/qapplication.cpp:2965
#42 0xb6488088 in QETWidget::translateMouseEvent (this=0x8bd7248, event=0xbf93016c) at kernel/qapplication_x11.cpp:4368
#43 0xb6487511 in QApplication::x11ProcessEvent (this=0xbf930500, event=0xbf93016c) at kernel/qapplication_x11.cpp:3379
#44 0xb64b660a in x11EventSourceDispatch (s=0x8b5b300, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#45 0xb56655e5 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#46 0xb56692d8 in ?? () from /lib/libglib-2.0.so.0
#47 0xb56694b8 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#48 0xb73205d5 in QEventDispatcherGlib::processEvents (this=0x8b436b0, flags=...) at kernel/qeventdispatcher_glib.cpp:412
#49 0xb64b6135 in QGuiEventDispatcherGlib::processEvents (this=0x8b436b0, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#50 0xb72f3059 in QEventLoop::processEvents (this=0xbf930464, flags=) at kernel/qeventloop.cpp:149
#51 0xb72f34aa in QEventLoop::exec (this=0xbf930464, flags=...) at kernel/qeventloop.cpp:201
#52 0xb72f769f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#53 0xb63f6577 in QApplication::exec () at kernel/qapplication.cpp:3579
#54 0x08085618 in main (argc=1, argv=0xbf930684) at ../../../gwenview/app/main.cpp:101

Possible duplicates by query: bug 196994.

Reported using DrKonqi
Comment 1 Christoph Feck 2010-09-26 23:10:27 UTC

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