{"action":"opened","issue":{"url":"https://api.github.com/repos/paladin-t/my_basic/issues/8","repository_url":"https://api.github.com/repos/paladin-t/my_basic","labels_url":"https://api.github.com/repos/paladin-t/my_basic/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/paladin-t/my_basic/issues/8/comments","events_url":"https://api.github.com/repos/paladin-t/my_basic/issues/8/events","html_url":"https://github.com/paladin-t/my_basic/issues/8","id":197512449,"number":8,"title":"Porting to ESP8266 Arduino","user":{"login":"yukini3","id":16216053,"avatar_url":"https://avatars.githubusercontent.com/u/16216053?v=3","gravatar_id":"","url":"https://api.github.com/users/yukini3","html_url":"https://github.com/yukini3","followers_url":"https://api.github.com/users/yukini3/followers","following_url":"https://api.github.com/users/yukini3/following{/other_user}","gists_url":"https://api.github.com/users/yukini3/gists{/gist_id}","starred_url":"https://api.github.com/users/yukini3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yukini3/subscriptions","organizations_url":"https://api.github.com/users/yukini3/orgs","repos_url":"https://api.github.com/users/yukini3/repos","events_url":"https://api.github.com/users/yukini3/events{/privacy}","received_events_url":"https://api.github.com/users/yukini3/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-25T19:24:52Z","updated_at":"2016-12-25T19:24:52Z","closed_at":null,"body":"Hi,\r\nI'm porting my_basic to ESP8266 2.3.0 and Arduino 1.6.12. I found that there is an alignment error that causes system to hang. I guess pointer variables in structures must be aligned to dword. For example, the following structure, \"bool_t valid;\" is one byte so the following variables would be un-aligned and causes hang.\r\n\r\ntypedef struct mb_interpreter_t {\r\n    /** Fundamental */\r\n    bool_t valid;\r\n    void* userdata;\r\n    _ls_node_t* ast;\r\n\r\nSo I added three dummy \"bool_t\"s to align variables. Then it worked fine.\r\n\r\ntypedef struct mb_interpreter_t {\r\n    /** Fundamental */\r\n    bool_t valid;\r\n    bool_t dummy1;  \r\n    bool_t dummy2;  \r\n    bool_t dummy3;  \r\n    void* userdata;\r\n    _ls_node_t* ast;\r\n\r\nI think that it can be fixed by adding some compile switches to force align variables but I'm not familiar with those compiler switches. If you can address this issue and fix it for future release, that would be great.\r\n\r\nThanks!"}}
{"actor":{"display_login":"yukini3"}}