{"action":"created","issue":{"url":"https://api.github.com/repos/unicorn-engine/unicorn/issues/350","labels_url":"https://api.github.com/repos/unicorn-engine/unicorn/issues/350/labels{/name}","comments_url":"https://api.github.com/repos/unicorn-engine/unicorn/issues/350/comments","events_url":"https://api.github.com/repos/unicorn-engine/unicorn/issues/350/events","html_url":"https://github.com/unicorn-engine/unicorn/issues/350","id":124129359,"number":350,"title":"Crash after Double mapping","user":{"login":"ranmrdrakono","id":3338793,"avatar_url":"https://avatars.githubusercontent.com/u/3338793?v=3","gravatar_id":"","url":"https://api.github.com/users/ranmrdrakono","html_url":"https://github.com/ranmrdrakono","followers_url":"https://api.github.com/users/ranmrdrakono/followers","following_url":"https://api.github.com/users/ranmrdrakono/following{/other_user}","gists_url":"https://api.github.com/users/ranmrdrakono/gists{/gist_id}","starred_url":"https://api.github.com/users/ranmrdrakono/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ranmrdrakono/subscriptions","organizations_url":"https://api.github.com/users/ranmrdrakono/orgs","repos_url":"https://api.github.com/users/ranmrdrakono/repos","events_url":"https://api.github.com/users/ranmrdrakono/events{/privacy}","received_events_url":"https://api.github.com/users/ranmrdrakono/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-28T21:26:05Z","updated_at":"2015-12-28T22:25:24Z","closed_at":null,"body":"If the same memory reagion is mapped twice, unmapping any region will crash the emulator with a assertion failure. It is unclear if mapping an already mapped page should fail, but it certainly shouldn't assert-fail to unmap.  A testcase was added in #349."},"comment":{"url":"https://api.github.com/repos/unicorn-engine/unicorn/issues/comments/167669342","html_url":"https://github.com/unicorn-engine/unicorn/issues/350#issuecomment-167669342","issue_url":"https://api.github.com/repos/unicorn-engine/unicorn/issues/350","id":167669342,"user":{"login":"ranmrdrakono","id":3338793,"avatar_url":"https://avatars.githubusercontent.com/u/3338793?v=3","gravatar_id":"","url":"https://api.github.com/users/ranmrdrakono","html_url":"https://github.com/ranmrdrakono","followers_url":"https://api.github.com/users/ranmrdrakono/followers","following_url":"https://api.github.com/users/ranmrdrakono/following{/other_user}","gists_url":"https://api.github.com/users/ranmrdrakono/gists{/gist_id}","starred_url":"https://api.github.com/users/ranmrdrakono/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ranmrdrakono/subscriptions","organizations_url":"https://api.github.com/users/ranmrdrakono/orgs","repos_url":"https://api.github.com/users/ranmrdrakono/repos","events_url":"https://api.github.com/users/ranmrdrakono/events{/privacy}","received_events_url":"https://api.github.com/users/ranmrdrakono/received_events","type":"User","site_admin":false},"created_at":"2015-12-28T22:25:24Z","updated_at":"2015-12-28T22:25:24Z","body":"I'm only unmaping once. I think a hypothetical second unmap should fail since unmaping pages that are not mapped should fail. The only question is: Do we expect multiple maps to overlapping pages to fail / succeed?"}}