Bug 3744 - Crash upon deleting tags
Summary: Crash upon deleting tags
Status: RESOLVED FIXED
Alias: None
Product: Claws Mail (GTK 2)
Classification: Unclassified
Component: Folders/IMAP (show other bugs)
Version: 3.14.1
Hardware: PC Linux
: P3 normal
Assignee: users
URL:
Depends on:
Blocks:
 
Reported: 2016-12-09 14:04 UTC by Michael Schwendt
Modified: 2017-04-18 17:40 UTC (History)
0 users

See Also:


Attachments
full backtrace (49.94 KB, text/plain)
2016-12-09 14:53 UTC, Michael Schwendt
no flags Details

Description Michael Schwendt 2016-12-09 14:04:13 UTC
Steps to reproduce:

1. Right-click a message -> "Apply tags", "Add" some new tag to a message
2. Immediately click "Delete" to delete the tag again
3. Tags stays in the list
4. Try to "Delete" the tag once more -> Crash

The only way to avoid the crash is to "Close" the dialog after deletion, and then reopening it, the tag is gone.
Comment 1 Paul 2016-12-09 14:28:58 UTC
I see your 3rd point - Tags stay in the list when deleted, but I don't get the crash.
Comment 2 Michael Schwendt 2016-12-09 14:53:13 UTC
Created attachment 1704 [details]
full backtrace

Automatically created by ABRT on Fedora 25 x86_64 with Claws Mail 3.14.1 from updates-testing.
Comment 3 Michael Schwendt 2016-12-09 14:56:09 UTC
Seems to be in libetpan, right?
Comment 4 Michael Schwendt 2016-12-09 14:58:13 UTC
NULL ptr passed to strlen.

   230  int mailimap_token_send(mailstream * fd, const char * atom)
   231  {
   232    return mailimap_sized_token_send(fd, atom, strlen(atom));
   233  }
Comment 5 Paul 2016-12-09 15:02:21 UTC
That would make sense as I don't use IMAP.
Comment 6 Michael Schwendt 2016-12-09 15:07:35 UTC
Oh, and libetpan is still at 1.6 here, not 1.7.2 yet.
Comment 7 lydia 2017-03-27 15:34:14 UTC
we are students and we are working on this bug.

we resolved the crash and  just Removed tags from the display but not on "data base". Where we can find the source tag ?
Comment 8 users 2017-04-09 18:33:03 UTC
Changes related to this bug have been committed.
Please check latest Git and update the bug accordingly.
You can also get the patch from:
http://git.claws-mail.org/

++ ChangeLog	2017-04-09 18:33:02.962605369 +0200
http://git.claws-mail.org/?p=claws.git;a=commitdiff;h=0aebd110e77ebb278a6cc6b6967dfaa6618d16ab
Merge: d21265f 9eb1c96
Author: Colin Leroy <colin@colino.net>
Date:   Sun Apr 9 18:33:02 2017 +0200

    Merge branch 'master' of file:///home/git/claws

http://git.claws-mail.org/?p=claws.git;a=commitdiff;h=9eb1c969c85d38b31c12ec188eec8932e522a45d
Author: Andrej Kacian <ticho@claws-mail.org>
Date:   Sun Apr 9 18:31:52 2017 +0200

    Fix GUI not updating after deleting a tag.
    
    Fixes bug #3744 - Crash upon deleting tags.

Note You need to log in before you can comment on or make changes to this bug.