Bug 180951

Summary: KOrganizer crash when add a new Event
Product: [Applications] korganizer Reporter: Fabrice BELON <fabrice.belon>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash CC: andresbajotierra, fabrice.belon
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Fabrice BELON 2009-01-16 11:10:58 UTC
Version:           4.2 RC1 (KDE 4.1.96) (using Devel)
OS:                Linux
Installed from:    Compiled sources

In Korganizer,

If you want to add a new event, the "New Event" Dialog box appear, you can feel all the items, and when you click on "OK", Korganizer crash...

When you go back to Korganizer, the event you add is add !!!
Comment 1 Dario Andres 2009-01-16 12:58:33 UTC
If you can reproduce the crash at will, may you read http://techbase.kde.org/Development/Tutorials/Debugging/How_to_create_useful_crash_reports and post a complete backtrace here? Thanks :)
Comment 2 Fabrice BELON 2009-01-16 17:03:34 UTC
Ok, I can reproduce it as it append all the time ;) :

*** With GDB ***

Starting program: /usr/bin/korganizer
[Thread debugging using libthread_db enabled]
[New Thread 0xb4f736c0 (LWP 13978)]
korganizer(13981): Attempt to use QAction "filter_label" with KXMLGUIFactory!
korganizer(13981) Sonnet::Loader::loadPlugin: Successfully loaded plugin: "kspell_hspell.desktop"
korganizer(13981) Sonnet::Loader::loadPlugin: Successfully loaded plugin: "kspell_enchant.desktop"

Program exited normally.
(gdb) QPixmap::setMask: Cannot set mask while pixmap is being painted on
QPixmap::setMask: Cannot set mask while pixmap is being painted on
QPixmap::setMask: Cannot set mask while pixmap is being painted on
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x2e0087a
ASSERT: "collection.isValid()" in file /build/buildd/kdepimlibs-4.1.96/akonadi/collectionfetchjob.cpp, line 72
KCrash: Application 'korganizer' crashing...
sock_file=/home/fabrice/.kde/socket-PC-fabrice/kdeinit4__0


*** with Valgrind ***

==14005== Memcheck, a memory error detector.
==14005== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al.
==14005== Using LibVEX rev 1854, a library for dynamic binary translation.
==14005== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
==14005== Using valgrind-3.3.1-Debian, a dynamic binary instrumentation framework.
==14005== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al.
==14005== For more details, rerun with: -v
==14005== 
==14005== My PID = 14005, parent PID = 11020.  Prog and args are:
==14005==    korganizer
==14005== 
==14005== Invalid read of size 4
==14005==    at 0x4015809: (within /lib/ld-2.8.90.so)
==14005==    by 0x6C61BEB: (within /lib/tls/i686/cmov/libdl-2.8.90.so)
==14005==    by 0x400D715: (within /lib/ld-2.8.90.so)
==14005==    by 0x6C6201B: (within /lib/tls/i686/cmov/libdl-2.8.90.so)
==14005==    by 0x6C61B20: dlopen (in /lib/tls/i686/cmov/libdl-2.8.90.so)
==14005==    by 0x5E68796: (within /usr/lib/libQtCore.so.4.4.3)
==14005==    by 0x5E62CBB: (within /usr/lib/libQtCore.so.4.4.3)
==14005==    by 0x5D14A52: (within /usr/lib/libQtDBus.so.4.4.3)
==14005==    by 0x5CCC73E: QDBusConnection::connectToBus(QDBusConnection::BusType, QString const&) (in /usr/lib/libQtDBus.so.4.4.3)
==14005==    by 0x46E6FDA: KPIM::PimApplication::start() (pimapplication.cpp:54)
==14005==    by 0x8050FF5: main (main.cpp:46)
==14005==  Address 0x70de66c is 36 bytes inside a block of size 38 alloc'd
==14005==    at 0x4025D2E: malloc (vg_replace_malloc.c:207)
==14005==    by 0x400D823: (within /lib/ld-2.8.90.so)
==14005==    by 0x4008235: (within /lib/ld-2.8.90.so)
==14005==    by 0x40118E6: (within /lib/ld-2.8.90.so)
==14005==    by 0x400D715: (within /lib/ld-2.8.90.so)
==14005==    by 0x40112ED: (within /lib/ld-2.8.90.so)
==14005==    by 0x6C61BEB: (within /lib/tls/i686/cmov/libdl-2.8.90.so)
==14005==    by 0x400D715: (within /lib/ld-2.8.90.so)
==14005==    by 0x6C6201B: (within /lib/tls/i686/cmov/libdl-2.8.90.so)
==14005==    by 0x6C61B20: dlopen (in /lib/tls/i686/cmov/libdl-2.8.90.so)
==14005==    by 0x5E68796: (within /usr/lib/libQtCore.so.4.4.3)
==14005==    by 0x5E62CBB: (within /usr/lib/libQtCore.so.4.4.3)
==14005== 
==14005== Invalid read of size 4
==14005==    at 0x4015820: (within /lib/ld-2.8.90.so)
==14005==    by 0x6C61BEB: (within /lib/tls/i686/cmov/libdl-2.8.90.so)
==14005==    by 0x400D715: (within /lib/ld-2.8.90.so)
==14005==    by 0x6C6201B: (within /lib/tls/i686/cmov/libdl-2.8.90.so)
==14005==    by 0x6C61B20: dlopen (in /lib/tls/i686/cmov/libdl-2.8.90.so)
==14005==    by 0x5E68796: (within /usr/lib/libQtCore.so.4.4.3)
==14005==    by 0x5E62CBB: (within /usr/lib/libQtCore.so.4.4.3)
==14005==    by 0x5D14A52: (within /usr/lib/libQtDBus.so.4.4.3)
==14005==    by 0x5CCC73E: QDBusConnection::connectToBus(QDBusConnection::BusType, QString const&) (in /usr/lib/libQtDBus.so.4.4.3)
==14005==    by 0x46E6FDA: KPIM::PimApplication::start() (pimapplication.cpp:54)
==14005==    by 0x8050FF5: main (main.cpp:46)
==14005==  Address 0x70e6940 is 40 bytes inside a block of size 43 alloc'd
==14005==    at 0x4025D2E: malloc (vg_replace_malloc.c:207)
==14005==    by 0x400D823: (within /lib/ld-2.8.90.so)
==14005==    by 0x4008235: (within /lib/ld-2.8.90.so)
==14005==    by 0x40118E6: (within /lib/ld-2.8.90.so)
==14005==    by 0x400D715: (within /lib/ld-2.8.90.so)
==14005==    by 0x40112ED: (within /lib/ld-2.8.90.so)
==14005==    by 0x6C61BEB: (within /lib/tls/i686/cmov/libdl-2.8.90.so)
==14005==    by 0x400D715: (within /lib/ld-2.8.90.so)
==14005==    by 0x6C6201B: (within /lib/tls/i686/cmov/libdl-2.8.90.so)
==14005==    by 0x6C61B20: dlopen (in /lib/tls/i686/cmov/libdl-2.8.90.so)
==14005==    by 0x5E68796: (within /usr/lib/libQtCore.so.4.4.3)
==14005==    by 0x5E62CBB: (within /usr/lib/libQtCore.so.4.4.3)
==14009== 
==14009== Invalid read of size 4
==14009==    at 0x4015837: (within /lib/ld-2.8.90.so)
==14009==    by 0x6C61BEB: (within /lib/tls/i686/cmov/libdl-2.8.90.so)
==14009==    by 0x400D715: (within /lib/ld-2.8.90.so)
==14009==    by 0x6C6201B: (within /lib/tls/i686/cmov/libdl-2.8.90.so)
==14009==    by 0x6C61B20: dlopen (in /lib/tls/i686/cmov/libdl-2.8.90.so)
==14009==    by 0x5E68796: (within /usr/lib/libQtCore.so.4.4.3)
==14009==    by 0x5E62CBB: (within /usr/lib/libQtCore.so.4.4.3)
==14009==    by 0x5330D13: (within /usr/lib/libQtGui.so.4.4.3)
==14009==    by 0x52C2118: QApplicationPrivate::construct(_XDisplay*, unsigned long, unsigned long) (in /usr/lib/libQtGui.so.4.4.3)
==14009==    by 0x52C2CDA: QApplication::QApplication(int&, char**, bool, int) (in /usr/lib/libQtGui.so.4.4.3)
==14009==    by 0x42080EC: KApplication::KApplication(bool, KComponentData const&) (kapplication.cpp:377)
==14009==    by 0x420EC4B: KUniqueApplication::KUniqueApplication(bool, bool) (kuniqueapplication.cpp:326)
==14009==  Address 0x7bf617c is 44 bytes inside a block of size 45 alloc'd
==14009==    at 0x4025D2E: malloc (vg_replace_malloc.c:207)
==14009==    by 0x400D823: (within /lib/ld-2.8.90.so)
==14009==    by 0x4008235: (within /lib/ld-2.8.90.so)
==14009==    by 0x40118E6: (within /lib/ld-2.8.90.so)
==14009==    by 0x400D715: (within /lib/ld-2.8.90.so)
==14009==    by 0x40112ED: (within /lib/ld-2.8.90.so)
==14009==    by 0x6C61BEB: (within /lib/tls/i686/cmov/libdl-2.8.90.so)
==14009==    by 0x400D715: (within /lib/ld-2.8.90.so)
==14009==    by 0x6C6201B: (within /lib/tls/i686/cmov/libdl-2.8.90.so)
==14009==    by 0x6C61B20: dlopen (in /lib/tls/i686/cmov/libdl-2.8.90.so)
==14009==    by 0x5E68796: (within /usr/lib/libQtCore.so.4.4.3)
==14009==    by 0x5E62CBB: (within /usr/lib/libQtCore.so.4.4.3)
==14005== 
==14005== ERROR SUMMARY: 3 errors from 2 contexts (suppressed: 218 from 3)
==14005== malloc/free: in use at exit: 47,478 bytes in 497 blocks.
==14005== malloc/free: 10,669 allocs, 10,172 frees, 27,254,820 bytes allocated.
==14005== For counts of detected errors, rerun with: -v
==14005== searching for pointers to 497 not-freed blocks.
==14005== checked 757,348 bytes.
==14005== 
==14005== LEAK SUMMARY:
==14005==    definitely lost: 0 bytes in 0 blocks.
==14005==      possibly lost: 16 bytes in 1 blocks.
==14005==    still reachable: 47,462 bytes in 496 blocks.
==14005==         suppressed: 0 bytes in 0 blocks.
==14005== Rerun with --leak-check=full to see details of leaked memory.
==14009== 
==14009== ERROR SUMMARY: 10 errors from 3 contexts (suppressed: 791 from 6)
==14009== malloc/free: in use at exit: 9,008,932 bytes in 164,714 blocks.
==14009== malloc/free: 1,719,858 allocs, 1,555,144 frees, 255,082,629 bytes allocated.
==14009== For counts of detected errors, rerun with: -v
==14009== searching for pointers to 164,714 not-freed blocks.
==14009== checked 28,235,212 bytes.
==14009== 
==14009== LEAK SUMMARY:
==14009==    definitely lost: 1,075,872 bytes in 53,076 blocks.
==14009==      possibly lost: 255,883 bytes in 9,350 blocks.
==14009==    still reachable: 7,677,177 bytes in 102,288 blocks.
==14009==         suppressed: 0 bytes in 0 blocks.
==14009== Rerun with --leak-check=full to see details of leaked memory.

Fabrice
Comment 3 Dario Andres 2009-01-16 17:40:19 UTC
Thanks a lot :)

*** This bug has been marked as a duplicate of bug 180655 ***