{"action":"created","issue":{"url":"https://api.github.com/repos/matplotlib/matplotlib/issues/6231","repository_url":"https://api.github.com/repos/matplotlib/matplotlib","labels_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/6231/labels{/name}","comments_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/6231/comments","events_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/6231/events","html_url":"https://github.com/matplotlib/matplotlib/issues/6231","id":143831059,"number":6231,"title":"Segfault when figures are deleted in random order","user":{"login":"olcc","id":5873395,"avatar_url":"https://avatars.githubusercontent.com/u/5873395?v=3","gravatar_id":"","url":"https://api.github.com/users/olcc","html_url":"https://github.com/olcc","followers_url":"https://api.github.com/users/olcc/followers","following_url":"https://api.github.com/users/olcc/following{/other_user}","gists_url":"https://api.github.com/users/olcc/gists{/gist_id}","starred_url":"https://api.github.com/users/olcc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olcc/subscriptions","organizations_url":"https://api.github.com/users/olcc/orgs","repos_url":"https://api.github.com/users/olcc/repos","events_url":"https://api.github.com/users/olcc/events{/privacy}","received_events_url":"https://api.github.com/users/olcc/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/matplotlib/matplotlib/labels/upstream%20fix%20required","name":"upstream fix required","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/matplotlib/matplotlib/milestones/22","html_url":"https://github.com/matplotlib/matplotlib/milestones/1.5.2%20(Critical%20bug%20fix%20release)","labels_url":"https://api.github.com/repos/matplotlib/matplotlib/milestones/22/labels","id":1495785,"number":22,"title":"1.5.2 (Critical bug fix release)","description":"Speculative milestone is case we need to do a 1.5.2 release. ","creator":{"login":"tacaswell","id":199813,"avatar_url":"https://avatars.githubusercontent.com/u/199813?v=3","gravatar_id":"","url":"https://api.github.com/users/tacaswell","html_url":"https://github.com/tacaswell","followers_url":"https://api.github.com/users/tacaswell/followers","following_url":"https://api.github.com/users/tacaswell/following{/other_user}","gists_url":"https://api.github.com/users/tacaswell/gists{/gist_id}","starred_url":"https://api.github.com/users/tacaswell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tacaswell/subscriptions","organizations_url":"https://api.github.com/users/tacaswell/orgs","repos_url":"https://api.github.com/users/tacaswell/repos","events_url":"https://api.github.com/users/tacaswell/events{/privacy}","received_events_url":"https://api.github.com/users/tacaswell/received_events","type":"User","site_admin":false},"open_issues":28,"closed_issues":87,"state":"open","created_at":"2016-01-10T22:41:29Z","updated_at":"2016-03-30T19:04:15Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2016-03-27T17:35:40Z","updated_at":"2016-04-02T16:38:13Z","closed_at":null,"body":"Hello, please consider the following code...\r\n```\r\nimport matplotlib.pyplot as pyplot\r\nfig1 = pyplot.figure()\r\nfig2 = pyplot.figure()\r\npyplot.show()\r\n```\r\nIf I delete Figure 2, then Figure 1, the program finishes correctly.\r\nIf I delete Figure 1, then Figure 2, the program finishes with a segmentation error.\r\nI believe that the program should not segfault in the second case.\r\n\r\nOlivier\r\n-- Matplotlib 1.5.1, Python 3.5.1, Debian Linux"},"comment":{"url":"https://api.github.com/repos/matplotlib/matplotlib/issues/comments/204755391","html_url":"https://github.com/matplotlib/matplotlib/issues/6231#issuecomment-204755391","issue_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/6231","id":204755391,"user":{"login":"tacaswell","id":199813,"avatar_url":"https://avatars.githubusercontent.com/u/199813?v=3","gravatar_id":"","url":"https://api.github.com/users/tacaswell","html_url":"https://github.com/tacaswell","followers_url":"https://api.github.com/users/tacaswell/followers","following_url":"https://api.github.com/users/tacaswell/following{/other_user}","gists_url":"https://api.github.com/users/tacaswell/gists{/gist_id}","starred_url":"https://api.github.com/users/tacaswell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tacaswell/subscriptions","organizations_url":"https://api.github.com/users/tacaswell/orgs","repos_url":"https://api.github.com/users/tacaswell/repos","events_url":"https://api.github.com/users/tacaswell/events{/privacy}","received_events_url":"https://api.github.com/users/tacaswell/received_events","type":"User","site_admin":false},"created_at":"2016-04-02T16:38:12Z","updated_at":"2016-04-02T16:38:12Z","body":"I was testing with tcl/tk 8.5.0 (what anaconda ships) or 8.6.4 (what arch packages).\r\n\r\n@sandrotosi This is something that may need to be addressed in the debian packaging?"}}