After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 774731 - SIGSEGV after removing list
SIGSEGV after removing list
Status: RESOLVED FIXED
Product: gnome-todo
Classification: Other
Component: General
unspecified
Other Linux
: Normal normal
: ---
Assigned To: GNOME To Do maintainer(s)
GNOME To Do maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2016-11-19 21:25 UTC by Victor Toso
Modified: 2016-12-01 01:49 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
crash after deleting list (7.39 KB, text/plain)
2016-11-19 21:25 UTC, Victor Toso
  Details
list-selector-grid-item: plug unref over non-owned reference (985 bytes, patch)
2016-12-01 01:47 UTC, Georges Basile Stavracas Neto
committed Details | Review

Description Victor Toso 2016-11-19 21:25:34 UTC
Created attachment 340325 [details]
crash after deleting list

It seems to be that the reference count may be bad, like, objects using GtdTaskList reference while they don't hold real reference to it.

I've spent more time than I was willing in order to track this... did not find the root cause.

Code is git master, very easy to reproduce:
1-) Create a list (local)
2-) Delete it
3-) Crash

Backtrace attached.
Comment 1 Georges Basile Stavracas Neto 2016-12-01 01:47:49 UTC
Created attachment 341095 [details] [review]
list-selector-grid-item: plug unref over non-owned reference
Comment 2 Georges Basile Stavracas Neto 2016-12-01 01:49:06 UTC
Please let me know if that patch doesn't fix the issue.

Attachment 341095 [details] pushed as abf31ab - list-selector-grid-item: plug unref over non-owned reference