{"action":"created","issue":{"url":"https://api.github.com/repos/Z3Prover/z3/issues/989","repository_url":"https://api.github.com/repos/Z3Prover/z3","labels_url":"https://api.github.com/repos/Z3Prover/z3/issues/989/labels{/name}","comments_url":"https://api.github.com/repos/Z3Prover/z3/issues/989/comments","events_url":"https://api.github.com/repos/Z3Prover/z3/issues/989/events","html_url":"https://github.com/Z3Prover/z3/issues/989","id":224944492,"number":989,"title":"z3 crashes on sys.exit in python","user":{"login":"cdonovick","id":6125428,"avatar_url":"https://avatars1.githubusercontent.com/u/6125428?v=4","gravatar_id":"","url":"https://api.github.com/users/cdonovick","html_url":"https://github.com/cdonovick","followers_url":"https://api.github.com/users/cdonovick/followers","following_url":"https://api.github.com/users/cdonovick/following{/other_user}","gists_url":"https://api.github.com/users/cdonovick/gists{/gist_id}","starred_url":"https://api.github.com/users/cdonovick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdonovick/subscriptions","organizations_url":"https://api.github.com/users/cdonovick/orgs","repos_url":"https://api.github.com/users/cdonovick/repos","events_url":"https://api.github.com/users/cdonovick/events{/privacy}","received_events_url":"https://api.github.com/users/cdonovick/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2017-04-27T23:56:45Z","updated_at":"2017-08-13T21:26:49Z","closed_at":null,"body":"```\r\n#!/usr/bin/env python3\r\nimport z3\r\nimport sys\r\ns = z3.Solver()\r\nsys.exit(1)\r\n```\r\nNondeterministically (about %50) terminates with the following output to stderr\r\n ```\r\nException ignored in: <object repr() failed>\r\nTraceback (most recent call last):\r\n  File \".../python3.5/site-packages/z3/z3.py\", line 5915, in __del__\r\n  File \".../python3.5/site-packages/z3/z3core.py\", line 4060, in Z3_solver_dec_ref\r\nTypeError: 'NoneType' object is not callable\r\n```\r\nIf I declare a literal (e.g. `x = z3.BitVec('x', 16)`)  in addition to first error I get:\r\n```\r\nException ignored in: <object repr() failed>\r\nTraceback (most recent call last):\r\n  File \".../python3.5/site-packages/z3/z3.py\", line 289, in __del__\r\n  File \".../python3.5/site-packages/z3/z3core.py\", line 1302, in Z3_solver_dec_ref\r\nTypeError: 'NoneType' object is not callable\r\n```\r\n\r\nMy enviroment\r\nUbuntu 16.04.1 LTS (xenial)\r\nPython 3.5.2 \r\nZ3 version 4.5.1 - 64 (commit: 69aa5ca877f5de0a2c00515d0fe86a797b95701a)\r\n"},"comment":{"url":"https://api.github.com/repos/Z3Prover/z3/issues/comments/322068570","html_url":"https://github.com/Z3Prover/z3/issues/989#issuecomment-322068570","issue_url":"https://api.github.com/repos/Z3Prover/z3/issues/989","id":322068570,"user":{"login":"NikolajBjorner","id":3085284,"avatar_url":"https://avatars2.githubusercontent.com/u/3085284?v=4","gravatar_id":"","url":"https://api.github.com/users/NikolajBjorner","html_url":"https://github.com/NikolajBjorner","followers_url":"https://api.github.com/users/NikolajBjorner/followers","following_url":"https://api.github.com/users/NikolajBjorner/following{/other_user}","gists_url":"https://api.github.com/users/NikolajBjorner/gists{/gist_id}","starred_url":"https://api.github.com/users/NikolajBjorner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NikolajBjorner/subscriptions","organizations_url":"https://api.github.com/users/NikolajBjorner/orgs","repos_url":"https://api.github.com/users/NikolajBjorner/repos","events_url":"https://api.github.com/users/NikolajBjorner/events{/privacy}","received_events_url":"https://api.github.com/users/NikolajBjorner/received_events","type":"User","site_admin":false},"created_at":"2017-08-13T21:26:49Z","updated_at":"2017-08-13T21:26:49Z","body":"can this be closed now? I believe this addresses the problem."}}
{"actor":{"display_login":"NikolajBjorner"}}