{"action":"created","issue":{"url":"https://api.github.com/repos/smagnan/Lutin/issues/2","labels_url":"https://api.github.com/repos/smagnan/Lutin/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/smagnan/Lutin/issues/2/comments","events_url":"https://api.github.com/repos/smagnan/Lutin/issues/2/events","html_url":"https://github.com/smagnan/Lutin/issues/2","id":62981940,"number":2,"title":"Segfault","user":{"login":"smagnan","id":6959251,"avatar_url":"https://avatars.githubusercontent.com/u/6959251?v=3","gravatar_id":"","url":"https://api.github.com/users/smagnan","html_url":"https://github.com/smagnan","followers_url":"https://api.github.com/users/smagnan/followers","following_url":"https://api.github.com/users/smagnan/following{/other_user}","gists_url":"https://api.github.com/users/smagnan/gists{/gist_id}","starred_url":"https://api.github.com/users/smagnan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smagnan/subscriptions","organizations_url":"https://api.github.com/users/smagnan/orgs","repos_url":"https://api.github.com/users/smagnan/repos","events_url":"https://api.github.com/users/smagnan/events{/privacy}","received_events_url":"https://api.github.com/users/smagnan/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/smagnan/Lutin/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":22,"created_at":"2015-03-19T13:15:32Z","updated_at":"2015-03-23T22:00:44Z","closed_at":null,"body":"In ``` Automaton::read() ```\r\nthe following line is responsible for a *segfault*:\r\n``` \r\nthis->stateStack.top()->transition(*this,*it);\r\n```\r\nBut the problem seems to be (after some testing):\r\n``` symbols = this->lexer->getSymbols(); ``` ( ```symbols``` is a vector)\r\nsince it create a copy of the vector, which contains pointers to objects, but no copy of the objects. Then the objects are deleted inside the *Lexer* or some stuff like that and ```*it``` dereferencing fails (:\r\n\r\nTo help\r\n[segfault](http://stackoverflow.com/questions/17010562/segfault-when-dereferencing-iterator-for-vector-of-pointers)\r\n\r\nMaybe it's not the real issue but it might be ... take a look"},"comment":{"url":"https://api.github.com/repos/smagnan/Lutin/issues/comments/85222333","html_url":"https://github.com/smagnan/Lutin/issues/2#issuecomment-85222333","issue_url":"https://api.github.com/repos/smagnan/Lutin/issues/2","id":85222333,"user":{"login":"pierre-godard","id":3969168,"avatar_url":"https://avatars.githubusercontent.com/u/3969168?v=3","gravatar_id":"","url":"https://api.github.com/users/pierre-godard","html_url":"https://github.com/pierre-godard","followers_url":"https://api.github.com/users/pierre-godard/followers","following_url":"https://api.github.com/users/pierre-godard/following{/other_user}","gists_url":"https://api.github.com/users/pierre-godard/gists{/gist_id}","starred_url":"https://api.github.com/users/pierre-godard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pierre-godard/subscriptions","organizations_url":"https://api.github.com/users/pierre-godard/orgs","repos_url":"https://api.github.com/users/pierre-godard/repos","events_url":"https://api.github.com/users/pierre-godard/events{/privacy}","received_events_url":"https://api.github.com/users/pierre-godard/received_events","type":"User","site_admin":false},"created_at":"2015-03-23T22:00:44Z","updated_at":"2015-03-23T22:00:44Z","body":"Monniot, je veux t'embêter encore ? Au final, ce serait plus simple si tu nous envoyait un deque avec tous les symboles (toutes lignes confondues ^^'')"}}