{"action":"opened","issue":{"url":"https://api.github.com/repos/gap-system/gap/issues/2226","repository_url":"https://api.github.com/repos/gap-system/gap","labels_url":"https://api.github.com/repos/gap-system/gap/issues/2226/labels{/name}","comments_url":"https://api.github.com/repos/gap-system/gap/issues/2226/comments","events_url":"https://api.github.com/repos/gap-system/gap/issues/2226/events","html_url":"https://github.com/gap-system/gap/issues/2226","id":301447399,"number":2226,"title":"Crash when reading if statements which are partially optimised away.","user":{"login":"ChrisJefferson","id":811527,"avatar_url":"https://avatars2.githubusercontent.com/u/811527?v=4","gravatar_id":"","url":"https://api.github.com/users/ChrisJefferson","html_url":"https://github.com/ChrisJefferson","followers_url":"https://api.github.com/users/ChrisJefferson/followers","following_url":"https://api.github.com/users/ChrisJefferson/following{/other_user}","gists_url":"https://api.github.com/users/ChrisJefferson/gists{/gist_id}","starred_url":"https://api.github.com/users/ChrisJefferson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChrisJefferson/subscriptions","organizations_url":"https://api.github.com/users/ChrisJefferson/orgs","repos_url":"https://api.github.com/users/ChrisJefferson/repos","events_url":"https://api.github.com/users/ChrisJefferson/events{/privacy}","received_events_url":"https://api.github.com/users/ChrisJefferson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-01T15:29:30Z","updated_at":"2018-03-01T15:29:30Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"The following code causes GAP to segfault:\r\n\r\n```\r\nF:=function(x)\r\n\t  if true then\r\n      # Does not matter what is here\r\n      ;\r\n\t  elif x=1 then\r\n      # Various statements here cause the failure, including Assert or Info\r\n      Assert(x=1, \"hi\");\r\n      #\tInfo(InfoWarning,1,\"Case not yet implemented\");\r\n\t  fi;\r\nend;\r\n```\r\n\r\nThis is caused by [144b52a7ce5ccd34a9f9c1013cc92e64d80ba9f6] Optimize true/false conditions when coding if-statements.\r\n\r\nThis test case is reduced from `pkg/matgrp/recograt.gi`\r\n``"}}
{"actor":{"display_login":"ChrisJefferson"}}