[Bug 198493] knotes causes kontact segfault at tools/qbytearray.h:320

David Rankin drankinatty at suddenlinkmail.com
Wed Jul 1 06:18:34 BST 2009


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





--- Comment #1 from David Rankin <drankinatty suddenlinkmail com>  2009-07-01 07:11:20 ---
Created an attachment (id=34956)
 --> (http://bugs.kde.org/attachment.cgi?id=34956)
screenshot showing desktop after gdb start of knotes -- standalone

This time I just used gbd knotes and followed the same procedure to produce the
crash in knotes without kontact also running. This screenshot shows what the
desktop looked like before I did anything to cause the crash. Then I simply
selected the "Sydney" note, right-clicked and deleted it, moved focus to the
Sync note and -- Segfault. Here is the backtrace:

00:04 alchemy:~> gdb knotes                                                     
GNU gdb 6.8                                                                     
Copyright (C) 2008 Free Software Foundation, Inc.                               
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>   
This is free software: you are free to change and redistribute it.              
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"      
and "show warranty" for details.                                                
This GDB was configured as "x86_64-suse-linux"...                               
(gdb) run --nofork                                                              
Starting program: /usr/bin/knotes --nofork                                      
[Thread debugging using libthread_db enabled]                                   
[New Thread 0x7f28b5bb2710 (LWP 25875)]                                         
[New Thread 0x414ac950 (LWP 25879)]                                             
Enchant dict for "en_US" 0x89fc80                                               
Enchant dict for "en_US" 0x89fc80                                               
Enchant dict for "en_US" 0x89fc80                                               
Enchant dict for "en_US" 0x89fc80                                               
Enchant dict for "en_US" 0x89fc80                                               
Enchant dict for "en_US" 0x89fc80                                               
[Thread 0x414ac950 (LWP 25879) exited]                                          
X Error: BadWindow (invalid Window parameter) 3                                 
  Major opcode: 20 (X_GetProperty)                                              
  Resource id:  0x5000a60                                                       
X Error: BadWindow (invalid Window parameter) 3                                 
  Major opcode: 20 (X_GetProperty)                                              
  Resource id:  0x5000a60                                                       
X Error: BadWindow (invalid Window parameter) 3                                 
  Major opcode: 20 (X_GetProperty)                                              
  Resource id:  0x50000ba                                                       
X Error: BadWindow (invalid Window parameter) 3                                 
  Major opcode: 20 (X_GetProperty)                                              
  Resource id:  0x50000ba                                                       

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f28b5bb2710 (LWP 25875)]    
0x00007f28b57235d4 in KCal::IncidenceBase::uid (this=0xbd0300) at
/usr/include/QtCore/qstring.h:711
711     inline QString::QString(const QString &other) : d(other.d)              
(gdb) bt full                                                                   
#0  0x00007f28b57235d4 in KCal::IncidenceBase::uid (this=0xbd0300) at
/usr/include/QtCore/qstring.h:711
No locals.                                                                      
#1  0x000000000043bd9b in KNote::slotKill (this=0xc0bc10, force=<value
optimized out>)                 
    at /usr/src/debug/kdepim-4.2.90/knotes/knote.cpp:148                        
        configFile = {static null = {<No data fields>}, static shared_null =
{ref = {_q_value = 12976}, 
    alloc = 0, size = 0, data = 0x65439a, clean = 0, simpletext = 0,
righttoleft = 0, asciiCache = 0,   
    capacity = 0, reserved = 0, array = {0}}, static shared_empty = {ref =
{_q_value = 80}, alloc = 0,  
    size = 0, data = 0x7f28b150587a, clean = 0, simpletext = 0, righttoleft =
0, asciiCache = 0,        
    capacity = 0, reserved = 0, array = {0}}, d = 0xc0ed70, static
codecForCStrings = 0x0}              
#2  0x000000000043c4df in KNote::qt_metacall (this=0xc0bc10,
_c=QMetaObject::InvokeMetaMethod, _id=99,  
    _a=0xde7c90) at /usr/src/debug/kdepim-4.2.90/build/knotes/knote.moc:121     
No locals.                                                                      
#3  0x00007f28b1221ef8 in QObject::event (this=0xc0bc10, e=0xb65ce0) at
kernel/qobject.cpp:1118         
        mce = (QMetaCallEvent *) 0x7fffbdc0f8a0                                 
        currentSender = {sender = 0xc108d0, signal = 5, ref = 1}                
        previousSender = (QObjectPrivate::Sender * const) 0x0                   
#4  0x00007f28b1dd929d in QWidget::event (this=0xc0bc10, event=0xb65ce0) at
kernel/qwidget.cpp:7918     
        d = <value optimized out>                                               
#5  0x00007f28b215b4eb in QFrame::event (this=0xc0bc10, e=0xb65ce0) at
widgets/qframe.cpp:559           
        result = <value optimized out>                                          
#6  0x00007f28b1d8870d in QApplicationPrivate::notify_helper (this=0x690250,
receiver=0xc0bc10, e=0xb65ce0)
    at kernel/qapplication.cpp:4057                                             
        consumed = <value optimized out>                                        
#7  0x00007f28b1d9099a in QApplication::notify (this=0x7fffbdc10530,
receiver=0xc0bc10, e=0xb65ce0)        
    at kernel/qapplication.cpp:4022                                             
        d = (QApplicationPrivate * const) 0x7fffbdc0f8a0                        
        res = true                                                              
#8  0x00007f28b2c2f24b in KApplication::notify (this=0x7fffbdc10530,
receiver=0xc0bc10, event=0xb65ce0)    
    at /usr/src/debug/kdelibs-4.2.90/kdeui/kernel/kapplication.cpp:302          
No locals.                                                                      
#9  0x00007f28b1211d1c in QCoreApplication::notifyInternal
(this=0x7fffbdc10530, receiver=0xc0bc10,        
    event=0xb65ce0) at kernel/qcoreapplication.cpp:610                          
        result = false                                                          
        cbdata = {0xc0bc10, 0xb65ce0, 0x7fffbdc1019f}                           
        threadData = (QThreadData *) 0x65bcb0                                   
        returnValue = <value optimized out>                                     
#10 0x00007f28b12129aa in QCoreApplicationPrivate::sendPostedEvents
(receiver=0x0, event_type=0,           
    data=0x65bcb0) at kernel/qcoreapplication.h:213                             
        e = (class QEvent *) 0xb65ce0                                           
        r = (class QObject *) 0xc0bc10                                          
        locker = {{mtx = 0x65bcf0, val = 6667504}}                              
        startOffset = 0                                                         
        i = (int &) @0x65bce4: 0                                                
#11 0x00007f28b123b8c3 in postEventSourceDispatch (s=<value optimized out>) at
kernel/qcoreapplication.h:218
No locals.                                                                      
#12 0x00007f28abb7e95a in g_main_context_dispatch () from
/usr/lib64/libglib-2.0.so.0                       
No symbol table info available.                                                 
#13 0x00007f28abb82060 in ?? () from /usr/lib64/libglib-2.0.so.0
No symbol table info available.
#14 0x00007f28abb821fc in g_main_context_iteration () from
/usr/lib64/libglib-2.0.so.0
No symbol table info available.
#15 0x00007f28b123b54f in QEventDispatcherGlib::processEvents (this=0x65b8d0,
flags=<value optimized out>)
---Type <return> to continue, or q <return> to quit---
    at kernel/qeventdispatcher_glib.cpp:324
        d = (QEventDispatcherGlibPrivate * const) 0x6903b0
        canWait = true
        result = <value optimized out>
#16 0x00007f28b1e1ff3f in QGuiEventDispatcherGlib::processEvents
(this=0x7fffbdc0f8a0,
    flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
        d = (QGuiEventDispatcherGlibPrivate * const) 0x6903b0
        returnValue = 99
#17 0x00007f28b12105a2 in QEventLoop::processEvents (this=<value optimized
out>, flags={i = -1111423904})
    at kernel/qeventloop.cpp:149
        d = (QEventLoopPrivate * const) 0x7d1bf0
#18 0x00007f28b121096d in QEventLoop::exec (this=0x7fffbdc104a0, flags={i =
-1111423824})
    at kernel/qeventloop.cpp:200
        d = (QEventLoopPrivate * const) 0x7d1bf0
#19 0x00007f28b1212c74 in QCoreApplication::exec () at
kernel/qcoreapplication.cpp:888
        threadData = (QThreadData *) 0x65bcb0
        eventLoop = {<QObject> = {_vptr.QObject = 0x7f28b1503fb0, static
staticMetaObject = {d = {
        superdata = 0x0, stringdata = 0x7f28b12a8b20 "QObject", data =
0x7f28b12a8bc0,
        extradata = 0x7f28b14fd040}}, d_ptr = 0x7d1bf0, static
staticQtMetaObject = {d = {superdata = 0x0,
        stringdata = 0x7f28b12b2400 "Qt", data = 0x7f28b12b52e0, extradata =
0x0}}},
  static staticMetaObject = {d = {superdata = 0x653f60, stringdata =
0x7f28b12ba100 "QEventLoop",
      data = 0x7f28b12ba120, extradata = 0x0}}}
        returnCode = -1
#20 0x000000000041b1a9 in main (argc=2, argv=0x7fffbdc10768)
    at /usr/src/debug/kdepim-4.2.90/knotes/main.cpp:69
        version = {static null = {<No data fields>}, static shared_null = {ref
= {_q_value = 12976},
    alloc = 0, size = 0, data = 0x65439a, clean = 0, simpletext = 0,
righttoleft = 0, asciiCache = 0,
    capacity = 0, reserved = 0, array = {0}}, static shared_empty = {ref =
{_q_value = 80}, alloc = 0,
    size = 0, data = 0x7f28b150587a, clean = 0, simpletext = 0, righttoleft =
0, asciiCache = 0,
    capacity = 0, reserved = 0, array = {0}}, d = 0x65f570, static
codecForCStrings = 0x0}
        aboutData = {d = 0x65f860}
        app = {<KPIM::PimApplication> = {<KUniqueApplication> = {<KApplication>
= {<QApplication> = {<QCoreApplication> = {<QObject> = {_vptr.QObject =
0x444ed0, static staticMetaObject = {d = {superdata = 0x0,
                  stringdata = 0x7f28b12a8b20 "QObject", data = 0x7f28b12a8bc0,
                  extradata = 0x7f28b14fd040}}, d_ptr = 0x690250, static
staticQtMetaObject = {d = {
                  superdata = 0x0, stringdata = 0x7f28b12b2400 "Qt", data =
0x7f28b12b52e0,
                  extradata = 0x0}}}, static staticMetaObject = {d = {superdata
= 0x653f60,
                stringdata = 0x7f28b12ba1a0 "QCoreApplication", data =
0x7f28b12ba240, extradata = 0x0}},
            static self = 0x7fffbdc10530}, static staticMetaObject = {d =
{superdata = 0x7f28b1504040,
              stringdata = 0x7f28b23c1ba0 "QApplication", data =
0x7f28b23c1da0, extradata = 0x0}}},
        static staticMetaObject = {d = {superdata = 0x7f28b2797fa0,
            stringdata = 0x7f28b2d90da0 "KApplication", data = 0x7f28b2d90f40,
extradata = 0x0}},
        static loadedByKdeinit = false, static KApp = 0x7fffbdc10530, d =
0x6eecf0},
      static staticMetaObject = {d = {superdata = 0x7f28b300bb40,
          stringdata = 0x7f28b2d916c0 "KUniqueApplication", data =
0x7f28b2d917c0, extradata = 0x0}},
      d = 0x7cf4c0}, <No data fields>}, mMainWindow = 0x7de880,
mCmdLineArguments = 0x676280}
(gdb)

--- Comment #2 from David Rankin <drankinatty suddenlinkmail com>  2009-07-01 07:18:05 ---
Created an attachment (id=34957)
 --> (http://bugs.kde.org/attachment.cgi?id=34957)
screenshot showing desktop after gdb start of knotes -- standalone

This time I just used gbd knotes and followed the same procedure to produce the
crash in knotes without kontact also running. This screenshot shows what the
desktop looked like before I did anything to cause the crash. Then I simply
selected the "Sydney" note, right-clicked and deleted it, moved focus to the
Sync note and -- Segfault. Here is the backtrace:

00:04 alchemy:~> gdb knotes                                                     
GNU gdb 6.8                                                                     
Copyright (C) 2008 Free Software Foundation, Inc.                               
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>   
This is free software: you are free to change and redistribute it.              
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"      
and "show warranty" for details.                                                
This GDB was configured as "x86_64-suse-linux"...                               
(gdb) run --nofork                                                              
Starting program: /usr/bin/knotes --nofork                                      
[Thread debugging using libthread_db enabled]                                   
[New Thread 0x7f28b5bb2710 (LWP 25875)]                                         
[New Thread 0x414ac950 (LWP 25879)]                                             
Enchant dict for "en_US" 0x89fc80                                               
Enchant dict for "en_US" 0x89fc80                                               
Enchant dict for "en_US" 0x89fc80                                               
Enchant dict for "en_US" 0x89fc80                                               
Enchant dict for "en_US" 0x89fc80                                               
Enchant dict for "en_US" 0x89fc80                                               
[Thread 0x414ac950 (LWP 25879) exited]                                          
X Error: BadWindow (invalid Window parameter) 3                                 
  Major opcode: 20 (X_GetProperty)                                              
  Resource id:  0x5000a60                                                       
X Error: BadWindow (invalid Window parameter) 3                                 
  Major opcode: 20 (X_GetProperty)                                              
  Resource id:  0x5000a60                                                       
X Error: BadWindow (invalid Window parameter) 3                                 
  Major opcode: 20 (X_GetProperty)                                              
  Resource id:  0x50000ba                                                       
X Error: BadWindow (invalid Window parameter) 3                                 
  Major opcode: 20 (X_GetProperty)                                              
  Resource id:  0x50000ba                                                       

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f28b5bb2710 (LWP 25875)]    
0x00007f28b57235d4 in KCal::IncidenceBase::uid (this=0xbd0300) at
/usr/include/QtCore/qstring.h:711
711     inline QString::QString(const QString &other) : d(other.d)              
(gdb) bt full                                                                   
#0  0x00007f28b57235d4 in KCal::IncidenceBase::uid (this=0xbd0300) at
/usr/include/QtCore/qstring.h:711
No locals.                                                                      
#1  0x000000000043bd9b in KNote::slotKill (this=0xc0bc10, force=<value
optimized out>)                 
    at /usr/src/debug/kdepim-4.2.90/knotes/knote.cpp:148                        
        configFile = {static null = {<No data fields>}, static shared_null =
{ref = {_q_value = 12976}, 
    alloc = 0, size = 0, data = 0x65439a, clean = 0, simpletext = 0,
righttoleft = 0, asciiCache = 0,   
    capacity = 0, reserved = 0, array = {0}}, static shared_empty = {ref =
{_q_value = 80}, alloc = 0,  
    size = 0, data = 0x7f28b150587a, clean = 0, simpletext = 0, righttoleft =
0, asciiCache = 0,        
    capacity = 0, reserved = 0, array = {0}}, d = 0xc0ed70, static
codecForCStrings = 0x0}              
#2  0x000000000043c4df in KNote::qt_metacall (this=0xc0bc10,
_c=QMetaObject::InvokeMetaMethod, _id=99,  
    _a=0xde7c90) at /usr/src/debug/kdepim-4.2.90/build/knotes/knote.moc:121     
No locals.                                                                      
#3  0x00007f28b1221ef8 in QObject::event (this=0xc0bc10, e=0xb65ce0) at
kernel/qobject.cpp:1118         
        mce = (QMetaCallEvent *) 0x7fffbdc0f8a0                                 
        currentSender = {sender = 0xc108d0, signal = 5, ref = 1}                
        previousSender = (QObjectPrivate::Sender * const) 0x0                   
#4  0x00007f28b1dd929d in QWidget::event (this=0xc0bc10, event=0xb65ce0) at
kernel/qwidget.cpp:7918     
        d = <value optimized out>                                               
#5  0x00007f28b215b4eb in QFrame::event (this=0xc0bc10, e=0xb65ce0) at
widgets/qframe.cpp:559           
        result = <value optimized out>                                          
#6  0x00007f28b1d8870d in QApplicationPrivate::notify_helper (this=0x690250,
receiver=0xc0bc10, e=0xb65ce0)
    at kernel/qapplication.cpp:4057                                             
        consumed = <value optimized out>                                        
#7  0x00007f28b1d9099a in QApplication::notify (this=0x7fffbdc10530,
receiver=0xc0bc10, e=0xb65ce0)        
    at kernel/qapplication.cpp:4022                                             
        d = (QApplicationPrivate * const) 0x7fffbdc0f8a0                        
        res = true                                                              
#8  0x00007f28b2c2f24b in KApplication::notify (this=0x7fffbdc10530,
receiver=0xc0bc10, event=0xb65ce0)    
    at /usr/src/debug/kdelibs-4.2.90/kdeui/kernel/kapplication.cpp:302          
No locals.                                                                      
#9  0x00007f28b1211d1c in QCoreApplication::notifyInternal
(this=0x7fffbdc10530, receiver=0xc0bc10,        
    event=0xb65ce0) at kernel/qcoreapplication.cpp:610                          
        result = false                                                          
        cbdata = {0xc0bc10, 0xb65ce0, 0x7fffbdc1019f}                           
        threadData = (QThreadData *) 0x65bcb0                                   
        returnValue = <value optimized out>                                     
#10 0x00007f28b12129aa in QCoreApplicationPrivate::sendPostedEvents
(receiver=0x0, event_type=0,           
    data=0x65bcb0) at kernel/qcoreapplication.h:213                             
        e = (class QEvent *) 0xb65ce0                                           
        r = (class QObject *) 0xc0bc10                                          
        locker = {{mtx = 0x65bcf0, val = 6667504}}                              
        startOffset = 0                                                         
        i = (int &) @0x65bce4: 0                                                
#11 0x00007f28b123b8c3 in postEventSourceDispatch (s=<value optimized out>) at
kernel/qcoreapplication.h:218
No locals.                                                                      
#12 0x00007f28abb7e95a in g_main_context_dispatch () from
/usr/lib64/libglib-2.0.so.0                       
No symbol table info available.                                                 
#13 0x00007f28abb82060 in ?? () from /usr/lib64/libglib-2.0.so.0
No symbol table info available.
#14 0x00007f28abb821fc in g_main_context_iteration () from
/usr/lib64/libglib-2.0.so.0
No symbol table info available.
#15 0x00007f28b123b54f in QEventDispatcherGlib::processEvents (this=0x65b8d0,
flags=<value optimized out>)
---Type <return> to continue, or q <return> to quit---
    at kernel/qeventdispatcher_glib.cpp:324
        d = (QEventDispatcherGlibPrivate * const) 0x6903b0
        canWait = true
        result = <value optimized out>
#16 0x00007f28b1e1ff3f in QGuiEventDispatcherGlib::processEvents
(this=0x7fffbdc0f8a0,
    flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
        d = (QGuiEventDispatcherGlibPrivate * const) 0x6903b0
        returnValue = 99
#17 0x00007f28b12105a2 in QEventLoop::processEvents (this=<value optimized
out>, flags={i = -1111423904})
    at kernel/qeventloop.cpp:149
        d = (QEventLoopPrivate * const) 0x7d1bf0
#18 0x00007f28b121096d in QEventLoop::exec (this=0x7fffbdc104a0, flags={i =
-1111423824})
    at kernel/qeventloop.cpp:200
        d = (QEventLoopPrivate * const) 0x7d1bf0
#19 0x00007f28b1212c74 in QCoreApplication::exec () at
kernel/qcoreapplication.cpp:888
        threadData = (QThreadData *) 0x65bcb0
        eventLoop = {<QObject> = {_vptr.QObject = 0x7f28b1503fb0, static
staticMetaObject = {d = {
        superdata = 0x0, stringdata = 0x7f28b12a8b20 "QObject", data =
0x7f28b12a8bc0,
        extradata = 0x7f28b14fd040}}, d_ptr = 0x7d1bf0, static
staticQtMetaObject = {d = {superdata = 0x0,
        stringdata = 0x7f28b12b2400 "Qt", data = 0x7f28b12b52e0, extradata =
0x0}}},
  static staticMetaObject = {d = {superdata = 0x653f60, stringdata =
0x7f28b12ba100 "QEventLoop",
      data = 0x7f28b12ba120, extradata = 0x0}}}
        returnCode = -1
#20 0x000000000041b1a9 in main (argc=2, argv=0x7fffbdc10768)
    at /usr/src/debug/kdepim-4.2.90/knotes/main.cpp:69
        version = {static null = {<No data fields>}, static shared_null = {ref
= {_q_value = 12976},
    alloc = 0, size = 0, data = 0x65439a, clean = 0, simpletext = 0,
righttoleft = 0, asciiCache = 0,
    capacity = 0, reserved = 0, array = {0}}, static shared_empty = {ref =
{_q_value = 80}, alloc = 0,
    size = 0, data = 0x7f28b150587a, clean = 0, simpletext = 0, righttoleft =
0, asciiCache = 0,
    capacity = 0, reserved = 0, array = {0}}, d = 0x65f570, static
codecForCStrings = 0x0}
        aboutData = {d = 0x65f860}
        app = {<KPIM::PimApplication> = {<KUniqueApplication> = {<KApplication>
= {<QApplication> = {<QCoreApplication> = {<QObject> = {_vptr.QObject =
0x444ed0, static staticMetaObject = {d = {superdata = 0x0,
                  stringdata = 0x7f28b12a8b20 "QObject", data = 0x7f28b12a8bc0,
                  extradata = 0x7f28b14fd040}}, d_ptr = 0x690250, static
staticQtMetaObject = {d = {
                  superdata = 0x0, stringdata = 0x7f28b12b2400 "Qt", data =
0x7f28b12b52e0,
                  extradata = 0x0}}}, static staticMetaObject = {d = {superdata
= 0x653f60,
                stringdata = 0x7f28b12ba1a0 "QCoreApplication", data =
0x7f28b12ba240, extradata = 0x0}},
            static self = 0x7fffbdc10530}, static staticMetaObject = {d =
{superdata = 0x7f28b1504040,
              stringdata = 0x7f28b23c1ba0 "QApplication", data =
0x7f28b23c1da0, extradata = 0x0}}},
        static staticMetaObject = {d = {superdata = 0x7f28b2797fa0,
            stringdata = 0x7f28b2d90da0 "KApplication", data = 0x7f28b2d90f40,
extradata = 0x0}},
        static loadedByKdeinit = false, static KApp = 0x7fffbdc10530, d =
0x6eecf0},
      static staticMetaObject = {d = {superdata = 0x7f28b300bb40,
          stringdata = 0x7f28b2d916c0 "KUniqueApplication", data =
0x7f28b2d917c0, extradata = 0x0}},
      d = 0x7cf4c0}, <No data fields>}, mMainWindow = 0x7de880,
mCmdLineArguments = 0x676280}
(gdb)

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Kdepim-bugs mailing list