Bug 181944 - SIGSEGV after adding new task removing ealier person from participant list
Summary: SIGSEGV after adding new task removing ealier person from participant list
Status: RESOLVED FIXED
Alias: None
Product: korganizer
Classification: Applications
Component: general (show other bugs)
Version: 4.1
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 197866 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-01-26 01:41 UTC by SLX
Modified: 2009-06-26 03:27 UTC (History)
3 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 SLX 2009-01-26 01:41:20 UTC
Version:            (using KDE 4.1.3)
OS:                Linux
Installed from:    Ubuntu Packages

How to reproduce:
1. Choose "New task" from menu.
2. Select "Participant list" tab.
3. Add one or more new names.
4. Remove the first name on the list.
5. Click "Ok" or "Apply" button.

After that KOrganizer crashes with this backtrace:

Program: KOrganizer (korganizer), sygnał SIGSEGV
[Thread debugging using libthread_db enabled]
[New Thread 0x7f14d4a7f6f0 (LWP 9036)]
[KCrash handler]
#5  0x00007f14d450fc73 in QString::operator== () from /usr/lib/libQtCore.so.4
#6  0x00007f14d33be9cf in KCal::Person::operator== (this=0x1983810, 
    person=@0x1922b90) at /build/buildd/kdepimlibs-4.1.3/kcal/person.cpp:96
#7  0x00007f14d33618b9 in KCal::Attendee::operator== (this=0x1a42110, 
    attendee=@0x5) at /build/buildd/kdepimlibs-4.1.3/kcal/attendee.cpp:90
#8  0x00007f14d3d70a0f in KOAttendeeEditor::cancelAttendeeIncidence (
    this=0x1a30860, incidence=<value optimized out>)
    at /build/buildd/kdepim-4.1.3/korganizer/koattendeeeditor.cpp:407
#9  0x00007f14d3ce5143 in KOIncidenceEditor::cancelRemovedAttendees (
    this=0x18657a0, incidence=0x19b03f0)
    at /build/buildd/kdepim-4.1.3/korganizer/koincidenceeditor.cpp:140
#10 0x00007f14d3cea874 in KOTodoEditor::writeTodo (this=0x18657a0, 
    todo=0x19b03f0)
    at /build/buildd/kdepim-4.1.3/korganizer/kotodoeditor.cpp:334
#11 0x00007f14d3cec52f in KOTodoEditor::processInput (this=0x18657a0)
    at /build/buildd/kdepim-4.1.3/korganizer/kotodoeditor.cpp:250
#12 0x00007f14d3ce504d in KOIncidenceEditor::qt_metacall (this=0x18657a0, 
    _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, 
    _a=0x7fffdcabe760)
    at /build/buildd/kdepim-4.1.3/obj-x86_64-linux-gnu/korganizer/koincidenceeditor.moc:125
#13 0x00007f14d3ceb7d5 in KOTodoEditor::qt_metacall (this=0x1a42110, 
    _c=QMetaObject::QueryPropertyScriptable, _id=26626496, _a=0x192dbd0)
    at /build/buildd/kdepim-4.1.3/obj-x86_64-linux-gnu/korganizer/kotodoeditor.moc:63
#14 0x00007f14d45ce134 in QMetaObject::activate ()
   from /usr/lib/libQtCore.so.4
#15 0x00007f14d2c18795 in KDialog::slotButtonClicked (this=0x18657a0, 
    button=8) at /build/buildd/kde4libs-4.1.3/kdeui/dialogs/kdialog.cpp:848
#16 0x00007f14d2c18a3d in KDialog::qt_metacall (this=0x18657a0, 
    _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, 
    _a=0x7fffdcabe9b0)
    at /build/buildd/kde4libs-4.1.3/obj-x86_64-linux-gnu/kdeui/kdialog.moc:181
#17 0x00007f14d2cd49f6 in KPageDialog::qt_metacall (this=0x1a42110, 
    _c=QMetaObject::QueryPropertyScriptable, _id=26626496, _a=0x192dbd0)
    at /build/buildd/kde4libs-4.1.3/obj-x86_64-linux-gnu/kdeui/kpagedialog.moc:63
#18 0x00007f14d3ce4e25 in KOIncidenceEditor::qt_metacall (this=0x1a42110, 
    _c=QMetaObject::QueryPropertyScriptable, _id=26626496, _a=0x192dbd0)
    at /build/buildd/kdepim-4.1.3/obj-x86_64-linux-gnu/korganizer/koincidenceeditor.moc:104
#19 0x00007f14d3ceb7d5 in KOTodoEditor::qt_metacall (this=0x1a42110, 
    _c=QMetaObject::QueryPropertyScriptable, _id=26626496, _a=0x192dbd0)
    at /build/buildd/kdepim-4.1.3/obj-x86_64-linux-gnu/korganizer/kotodoeditor.moc:63
#20 0x00007f14d45ce134 in QMetaObject::activate ()
   from /usr/lib/libQtCore.so.4
#21 0x00007f14d45d1e0e in QSignalMapper::mapped ()
   from /usr/lib/libQtCore.so.4
#22 0x00007f14d45d26b0 in QSignalMapper::map () from /usr/lib/libQtCore.so.4
#23 0x00007f14d45d32a0 in QSignalMapper::qt_metacall ()
   from /usr/lib/libQtCore.so.4
#24 0x00007f14d45ce134 in QMetaObject::activate ()
   from /usr/lib/libQtCore.so.4
#25 0x00007f14d2481787 in QAbstractButton::clicked ()
   from /usr/lib/libQtGui.so.4
#26 0x00007f14d22058db in ?? () from /usr/lib/libQtGui.so.4
#27 0x00007f14d22074a2 in ?? () from /usr/lib/libQtGui.so.4
#28 0x00007f14d22076f5 in QAbstractButton::mouseReleaseEvent ()
   from /usr/lib/libQtGui.so.4
#29 0x00007f14d1f4d329 in QWidget::event () from /usr/lib/libQtGui.so.4
#30 0x00007f14d1efac3d in QApplicationPrivate::notify_helper ()
   from /usr/lib/libQtGui.so.4
#31 0x00007f14d1f0322a in QApplication::notify () from /usr/lib/libQtGui.so.4
#32 0x00007f14d2ca8fcb in KApplication::notify (this=0x7fffdcac00e0, 
    receiver=0x1871e10, event=0x7fffdcabf2f0)
    at /build/buildd/kde4libs-4.1.3/kdeui/kernel/kapplication.cpp:311
#33 0x00007f14d45b9d61 in QCoreApplication::notifyInternal ()
   from /usr/lib/libQtCore.so.4
#34 0x00007f14d1f025c8 in QApplicationPrivate::sendMouseEvent ()
   from /usr/lib/libQtGui.so.4
#35 0x00007f14d1f66be9 in ?? () from /usr/lib/libQtGui.so.4
#36 0x00007f14d1f65607 in QApplication::x11ProcessEvent ()
   from /usr/lib/libQtGui.so.4
#37 0x00007f14d1f8d2c4 in ?? () from /usr/lib/libQtGui.so.4
#38 0x00007f14d0dffd3b in g_main_context_dispatch ()
   from /usr/lib/libglib-2.0.so.0
#39 0x00007f14d0e0350d in ?? () from /usr/lib/libglib-2.0.so.0
#40 0x00007f14d0e036cb in g_main_context_iteration ()
   from /usr/lib/libglib-2.0.so.0
#41 0x00007f14d45e215f in QEventDispatcherGlib::processEvents ()
   from /usr/lib/libQtCore.so.4
#42 0x00007f14d1f8ca6f in ?? () from /usr/lib/libQtGui.so.4
#43 0x00007f14d45b8682 in QEventLoop::processEvents ()
   from /usr/lib/libQtCore.so.4
#44 0x00007f14d45b880d in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#45 0x00007f14d45bacbd in QCoreApplication::exec ()
   from /usr/lib/libQtCore.so.4
#46 0x00000000004084e1 in main (argc=<value optimized out>, 
    argv=<value optimized out>)
    at /build/buildd/kdepim-4.1.3/korganizer/main.cpp:58
#0  0x00007f14d17595f0 in __nanosleep_nocancel () from /lib/libc.so.6
Comment 1 Sergio Martins 2009-02-25 22:34:22 UTC
I can't reproduce this with KDE 4.2
Comment 2 Joao Candido 2009-06-15 15:20:50 UTC
I tried to create a new task, but the closed KOrganizer with SIGSEGV error signal 11. Attention, I'm using KDE 4.2.4.
Comment 3 Sergio Martins 2009-06-15 20:20:13 UTC
I can reproduce it now. I'll take a look at it.

#0  QString::operator== (this=0x88e9320, other=@0x8947558) at tools/qstring.cpp:1910                                                         
#1  0xb7b3ad60 in KCal::Person::operator== (this=0x893da60, person=@0x8980730) at /home/serj/kde/src/KDE/kdepimlibs/kcal/person.cpp:96       
#2  0xb7ad598c in KCal::Attendee::operator== (this=0x893da60, attendee=@0x8980730) at /home/serj/kde/src/KDE/kdepimlibs/kcal/attendee.cpp:90 
#3  0xb791e906 in KOAttendeeEditor::cancelAttendeeIncidence (this=0x89d51e0, incidence=0x894da98)                                            
    at /home/serj/kde/src/KDE/kdepim/korganizer/koattendeeeditor.cpp:476                                                                     
#4  0xb7896155 in KOIncidenceEditor::cancelRemovedAttendees (this=0x863ae18, incidence=0x89fe648)                                            
    at /home/serj/kde/src/KDE/kdepim/korganizer/koincidenceeditor.cpp:168                                                                    
#5  0xb789a2f4 in KOTodoEditor::fillTodo (this=0x863ae18, todo=0x89fe648) at /home/serj/kde/src/KDE/kdepim/korganizer/kotodoeditor.cpp:350   
#6  0xb789a67a in KOTodoEditor::processInput (this=0x863ae18) at /home/serj/kde/src/KDE/kdepim/korganizer/kotodoeditor.cpp:268               
#7  0xb7895109 in KOIncidenceEditor::slotButtonClicked (this=0x863ae18, button=4)                                                            
    at /home/serj/kde/src/KDE/kdepim/korganizer/koincidenceeditor.cpp:102                                                                    
#8  0xb7de405f in KDialog::qt_metacall (this=0x863ae18, _c=QMetaObject::InvokeMetaMethod, _id=69, _a=0xbfb94b1c)                             
    at /home/serj/kde/build/KDE/kdelibs/kdeui/kdialog.moc:184                                                                                
#9  0xb7eb1b8a in KPageDialog::qt_metacall (this=0x863ae18, _c=QMetaObject::InvokeMetaMethod, _id=69, _a=0xbfb94b1c)                         
    at /home/serj/kde/build/KDE/kdelibs/kdeui/kpagedialog.moc:64                                                                             
#10 0xb78959fa in KOIncidenceEditor::qt_metacall (this=0x863ae18, _c=QMetaObject::InvokeMetaMethod, _id=69, _a=0xbfb94b1c)                   
    at /home/serj/kde/build/KDE/kdepim/korganizer/koincidenceeditor.moc:107                                                                  
#11 0xb789ac9a in KOTodoEditor::qt_metacall (this=0x863ae18, _c=QMetaObject::InvokeMetaMethod, _id=69, _a=0xbfb94b1c)                        
    at /home/serj/kde/build/KDE/kdepim/korganizer/kotodoeditor.moc:65                                                                        
#12 0xb6d1d898 in QMetaObject::activate (sender=0x87a2ec0, from_signal_index=<value optimized out>, to_signal_index=4,                       
    argv=<value optimized out>) at kernel/qobject.cpp:3117                                                                                   
#13 0xb6d1df04 in QMetaObject::activate (sender=0x87a2ec0, m=0xb6dbc7d8, local_signal_index=0, argv=0xbfb94b1c) at kernel/qobject.cpp:3194   
---Type <return> to continue, or q <return> to quit---                                                                                       
#14 0xb6d21841 in QSignalMapper::mapped (this=0x87a2ec0, _t1=4) at .moc/debug-shared/moc_qsignalmapper.cpp:95                                
#15 0xb6d21c3b in QSignalMapper::map (this=0x87a2ec0, sender=0x85e5110) at kernel/qsignalmapper.cpp:266                                      
#16 0xb6d21e3e in QSignalMapper::map (this=0x87a2ec0) at kernel/qsignalmapper.cpp:257                                                        
#17 0xb6d22337 in QSignalMapper::qt_metacall (this=0x87a2ec0, _c=QMetaObject::InvokeMetaMethod, _id=4, _a=0xbfb94c8c)                        
    at .moc/debug-shared/moc_qsignalmapper.cpp:81

Valgrind says:

==6650== Invalid read of size 4                                                                                                              
==6650==    at 0x4575D50: KCal::Person::operator==(KCal::Person const&) (person.cpp:96)                                                      
==6650==    by 0x451098B: KCal::Attendee::operator==(KCal::Attendee const&) (attendee.cpp:90)                                                
==6650==    by 0x48A8905: KOAttendeeEditor::cancelAttendeeIncidence(KCal::Incidence*) (koattendeeeditor.cpp:476)                             
==6650==    by 0x4820154: KOIncidenceEditor::cancelRemovedAttendees(KCal::Incidence*) (koincidenceeditor.cpp:168)                            
==6650==    by 0x48242F3: KOTodoEditor::fillTodo(KCal::Todo*) (kotodoeditor.cpp:350)                                                         
==6650==    by 0x4824679: KOTodoEditor::processInput() (kotodoeditor.cpp:268)                                                                
==6650==    by 0x481F108: KOIncidenceEditor::slotButtonClicked(int) (koincidenceeditor.cpp:102)                                              
==6650==    by 0x413D05E: KDialog::qt_metacall(QMetaObject::Call, int, void**) (kdialog.moc:184)                                             
==6650==    by 0x420AB89: KPageDialog::qt_metacall(QMetaObject::Call, int, void**) (kpagedialog.moc:64)                                      
==6650==    by 0x481F9F9: KOIncidenceEditor::qt_metacall(QMetaObject::Call, int, void**) (koincidenceeditor.moc:107)                         
==6650==    by 0x4824C99: KOTodoEditor::qt_metacall(QMetaObject::Call, int, void**) (kotodoeditor.moc:65)                                    
==6650==    by 0x53E8897: QMetaObject::activate(QObject*, int, int, void**) (qobject.cpp:3117)                                               
==6650==  Address 0xb1dbd50 is 0 bytes inside a block of size 8 free'd                                                                       
==6650==    at 0x400692C: operator delete(void*) (vg_replace_malloc.c:342)                                                                   
==6650==    by 0x4836485: CustomListViewItem<KCal::Attendee*>::~CustomListViewItem() (koeditordetails.cpp:55)                                
==6650==    by 0x483673C: KOEditorDetails::removeAttendee() (koeditordetails.cpp:243)                                                        
==6650==    by 0x48368CA: KOEditorDetails::qt_metacall(QMetaObject::Call, int, void**) (koeditordetails.moc:145)                             
==6650==    by 0x53E8897: QMetaObject::activate(QObject*, int, int, void**) (qobject.cpp:3117)                                               
==6650==    by 0x53E8CB1: QMetaObject::activate(QObject*, QMetaObject const*, int, int, void**) (qobject.cpp:3214)                           
==6650==    by 0x5DAC772: QAbstractButton::clicked(bool) (moc_qabstractbutton.cpp:200)                                                       
==6650==    by 0x5AF22CB: QAbstractButtonPrivate::emitClicked() (qabstractbutton.cpp:543)                                                    
==6650==    by 0x5AF3C6D: QAbstractButtonPrivate::click() (qabstractbutton.cpp:536)                                                          
==6650==    by 0x5AF3E8D: QAbstractButton::mouseReleaseEvent(QMouseEvent*) (qabstractbutton.cpp:1115)                                        
==6650==    by 0x576711B: QWidget::event(QEvent*) (qwidget.cpp:7521)                                                                         
==6650==    by 0x5AF2CE2: QAbstractButton::event(QEvent*) (qabstractbutton.cpp:1077)
Comment 4 Sergio Martins 2009-06-18 23:32:00 UTC
SVN commit 983727 by smartins:

Fix segfault when removing attendees.

RB: http://reviewboard.kde.org/r/852/
BUG: 181944
MERGE: e4


 M  +16 -12    koattendeeeditor.cpp  
 M  +0 -1      koattendeeeditor.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=983727
Comment 5 Thomas McGuire 2009-06-24 14:43:11 UTC
SVN commit 986265 by tmcguire:

Crossport r983727 by smartins from trunk to the enterprise4 branch:

Fix segfault when removing attendees.

RB: http://reviewboard.kde.org/r/852/
CCBUG: 181944
MERGE: e4



 M  +15 -12    koattendeeeditor.cpp  
 M  +0 -1      koattendeeeditor.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=986265
Comment 6 Dario Andres 2009-06-26 03:27:35 UTC
*** Bug 197866 has been marked as a duplicate of this bug. ***