Bug 164764 - crashes when trying to attach a png-file to a mail
Summary: crashes when trying to attach a png-file to a mail
Status: RESOLVED NOT A BUG
Alias: None
Product: Phonon
Classification: Frameworks and Libraries
Component: Xine backend (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Matthias Kretz
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-23 17:01 UTC by T Kleindienst
Modified: 2008-06-23 17:38 UTC (History)
0 users

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 T Kleindienst 2008-06-23 17:01:06 UTC
Version:           Version 1.3 (using Devel)
Installed from:    Compiled sources
Compiler:          g++ (GCC) 4.3.1
 
OS:                Linux

It's probably not kontact nor kmails fault... When trying to attach any sort of .png-file kontact crashes.
This only happens if file-preview is enabled in the fileselector, which seems to be a good hint, what may cause the crash (anyway.. if a preview is not working, the fileselector should not take the whole app down, or?)

backtrace:
Kontact (kontact), signal SIGSEGV
[Thread debugging using libthread_db enabled]
[New Thread 0xb4c948e0 (LWP 5833)]
[New Thread 0xaa0e5b90 (LWP 5866)]
[New Thread 0xab8abb90 (LWP 5865)]
[New Thread 0xac0acb90 (LWP 5864)]
[New Thread 0xaca7ab90 (LWP 5863)]
[New Thread 0xad664b90 (LWP 5862)]
[New Thread 0xade65b90 (LWP 5859)]
[New Thread 0xaeaa4b90 (LWP 5858)]
[New Thread 0xaf2c6b90 (LWP 5857)]
[New Thread 0xafcbdb90 (LWP 5854)]
[KCrash handler]
#6  0xb00873b8 in yuv444_to_yuy2_mmx () from /usr/lib/libxine.so.1
#7  0x000007fe in ?? ()
#8  0xb006c371 in vo_get_frame () from /usr/lib/libxine.so.1
#9  0x6c80863f in ?? ()
#10 0x3fe6b126 in ?? ()
#11 0x32595559 in ?? ()
#12 0x00000003 in ?? ()
#13 0x00000008 in ?? ()
#14 0x00000000 in ?? ()

Thread 4 (Thread 0xac0acb90 (LWP 5864)):
#0  0xb805e424 in __kernel_vsyscall ()
#1  0xb7df9bb5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb0063f68 in fifo_buffer_get () from /usr/lib/libxine.so.1
#3  0x00000001 in ?? ()

Thread 3 (Thread 0xab8abb90 (LWP 5865)):
#0  0xb805e424 in __kernel_vsyscall ()
#1  0xb7df9bb5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb0075270 in listener_loop () from /usr/lib/libxine.so.1
#3  0x00000000 in ?? ()

Thread 2 (Thread 0xaa0e5b90 (LWP 5866)):
#0  0xb805e424 in __kernel_vsyscall ()
#1  0xb5349601 in select () from /lib/libc.so.6
#2  0xb008a8b2 in xine_usec_sleep () from /usr/lib/libxine.so.1
#3  0x00000000 in ?? ()

Thread 1 (Thread 0xb4c948e0 (LWP 5833)):
#0  0xb805e424 in __kernel_vsyscall ()
#1  0xb7df9bb5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb7e89262 in QWaitCondition::wait (this=0xac265ec, mutex=0xac265dc, 
    time=4294967295) at thread/qwaitcondition_unix.cpp:88
#3  0xb00b56c7 in Phonon::Xine::XineStream::closeBlocking (this=0xac265b0)
    at /local/compile/source/kdebase/runtime/phonon/xine/xinestream.cpp:1249
#4  0xb00c8393 in ~MediaObject (this=0xb1feaf0)
    at /local/compile/source/kdebase/runtime/phonon/xine/mediaobject.cpp:120
#5  0xb7481ddc in Phonon::MediaNodePrivate::deleteBackendObject (
    this=0xa3cee70)
    at /local/compile/source/kdesupport/phonon/phonon/medianode.cpp:81
#6  0xb7490802 in ~FactoryPrivate (this=0xa9d41d8)
    at /local/compile/source/kdesupport/phonon/phonon/factory.cpp:176
#7  0xb748f995 in destroy ()
    at /local/compile/source/kdesupport/phonon/phonon/factory.cpp:84
#8  0xb7478e0b in ~CleanUpGlobalStatic (this=0xb74b4e8c)
    at /local/compile/source/kdesupport/phonon/phonon/globalstatic_p.h:55
#9  0xb52b06c9 in exit () from /lib/libc.so.6
#10 0xb56e6eeb in qt_xio_errhandler () at kernel/qapplication_x11.cpp:590
#11 0xb7a460c7 in KApplication::xioErrhandler (this=0xbf87a5bc, dpy=0x97c9878)
    at /local/compile/source/kdelibs/kdeui/kernel/kapplication.cpp:418
#12 0xb7a46106 in kde_xio_errhandler (dpy=0x97c9878)
    at /local/compile/source/kdelibs/kdeui/kernel/kapplication.cpp:130
#13 0xb6168772 in _XIOError () from /usr/lib/libX11.so.6
#14 0xb6170695 in process_responses () from /usr/lib/libX11.so.6
#15 0xb6170eb5 in _XEventsQueued () from /usr/lib/libX11.so.6
#16 0xb61593bf in XEventsQueued () from /usr/lib/libX11.so.6
#17 0xb571eddd in x11EventSourceCheck (s=0x97c2678)
    at kernel/qguieventdispatcher_glib.cpp:89
#18 0xb51fdaf6 in g_main_context_check () from /usr/lib/libglib-2.0.so.0
#19 0xb51fe3dd in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#20 0xb51fe668 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#21 0xb7fa18e7 in QEventDispatcherGlib::processEvents (this=0x97b9898, flags=
      {i = -1081633928}) at kernel/qeventdispatcher_glib.cpp:327
#22 0xb571ec15 in QGuiEventDispatcherGlib::processEvents (this=0x97b9898, 
    flags={i = -1081633880}) at kernel/qguieventdispatcher_glib.cpp:204
#23 0xb7f759ca in QEventLoop::processEvents (this=0xbf87941c, flags=
      {i = -1081633816}) at kernel/qeventloop.cpp:149
#24 0xb7f75b8a in QEventLoop::exec (this=0xbf87941c, flags={i = -1081633756})
    at kernel/qeventloop.cpp:200
#25 0xb5ae8457 in QDialog::exec (this=0xbf87947c) at dialogs/qdialog.cpp:453
#26 0xb133e6ea in KMComposeWin::slotAttachFile (this=0xb33ac18)
    at /local/compile/source/kdepim/kmail/kmcomposewin.cpp:2274
#27 0xb135bc66 in KMComposeWin::qt_metacall (this=0xb33ac18, 
    _c=QMetaObject::InvokeMetaMethod, _id=8, _a=0xbf87960c)
    at /local/compile/kdepim/kmail/kmcomposewin.moc:239
#28 0xb7f8be20 in QMetaObject::activate (sender=0xa0db5b8, 
    from_signal_index=5, to_signal_index=6, argv=0xbf87960c)
    at kernel/qobject.cpp:3010
#29 0xb7f8c220 in QMetaObject::activate (sender=0xa0db5b8, m=0xb5e205b8, 
    from_local_signal_index=1, to_local_signal_index=2, argv=0xbf87960c)
    at kernel/qobject.cpp:3100
#30 0xb5680f91 in QAction::triggered (this=0xa0db5b8, _t1=false)
    at .moc/release-shared/moc_qaction.cpp:216
#31 0xb56818ff in QAction::activate (this=0xa0db5b8, event=QAction::Trigger)
    at kernel/qaction.cpp:1119
#32 0xb5a9b512 in QToolButton::nextCheckState (this=0x1)
    at ../../include/QtGui/../../src/gui/kernel/qaction.h:201
#33 0xb59bf343 in QAbstractButtonPrivate::click (this=0xa80ae48)
    at widgets/qabstractbutton.cpp:525
#34 0xb59bf616 in QAbstractButton::mouseReleaseEvent (this=0xa52aa28, 
    e=0xbf879cdc) at widgets/qabstractbutton.cpp:1112
#35 0xb5a9ba0c in QToolButton::mouseReleaseEvent (this=0xa52aa28, 
    e=0xbf879cdc) at widgets/qtoolbutton.cpp:675
#36 0xb56df022 in QWidget::event (this=0xa52aa28, event=0xbf879cdc)
    at kernel/qwidget.cpp:6927
#37 0xb59bd6be in QAbstractButton::event (this=0xa52aa28, e=0xbf879cdc)
    at widgets/qabstractbutton.cpp:1074
#38 0xb5a9b4d4 in QToolButton::event (this=0xa52aa28, e=0xbf879cdc)
    at widgets/qtoolbutton.cpp:1105
#39 0xb568722c in QApplicationPrivate::notify_helper (this=0x97bf7e0, 
    receiver=0xa52aa28, e=0xbf879cdc) at kernel/qapplication.cpp:3772
#40 0xb568f9b1 in QApplication::notify (this=0xbf87a5bc, receiver=0xa52aa28, 
    e=0xbf879cdc) at kernel/qapplication.cpp:3501
#41 0xb7a466fd in KApplication::notify (this=0xbf87a5bc, receiver=0xa52aa28, 
    event=0xbf879cdc)
    at /local/compile/source/kdelibs/kdeui/kernel/kapplication.cpp:311
#42 0xb7f772e1 in QCoreApplication::notifyInternal (this=0xbf87a5bc, 
    receiver=0xa52aa28, event=0xbf879cdc) at kernel/qcoreapplication.cpp:587
#43 0xb568ec3e in QApplicationPrivate::sendMouseEvent (receiver=0xa52aa28, 
    event=0xbf879cdc, alienWidget=0xa52aa28, nativeWidget=0xb33ac18, 
    buttonDown=0xb5e3c710, lastMouseReceiver=@0xb5e3c714)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#44 0xb56f812d in QETWidget::translateMouseEvent (this=0xb33ac18, 
    event=0xbf87a1cc) at kernel/qapplication_x11.cpp:4133
#45 0xb56f6eff in QApplication::x11ProcessEvent (this=0xbf87a5bc, 
    event=0xbf87a1cc) at kernel/qapplication_x11.cpp:3255
#46 0xb571f50c in x11EventSourceDispatch (s=0x97c2678, callback=0, 
    user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:148
#47 0xb51faf88 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#48 0xb51fe4eb in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#49 0xb51fe668 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#50 0xb7fa18c8 in QEventDispatcherGlib::processEvents (this=0x97b9898, flags=
      {i = -1081629816}) at kernel/qeventdispatcher_glib.cpp:325
#51 0xb571ec15 in QGuiEventDispatcherGlib::processEvents (this=0x97b9898, 
    flags={i = -1081629768}) at kernel/qguieventdispatcher_glib.cpp:204
#52 0xb7f759ca in QEventLoop::processEvents (this=0xbf87a430, flags=
      {i = -1081629704}) at kernel/qeventloop.cpp:149
#53 0xb7f75b8a in QEventLoop::exec (this=0xbf87a430, flags={i = -1081629640})
    at kernel/qeventloop.cpp:200
#54 0xb7f78235 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:845
#55 0xb56870a7 in QApplication::exec () at kernel/qapplication.cpp:3304
#56 0x0804c106 in main (argc=1, argv=0xbf87a7b4)
    at /local/compile/source/kdepim/kontact/src/main.cpp:210
#0  0xb805e424 in __kernel_vsyscall ()
Comment 1 Matthias Kretz 2008-06-23 17:28:56 UTC
Sorry, but the backtrace is useless as it just shows symptoms of another bug which your report doesn't give any info on.

The application got an XIO error and handles that by calling exit. That in turn calls the Phonon cleanup routines which crash because of some earlier memory corruption or because of the XIO error, I guess.

The real problem is somewhere else. If you can reproduce the crash then you can try to figure out what's causing the XIO error. The first thing to look at is the debug output. As X errors are reported asynchronously they don't show up in the stack trace. AFAIK you can make X calls synchronous though...