[Korganizer-devel] [Bug 285962] New: Crash in korganizer when quitting with kquitapp

David E. Narvaez david.narvaez at computer.org
Mon Nov 7 07:50:39 UTC 2011


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

           Summary: Crash in korganizer when quitting with kquitapp
           Product: korganizer
           Version: unspecified
          Platform: Compiled Sources
        OS/Version: Linux
            Status: NEW
          Severity: crash
          Priority: NOR
         Component: general
        AssignedTo: korganizer-devel at kde.org
        ReportedBy: david.narvaez at computer.org


Application: korganizer (4.8 pre-git-719de66 (2011-11-06))
KDE Platform Version: 4.7.3 (4.7.3) (Compiled from sources)
Qt Version: 4.7.4
Operating System: Linux 3.0.3-gentoo-libre x86_64
Distribution (Platform): Gentoo Packages

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

Open KOrganizer, then from a terminal do kquitapp korganizer. This is also
reproducible if you log out of your session while KOrganizer is open.

While debugging, I realized this has to do with the sModel variable declared at
ktodoview.cpp:66, which is destroyed before it's last access. I tried reading
through the documetation of K_GLOBAL_STATIC to see if there's any evident fix
that can be applied, but couldn't make any progress.

The crash can be reproduced every time.

-- Backtrace:
Application: KOrganizer (korganizer), signal: Segmentation fault
[KCrash Handler]
#6  0x00007fade97c5368 in
QSortFilterProxyModelPrivate::create_mapping(QModelIndex const&) const () from
/usr/lib64/qt4/libQtGui.so.4
#7  0x00007fade97c6182 in QSortFilterProxyModel::index(int, int, QModelIndex
const&) const () from /usr/lib64/qt4/libQtGui.so.4
#8  0x00007fade97c2f66 in
QSortFilterProxyModelPrivate::update_source_sort_column() () from
/usr/lib64/qt4/libQtGui.so.4
#9  0x00007fade97c6912 in QSortFilterProxyModelPrivate::_q_clearMapping() ()
from /usr/lib64/qt4/libQtGui.so.4
#10 0x00007fade97c0d02 in QAbstractProxyModel::qt_metacall(QMetaObject::Call,
int, void**) () from /usr/lib64/qt4/libQtGui.so.4
#11 0x00007fade97c98c5 in QSortFilterProxyModel::qt_metacall(QMetaObject::Call,
int, void**) () from /usr/lib64/qt4/libQtGui.so.4
#12 0x00007fadec6c9470 in KOTodoViewSortFilterProxyModel::qt_metacall
(this=0x865020, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>,
_a=0x7fff01b640e0) at
/home/david/Projects/kdepim/build/korganizer/kotodoviewsortfilterproxymodel.moc:68
#13 0x00007fade80b8907 in QMetaObject::activate(QObject*, QMetaObject const*,
int, void**) () from /usr/lib64/qt4/libQtCore.so.4
#14 0x00007fade80b8dff in QObject::destroyed(QObject*) () from
/usr/lib64/qt4/libQtCore.so.4
#15 0x00007fade80bb187 in QObject::~QObject() () from
/usr/lib64/qt4/libQtCore.so.4
#16 0x00007fadec6beeb9 in KOTodoModel::~KOTodoModel (this=0x889d90,
__in_chrg=<value optimized out>) at
/home/david/Projects/kdepim/korganizer/views/todoview/kotodomodel.cpp:205
#17 0x00007fade6fe59b5 in __run_exit_handlers () from /lib64/libc.so.6
#18 0x00007fade6fe5a05 in exit () from /lib64/libc.so.6
#19 0x00007fade6fcfd24 in __libc_start_main () from /lib64/libc.so.6
#20 0x00000000004082d9 in _start ()

Reported using DrKonqi

-- 
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 Korganizer-devel mailing list