<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>328736</bug_id>
          
          <creation_ts>2013-12-12 21:46:13 +0000</creation_ts>
          <short_desc>akonadiconsole crashed in MessageViewer::MailWebView::showAccessKeys</short_desc>
          <delta_ts>2013-12-13 06:17:06 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>Frameworks and Libraries</classification>
          <product>Akonadi</product>
          <component>akonadiconsole</component>
          <version>4.11</version>
          <rep_platform>openSUSE</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>crash</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Christopher Yeleighton">giecrilj</reporter>
          <assigned_to name="kdepim bugs">pim-bugs-null</assigned_to>
          <cc>montel</cc>
          
          <cf_commitlink>http://commits.kde.org/kdepim/b24a0821e05d854d5046d4298ece6ae370d43226</cf_commitlink>
          <cf_versionfixedin>4.12</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1418178</commentid>
    <comment_count>0</comment_count>
    <who name="Christopher Yeleighton">giecrilj</who>
    <bug_when>2013-12-12 21:46:13 +0000</bug_when>
    <thetext>I pressed the Ctrl key to select another message in an IMAP folder.

Reproducible: Didn&apos;t try

Steps to Reproduce:
  1. Press the Ctrl key to select another message in an IMAP folder.

Actual Results:  
  1. NULL pointer dereference in MessageViewer::MailWebView::showAccessKeys:

-- Backtrace:
Application: Akonadi Console (akonadiconsole), signal: Segmentation fault
Using host libthread_db library &quot;/lib64/libthread_db.so.1&quot;.
81	T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
[Current thread is 1 (Thread 0x7fbda5f1d880 (LWP 6078))]

Thread 5 (Thread 0x7fbd85670700 (LWP 6084)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fbd9c6a8f76 in WTF::TCMalloc_PageHeap::scavengerThread (this=0x7fbd9d1715a0 &lt;WTF::pageheap_memory&gt;) at /usr/src/debug/webkit-qtwebkit-23/Source/WTF/wtf/FastMalloc.cpp:2571
#2  0x00007fbd9c6a8fa9 in WTF::TCMalloc_PageHeap::runScavengerThread (context=&lt;optimized out&gt;) at /usr/src/debug/webkit-qtwebkit-23/Source/WTF/wtf/FastMalloc.cpp:1767
#3  0x00007fbda052d0db in start_thread (arg=0x7fbd85670700) at pthread_create.c:309
#4  0x00007fbda0b2b90d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 4 (Thread 0x7fbd446d0700 (LWP 6085)):
#0  0x00007fbd9723dffa in g_mutex_get_impl (mutex=0x7fbd3c0009a0) at gthread-posix.c:124
#1  0x00007fbd9723e2b9 in g_mutex_unlock (mutex=mutex@entry=0x7fbd3c0009a0) at gthread-posix.c:232
#2  0x00007fbd971fdf1b in g_main_context_query (context=context@entry=0x7fbd3c0009a0, max_priority=2147483647, timeout=timeout@entry=0x7fbd446cfbec, fds=fds@entry=0x7fbd3c002bb0, n_fds=n_fds@entry=2) at gmain.c:3474
#3  0x00007fbd971fe572 in g_main_context_iterate (context=context@entry=0x7fbd3c0009a0, block=block@entry=1, dispatch=dispatch@entry=1, self=&lt;optimized out&gt;) at gmain.c:3695
#4  0x00007fbd971fe70c in g_main_context_iteration (context=0x7fbd3c0009a0, may_block=1) at gmain.c:3774
#5  0x00007fbda14bfd76 in QEventDispatcherGlib::processEvents (this=0x7fbd3c0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:427
#6  0x00007fbda1491d0f in QEventLoop::processEvents (this=this@entry=0x7fbd446cfd20, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007fbda1492005 in QEventLoop::exec (this=this@entry=0x7fbd446cfd20, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007fbda1390fef in QThread::exec (this=this@entry=0x14ed350) at thread/qthread.cpp:536
#9  0x00007fbda1473513 in QInotifyFileSystemWatcherEngine::run (this=0x14ed350) at io/qfilesystemwatcher_inotify.cpp:256
#10 0x00007fbda139368f in QThreadPrivate::start (arg=0x14ed350) at thread/qthread_unix.cpp:338
#11 0x00007fbda052d0db in start_thread (arg=0x7fbd446d0700) at pthread_create.c:309
#12 0x00007fbda0b2b90d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 3 (Thread 0x7fbd43bf0700 (LWP 6087)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fbd9c41b2cd in JSC::BlockAllocator::blockFreeingThreadMain (this=0x7fbd84dd9398) at /usr/src/debug/webkit-qtwebkit-23/Source/JavaScriptCore/heap/BlockAllocator.cpp:128
#2  0x00007fbd9c6d0ad6 in WTF::wtfThreadEntryPoint (param=0x1826ff0) at /usr/src/debug/webkit-qtwebkit-23/Source/WTF/wtf/ThreadingPthreads.cpp:196
#3  0x00007fbda052d0db in start_thread (arg=0x7fbd43bf0700) at pthread_create.c:309
#4  0x00007fbda0b2b90d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 2 (Thread 0x7fbd41f2e700 (LWP 6092)):
#0  __libc_disable_asynccancel () at ../nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S:98
#1  0x00007fbda0b1e9a9 in read () at ../sysdeps/unix/syscall-template.S:81
#2  0x00007fbd9723d5c0 in read (__nbytes=16, __buf=0x7fbd41f2db60, __fd=&lt;optimized out&gt;) at /usr/include/bits/unistd.h:44
#3  g_wakeup_acknowledge (wakeup=0x7fbd3c001fb0) at gwakeup.c:212
#4  0x00007fbd971fe12c in g_main_context_check (context=context@entry=0x7fbd380009e0, max_priority=2147483647, fds=fds@entry=0x7fbd380027f0, n_fds=n_fds@entry=1) at gmain.c:3514
#5  0x00007fbd971fe59b in g_main_context_iterate (context=context@entry=0x7fbd380009e0, block=block@entry=1, dispatch=dispatch@entry=1, self=&lt;optimized out&gt;) at gmain.c:3710
#6  0x00007fbd971fe70c in g_main_context_iteration (context=0x7fbd380009e0, may_block=1) at gmain.c:3774
#7  0x00007fbda14bfd76 in QEventDispatcherGlib::processEvents (this=0x7fbd38000900, flags=...) at kernel/qeventdispatcher_glib.cpp:427
#8  0x00007fbda1491d0f in QEventLoop::processEvents (this=this@entry=0x7fbd41f2dd60, flags=...) at kernel/qeventloop.cpp:149
#9  0x00007fbda1492005 in QEventLoop::exec (this=this@entry=0x7fbd41f2dd60, flags=...) at kernel/qeventloop.cpp:204
#10 0x00007fbda1390fef in QThread::exec (this=&lt;optimized out&gt;) at thread/qthread.cpp:536
#11 0x00007fbda139368f in QThreadPrivate::start (arg=0x156aee0) at thread/qthread_unix.cpp:338
#12 0x00007fbda052d0db in start_thread (arg=0x7fbd41f2e700) at pthread_create.c:309
#13 0x00007fbda0b2b90d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7fbda5f1d880 (LWP 6078)):
[KCrash Handler]
#6  QList (l=&lt;error reading variable: Cannot access memory at address 0x10&gt;, this=this@entry=0x7fffcbb3fa80) at /usr/include/QtCore/qlist.h:122
#7  KActionCollection::actions (this=0x0) at /usr/src/debug/kdelibs-4.11.3/kdeui/actions/kactioncollection.cpp:188
#8  0x00007fbda49c2d12 in MessageViewer::MailWebView::showAccessKeys (this=this@entry=0x1650a30) at /usr/src/debug/kdepim-4.11.3/messageviewer/viewer/mailwebview_webkit.cpp:511
#9  0x00007fbda49c4a84 in MessageViewer::MailWebView::keyReleaseEvent (this=0x1650a30, e=0x7fffcbb40180) at /usr/src/debug/kdepim-4.11.3/messageviewer/viewer/mailwebview_webkit.cpp:422
#10 0x00007fbda216f9e5 in QWidget::event (this=0x1650a30, event=0x7fffcbb40180) at kernel/qwidget.cpp:8459
#11 0x00007fbd9b245688 in QWebView::event () from /usr/lib64/libQtWebKit.so.4
#12 0x00007fbda49c3f73 in MessageViewer::MailWebView::event (this=0x1650a30, event=0x7fffcbb40180) at /usr/src/debug/kdepim-4.11.3/messageviewer/viewer/mailwebview_webkit.cpp:162
#13 0x00007fbda21208ac in QApplicationPrivate::notify_helper (this=this@entry=0x12a3510, receiver=receiver@entry=0x1650a30, e=e@entry=0x7fffcbb40180) at kernel/qapplication.cpp:4562
#14 0x00007fbda21280c1 in QApplication::notify (this=this@entry=0x7fffcbb40d30, receiver=receiver@entry=0x1650a30, e=e@entry=0x7fffcbb40180) at kernel/qapplication.cpp:4003
#15 0x00007fbda2e3718a in KApplication::notify (this=0x7fffcbb40d30, receiver=0x1650a30, event=0x7fffcbb40180) at /usr/src/debug/kdelibs-4.11.3/kdeui/kernel/kapplication.cpp:311
#16 0x00007fbda14930ad in QCoreApplication::notifyInternal (this=0x7fffcbb40d30, receiver=receiver@entry=0x1650a30, event=event@entry=0x7fffcbb40180) at kernel/qcoreapplication.cpp:949
#17 0x00007fbda211f246 in sendSpontaneousEvent (event=event@entry=0x7fffcbb40180, receiver=receiver@entry=0x1650a30) at ../../src/corelib/kernel/qcoreapplication.h:234
#18 qt_sendSpontaneousEvent (receiver=receiver@entry=0x1650a30, event=event@entry=0x7fffcbb40180) at kernel/qapplication.cpp:5560
#19 0x00007fbda21bad79 in QKeyMapper::sendKeyEvent (keyWidget=keyWidget@entry=0x1650a30, grab=grab@entry=false, type=QEvent::KeyRelease, code=16777249, modifiers=..., text=..., autorepeat=autorepeat@entry=false, count=1, nativeScanCode=37, nativeVirtualKey=65507, nativeModifiers=8212) at kernel/qkeymapper_x11.cpp:1866
#20 0x00007fbda21bb119 in QKeyMapperPrivate::translateKeyEvent (this=0x12f8010, keyWidget=keyWidget@entry=0x1650a30, event=event@entry=0x7fffcbb40700, grab=grab@entry=false) at kernel/qkeymapper_x11.cpp:1836
#21 0x00007fbda2196d3f in QApplication::x11ProcessEvent (this=0x7fffcbb40d30, event=event@entry=0x7fffcbb40700) at kernel/qapplication_x11.cpp:3544
#22 0x00007fbda21bd882 in x11EventSourceDispatch (s=s@entry=0x1298f60, callback=0x0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#23 0x00007fbd971fe316 in g_main_dispatch (context=0x129cfe0) at gmain.c:3066
#24 g_main_context_dispatch (context=context@entry=0x129cfe0) at gmain.c:3642
#25 0x00007fbd971fe668 in g_main_context_iterate (context=context@entry=0x129cfe0, block=block@entry=1, dispatch=dispatch@entry=1, self=&lt;optimized out&gt;) at gmain.c:3713
#26 0x00007fbd971fe70c in g_main_context_iteration (context=0x129cfe0, may_block=1) at gmain.c:3774
#27 0x00007fbda14bfd55 in QEventDispatcherGlib::processEvents (this=0x124ca70, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#28 0x00007fbda21bd936 in QGuiEventDispatcherGlib::processEvents (this=&lt;optimized out&gt;, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#29 0x00007fbda1491d0f in QEventLoop::processEvents (this=this@entry=0x7fffcbb40ae0, flags=...) at kernel/qeventloop.cpp:149
#30 0x00007fbda1492005 in QEventLoop::exec (this=this@entry=0x7fffcbb40ae0, flags=...) at kernel/qeventloop.cpp:204
#31 0x00007fbda149713b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1221
#32 0x00007fbda211f06c in QApplication::exec () at kernel/qapplication.cpp:3823
#33 0x000000000041adca in main (argc=1, argv=&lt;optimized out&gt;) at /usr/src/debug/kdepim-4.11.3/akonadiconsole/main.cpp:62


Expected Results:  
   1. Select another message in an IMAP folder.

I have no idea why akonadiconsole reports unsupported version 0.99.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1418182</commentid>
    <comment_count>1</comment_count>
    <who name="Laurent Montel">montel</who>
    <bug_when>2013-12-12 22:24:52 +0000</bug_when>
    <thetext>Will fix it tomorrow.
Thanks for the report.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1418225</commentid>
    <comment_count>2</comment_count>
    <who name="Laurent Montel">montel</who>
    <bug_when>2013-12-13 06:16:20 +0000</bug_when>
    <thetext>Git commit b24a0821e05d854d5046d4298ece6ae370d43226 by Montel Laurent.
Committed on 13/12/2013 at 06:15.
Pushed by mlaurent into branch &apos;KDE/4.12&apos;.

Fix Bug 328736 - akonadiconsole crashed in MessageViewer::MailWebView::showAccessKeys

FIXED-IN: 4.12

M  +10   -8    messageviewer/viewer/mailwebview_webkit.cpp

http://commits.kde.org/kdepim/b24a0821e05d854d5046d4298ece6ae370d43226</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1418226</commentid>
    <comment_count>3</comment_count>
    <who name="Laurent Montel">montel</who>
    <bug_when>2013-12-13 06:17:06 +0000</bug_when>
    <thetext>I hope it will in 4.12 or it will be in 4.12.1 (depends about time tag)

Regards</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>