{"action":"created","issue":{"url":"https://api.github.com/repos/lxqt/lxqt-build-tools/issues/43","repository_url":"https://api.github.com/repos/lxqt/lxqt-build-tools","labels_url":"https://api.github.com/repos/lxqt/lxqt-build-tools/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/lxqt/lxqt-build-tools/issues/43/comments","events_url":"https://api.github.com/repos/lxqt/lxqt-build-tools/issues/43/events","html_url":"https://github.com/lxqt/lxqt-build-tools/pull/43","id":394629656,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQxMzI3NTE0","number":43,"title":"Remove link-time optimization for gcc since it breaks qobject_cast() in some cases.","user":{"login":"PCMan-Appier","id":45620368,"node_id":"MDQ6VXNlcjQ1NjIwMzY4","avatar_url":"https://avatars1.githubusercontent.com/u/45620368?v=4","gravatar_id":"","url":"https://api.github.com/users/PCMan-Appier","html_url":"https://github.com/PCMan-Appier","followers_url":"https://api.github.com/users/PCMan-Appier/followers","following_url":"https://api.github.com/users/PCMan-Appier/following{/other_user}","gists_url":"https://api.github.com/users/PCMan-Appier/gists{/gist_id}","starred_url":"https://api.github.com/users/PCMan-Appier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PCMan-Appier/subscriptions","organizations_url":"https://api.github.com/users/PCMan-Appier/orgs","repos_url":"https://api.github.com/users/PCMan-Appier/repos","events_url":"https://api.github.com/users/PCMan-Appier/events{/privacy}","received_events_url":"https://api.github.com/users/PCMan-Appier/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-12-28T12:46:53Z","updated_at":"2018-12-28T16:04:05Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/lxqt/lxqt-build-tools/pulls/43","html_url":"https://github.com/lxqt/lxqt-build-tools/pull/43","diff_url":"https://github.com/lxqt/lxqt-build-tools/pull/43.diff","patch_url":"https://github.com/lxqt/lxqt-build-tools/pull/43.patch"},"body":"I encountered crashes caused by Qt + gcc LTO in the latest ArchLinux.\r\n\r\n- Kernel: Linux arch-pc 4.19.9-arch1-1-ARCH #1 SMP PREEMPT Fri Dec 14 00:58:26 UTC 2018 x86_64 GNU/Linux\r\n- g++ (GCC) 8.2.1 20181127\r\n- qt5-base 5.12.0-1\r\n\r\nWhen turning on link-time optimization in g++, qobject_cast() will crash in some cases (in lxqt-panel for example).\r\nThe root cause is it generated wrong machine code, so the qobject_cast() referenced the wrong MetaObject. QObject::metaObject() should equal to &QObject::staticMetaObject, but it's not.\r\n\r\nTurning off LTO solved the problem."},"comment":{"url":"https://api.github.com/repos/lxqt/lxqt-build-tools/issues/comments/450382595","html_url":"https://github.com/lxqt/lxqt-build-tools/pull/43#issuecomment-450382595","issue_url":"https://api.github.com/repos/lxqt/lxqt-build-tools/issues/43","id":450382595,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MDM4MjU5NQ==","user":{"login":"PCMan","id":46543,"node_id":"MDQ6VXNlcjQ2NTQz","avatar_url":"https://avatars0.githubusercontent.com/u/46543?v=4","gravatar_id":"","url":"https://api.github.com/users/PCMan","html_url":"https://github.com/PCMan","followers_url":"https://api.github.com/users/PCMan/followers","following_url":"https://api.github.com/users/PCMan/following{/other_user}","gists_url":"https://api.github.com/users/PCMan/gists{/gist_id}","starred_url":"https://api.github.com/users/PCMan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PCMan/subscriptions","organizations_url":"https://api.github.com/users/PCMan/orgs","repos_url":"https://api.github.com/users/PCMan/repos","events_url":"https://api.github.com/users/PCMan/events{/privacy}","received_events_url":"https://api.github.com/users/PCMan/received_events","type":"User","site_admin":false},"created_at":"2018-12-28T16:04:05Z","updated_at":"2018-12-28T16:04:05Z","author_association":"MEMBER","body":"Then I merge this into master. It shouldn't break any things anyways."}}
{"actor":{"display_login":"PCMan"}}