Bug 100391 - crash when deleting a task
Summary: crash when deleting a task
Status: RESOLVED FIXED
Alias: None
Product: ktimetracker
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Mark Bucciarelli
URL:
Keywords:
: 105445 110697 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-02-27 19:40 UTC by Martin Honermeyer
Modified: 2005-08-27 14:51 UTC (History)
2 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 Martin Honermeyer 2005-02-27 19:40:03 UTC
Version:           1.5.0 (using KDE 3.3.92 (beta2), Gentoo)
Compiler:          gcc version 3.4.3 (Gentoo Linux 3.4.3, ssp-3.4.3-0, pie-8.7.6.6)
OS:                Linux (x86_64) release 2.6.10-gentoo-r7

When I click on the delete button to delete a task, karm crashes. When I start it again, I can see that the task has been deleted though. Output from strace:

...
close(20)                               = -1 EBADF (Bad file descriptor)
close(21)                               = -1 EBADF (Bad file descriptor)
close(22)                               = -1 EBADF (Bad file descriptor)
close(23)                               = -1 EBADF (Bad file descriptor)
close(24)                               = -1 EBADF (Bad file descriptor)
close(25)                               = -1 EBADF (Bad file descriptor)
close(26)                               = -1 EBADF (Bad file descriptor)
close(27)                               = -1 EBADF (Bad file descriptor)
close(28)                               = -1 EBADF (Bad file descriptor)
...
--- SIGCHLD (Child exited) @ 0 (0) ---
write(8, "\0", 1)                       = -1 EBADF (Bad file descriptor)
rt_sigreturn(0x8)                       = 12651
exit_group(253)                         = ?


=> many strange close() calls!


Martin
Comment 1 Mark Bucciarelli 2005-02-27 20:10:43 UTC
yikes.  thanks for your report!
Comment 2 Mark Bucciarelli 2005-03-20 05:01:05 UTC
I cannot duplicate this with 3_4_BRANCH.

Would it be possible for you to compile with --enable-debug=full and generate a backtrace for me?

If not, please provide any information you think may be relevant so I can duplicate the behavior.
Comment 3 Martin Honermeyer 2005-04-28 21:47:07 UTC
Recompiled! Sorry, how do I generate a backtrace?
Comment 4 Mark Bucciarelli 2005-04-28 21:59:30 UTC
Great, thanks for taking that on.

Just make KArm crash, and KDE will generate  a backtrace.  You can then 
upload it here.
Comment 5 Thorsten Staerk 2005-05-20 17:51:15 UTC
I have this here, too. It occurs on about every 2nd deletion. The following seems to resolve the error:

get the sources.
In taskview.cpp, change the order of the lines
      save();
      deleteItemState( task );
so they look
      deleteItemState( task );
      save();
then, recompile && reinstall.

Does this help at you, too ?
Comment 6 Thorsten Staerk 2005-05-21 08:39:02 UTC
*** Bug 105445 has been marked as a duplicate of this bug. ***
Comment 7 Thorsten Staerk 2005-05-21 08:48:07 UTC
I checked this in and backported it yesterday. The tests of make check still succeed. The fix will be in tomorrow's KDE 3.4.1.

What a luck - this bug blocked my karm-kontact-plugin-testing.
Comment 8 Martin Honermeyer 2005-06-01 19:13:23 UTC
Just installed 3.4.1.

Upon adding a new task, it says: "Error storing new task. Your changes were not saved."

My .xsession-errors says the following
* upon starting:
korgac: ERROR: Received DCOP: resource added for unknown resource Wjp98sv1Ui
kontact: ERROR: Received DCOP: resource added for unknown resource Wjp98sv1Ui

* upon exiting:
korgac: ERROR: Received DCOP: resource deleted for unknown resource Wjp98sv1Ui
kontact: ERROR: Received DCOP: resource deleted for unknown resource Wjp98sv1Ui


I should add that I am using a Kolab mail server (set up with kolabwizard), so I am using the contacts, calendar and notes resources from the IMAP server. Please also note that I am using an AMD64 machine!


Martin
Comment 9 Martin Honermeyer 2005-06-26 16:13:54 UTC
With the help of #106737, it works now! Had to delete the lock file manually. So my problem concerns #106737 only.
Comment 10 Thorsten Staerk 2005-08-27 14:51:02 UTC
*** Bug 110697 has been marked as a duplicate of this bug. ***