Bug 272242 - kmail crash while trying to save an attachment
Summary: kmail crash while trying to save an attachment
Status: RESOLVED NOT A BUG
Alias: None
Product: phonon-backend-vlc
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Harald Sitter
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-02 14:37 UTC by Marc Schiffbauer
Modified: 2011-05-02 21:32 UTC (History)
5 users (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 Marc Schiffbauer 2011-05-02 14:37:09 UTC
Application: kmail (2.0.95)
KDE Platform Version: 4.6.3 (4.6.3) (Compiled from sources)
Qt Version: 4.7.2
Operating System: Linux 2.6.38-gentoo-r3 x86_64
Distribution (Platform): Gentoo Packages

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

I got a amil with attachment. Then I clicken onto the attachement to save or open it. The dialog appeared and after clicking open kmail crashed

-- Backtrace:
Application: KMail (kmail), signal: Segmentation fault
[Current thread is 1 (Thread 0x7fb64986c780 (LWP 22195))]

Thread 4 (Thread 0x7fb62cd8a700 (LWP 22202)):
#0  pthread_cond_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fb63b6c34a4 in scavengerThread (context=0x7fb63bee5f20) at wtf/FastMalloc.cpp:2378
#2  WTF::TCMalloc_PageHeap::runScavengerThread (context=0x7fb63bee5f20) at wtf/FastMalloc.cpp:1497
#3  0x00007fb644a93e1c in start_thread () from /lib64/libpthread.so.0
#4  0x00007fb646c286fd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 3 (Thread 0x7fb629d6e700 (LWP 28431)):
#0  0x00007fb646c1df83 in poll () from /lib64/libc.so.6
#1  0x00007fb63f21d89d in g_main_context_poll (context=0x747cd90, block=1, dispatch=1, self=<value optimized out>) at gmain.c:3404
#2  g_main_context_iterate (context=0x747cd90, block=1, dispatch=1, self=<value optimized out>) at gmain.c:3086
#3  0x00007fb63f21ddcd in g_main_context_iteration (context=0x747cd90, may_block=1) at gmain.c:3154
#4  0x00007fb647594ed6 in QEventDispatcherGlib::processEvents (this=0x5338280, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#5  0x00007fb647569322 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007fb647569564 in QEventLoop::exec (this=0x7fb629d6ddc0, flags=...) at kernel/qeventloop.cpp:201
#7  0x00007fb64747f6a4 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:492
#8  0x00007fb64754af08 in QInotifyFileSystemWatcherEngine::run (this=0x74b3e40) at io/qfilesystemwatcher_inotify.cpp:248
#9  0x00007fb647481ef5 in QThreadPrivate::start (arg=0x74b3e40) at thread/qthread_unix.cpp:320
#10 0x00007fb644a93e1c in start_thread () from /lib64/libpthread.so.0
#11 0x00007fb646c286fd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 2 (Thread 0x7fb6281bc700 (LWP 28436)):
#0  pthread_cond_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fb62827c6e0 in LoopRequest (data=0x785cae0) at playlist/thread.c:539
#2  Thread (data=0x785cae0) at playlist/thread.c:586
#3  0x00007fb644a93e1c in start_thread () from /lib64/libpthread.so.0
#4  0x00007fb646c286fd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 1 (Thread 0x7fb64986c780 (LWP 22195)):
[KCrash Handler]
#6  __strcmp_sse42 () at ../sysdeps/x86_64/multiarch/strcmp.S:260
#7  0x00007fb646c26756 in tfind () from /lib64/libc.so.6
#8  0x00007fb6282daf81 in Lookup (obj=<value optimized out>, psz_name=0x7fb628537a00 "vmem-chroma") at misc/variables.c:188
#9  0x00007fb6282dbc91 in var_SetChecked (p_this=<value optimized out>, psz_name=0x7fb628537a00 "vmem-chroma", expected_type=<value optimized out>, val=...) at misc/variables.c:756
#10 0x00007fb628533327 in var_SetString (mp=<value optimized out>, chroma=<value optimized out>, width=320, height=240, pitch=1280) at ../include/vlc_variables.h:261
#11 libvlc_video_set_format (mp=<value optimized out>, chroma=<value optimized out>, width=320, height=240, pitch=1280) at control/media_player.c:797
#12 0x00007fb62876e4b2 in Phonon::VLC::VideoWidget::videoWidgetSizeChanged (this=0x7fb6240064e0, width=320, height=240) at /var/tmp/portage/media-libs/phonon-vlc-9999/work/phonon-vlc-9999/vlc/videowidget.cpp:364
#13 0x00007fb62874acb2 in Phonon::VLC::VideoWidget::qt_metacall (this=0x7fb6240064e0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fb5ec00a800) at /var/tmp/portage/media-libs/phonon-vlc-9999/work/phonon-vlc-9999_build/vlc/moc_videowidget.cpp:95
#14 0x00007fb64757e13a in QObject::event (this=0x7fb6240064e0, e=<value optimized out>) at kernel/qobject.cpp:1217
#15 0x00007fb647ab6edd in QWidget::event (this=0x7fb6240064e0, event=0x7fb5ec005f00) at kernel/qwidget.cpp:8718
#16 0x00007fb647a65c54 in QApplicationPrivate::notify_helper (this=0xfb3a50, receiver=0x7fb6240064e0, e=0x7fb5ec005f00) at kernel/qapplication.cpp:4462
#17 0x00007fb647a6a7da in QApplication::notify (this=<value optimized out>, receiver=0x7fb6240064e0, e=0x7fb5ec005f00) at kernel/qapplication.cpp:4341
#18 0x00007fb64929bc16 in KApplication::notify (this=0x7fff63b287a0, receiver=0x7fb6240064e0, event=0x7fb5ec005f00) at /var/tmp/portage/kde-base/kdelibs-4.6.9999/work/kdelibs-4.6.9999/kdeui/kernel/kapplication.cpp:311
#19 0x00007fb647569f5b in QCoreApplication::notifyInternal (this=0x7fff63b287a0, receiver=0x7fb6240064e0, event=0x7fb5ec005f00) at kernel/qcoreapplication.cpp:731
#20 0x00007fb64756d714 in sendEvent (receiver=0x0, event_type=0, data=0xd23c30) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#21 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0xd23c30) at kernel/qcoreapplication.cpp:1372
#22 0x00007fb647594ce3 in sendPostedEvents (s=0xfb6290) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#23 postEventSourceDispatch (s=0xfb6290) at kernel/qeventdispatcher_glib.cpp:277
#24 0x00007fb63f21d34e in g_main_dispatch (context=0xfb61b0) at gmain.c:2440
#25 g_main_context_dispatch (context=0xfb61b0) at gmain.c:3013
#26 0x00007fb63f21db38 in g_main_context_iterate (context=0xfb61b0, block=1, dispatch=1, self=<value optimized out>) at gmain.c:3091
#27 0x00007fb63f21ddcd in g_main_context_iteration (context=0xfb61b0, may_block=1) at gmain.c:3154
#28 0x00007fb647594e7f in QEventDispatcherGlib::processEvents (this=0xd23830, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#29 0x00007fb647b0b04e in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#30 0x00007fb647569322 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#31 0x00007fb647569564 in QEventLoop::exec (this=0x7fff63b270c0, flags=...) at kernel/qeventloop.cpp:201
#32 0x00007fb647efeade in QDialog::exec (this=0x7fff63b27160) at dialogs/qdialog.cpp:552
#33 0x00007fb643a8b82c in KFileDialogPrivate::getSaveUrl (dir=<value optimized out>, filter=..., parent=0x146da30, caption=..., options=<value optimized out>, selectedFilter=0x0) at /var/tmp/portage/kde-base/kdelibs-4.6.9999/work/kdelibs-4.6.9999/kio/kfile/kfiledialog.cpp:841
#34 0x00007fb643a8bc02 in KFileDialog::getSaveUrl (dir=<value optimized out>, filter=<value optimized out>, parent=<value optimized out>, caption=<value optimized out>) at /var/tmp/portage/kde-base/kdelibs-4.6.9999/work/kdelibs-4.6.9999/kio/kfile/kfiledialog.cpp:813
#35 0x00007fb63fe4f354 in MessageViewer::Util::saveContents (parent=0x146da30, contents=...) at /var/tmp/portage/kde-base/kdepim-common-libs-4.6.9999/work/kdepim-common-libs-4.6.9999/messageviewer/util.cpp:185
#36 0x00007fb63fe6638a in MessageViewer::ViewerPrivate::openAttachment (this=0x14a81a0, node=0x6b9e2b0, name=<value optimized out>) at /var/tmp/portage/kde-base/kdepim-common-libs-4.6.9999/work/kdepim-common-libs-4.6.9999/messageviewer/viewer_p.cpp:340
#37 0x00007fb63fe457f0 in (anonymous namespace)::AttachmentURLHandler::handleClick (this=<value optimized out>, url=<value optimized out>, w=0x14a81a0) at /var/tmp/portage/kde-base/kdepim-common-libs-4.6.9999/work/kdepim-common-libs-4.6.9999/messageviewer/urlhandlermanager.cpp:779
#38 0x00007fb63fe48985 in MessageViewer::URLHandlerManager::handleClick (this=0x4605430, url=..., w=0x14a81a0) at /var/tmp/portage/kde-base/kdepim-common-libs-4.6.9999/work/kdepim-common-libs-4.6.9999/messageviewer/urlhandlermanager.cpp:369
#39 0x00007fb63fe5930c in MessageViewer::ViewerPrivate::slotUrlOpen (this=0x14a81a0, url=<value optimized out>) at /var/tmp/portage/kde-base/kdepim-common-libs-4.6.9999/work/kdepim-common-libs-4.6.9999/messageviewer/viewer_p.cpp:1764
#40 0x00007fb63fe6a541 in MessageViewer::ViewerPrivate::qt_metacall (this=0x14a81a0, _c=QMetaObject::InvokeMetaMethod, _id=19, _a=0x72287f0) at /var/tmp/portage/kde-base/kdepim-common-libs-4.6.9999/work/kdepim-common-libs-4.6.9999_build/messageviewer/viewer_p.moc:212
#41 0x00007fb64757e13a in QObject::event (this=0x14a81a0, e=<value optimized out>) at kernel/qobject.cpp:1217
#42 0x00007fb647a65c54 in QApplicationPrivate::notify_helper (this=0xfb3a50, receiver=0x14a81a0, e=0x748a7d0) at kernel/qapplication.cpp:4462
#43 0x00007fb647a6a7da in QApplication::notify (this=<value optimized out>, receiver=0x14a81a0, e=0x748a7d0) at kernel/qapplication.cpp:4341
#44 0x00007fb64929bc16 in KApplication::notify (this=0x7fff63b287a0, receiver=0x14a81a0, event=0x748a7d0) at /var/tmp/portage/kde-base/kdelibs-4.6.9999/work/kdelibs-4.6.9999/kdeui/kernel/kapplication.cpp:311
#45 0x00007fb647569f5b in QCoreApplication::notifyInternal (this=0x7fff63b287a0, receiver=0x14a81a0, event=0x748a7d0) at kernel/qcoreapplication.cpp:731
#46 0x00007fb64756d714 in sendEvent (receiver=0x0, event_type=0, data=0xd23c30) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#47 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0xd23c30) at kernel/qcoreapplication.cpp:1372
#48 0x00007fb647594ce3 in sendPostedEvents (s=0xfb6290) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#49 postEventSourceDispatch (s=0xfb6290) at kernel/qeventdispatcher_glib.cpp:277
#50 0x00007fb63f21d34e in g_main_dispatch (context=0xfb61b0) at gmain.c:2440
#51 g_main_context_dispatch (context=0xfb61b0) at gmain.c:3013
#52 0x00007fb63f21db38 in g_main_context_iterate (context=0xfb61b0, block=1, dispatch=1, self=<value optimized out>) at gmain.c:3091
#53 0x00007fb63f21ddcd in g_main_context_iteration (context=0xfb61b0, may_block=1) at gmain.c:3154
#54 0x00007fb647594e7f in QEventDispatcherGlib::processEvents (this=0xd23830, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#55 0x00007fb647b0b04e in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#56 0x00007fb647569322 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#57 0x00007fb647569564 in QEventLoop::exec (this=0x7fff63b28660, flags=...) at kernel/qeventloop.cpp:201
#58 0x00007fb64756d9cb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1008
#59 0x00000000004033ae in main (argc=<value optimized out>, argv=<value optimized out>) at /var/tmp/portage/kde-base/kmail-4.6.9999/work/kmail-4.6.9999/kmail/main.cpp:145

Reported using DrKonqi
Comment 1 Marc Schiffbauer 2011-05-02 14:40:53 UTC
A little correction: 

The crash actually happened while clicking a custom shortcut in the save-dialog. And it is reproducable.
Comment 2 Harald Sitter 2011-05-02 15:08:01 UTC
What version of vlc did that happen with?

FWIW the code there should not be used unless something does seriously twisted stuff to the videowidget... that said we probably should remove the code as it currently cannot work properly.
Comment 3 Marc Schiffbauer 2011-05-02 18:43:40 UTC
@Harald: With git checkout from 09:59:59 26.04.2011

I could reproduce this one time only... in another try it worked to save the file to the folder.
Comment 4 Harald Sitter 2011-05-02 21:32:39 UTC
Ok. Closing as invalid then... VLC from git master is not really supported.

Also it seems like a libvlc internal crash anyway *shrug*, probably intermediate slip-up.