{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/30178","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/30178/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/30178/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/30178/events","html_url":"https://github.com/rust-lang/rust/issues/30178","id":120060122,"number":30178,"title":"gcc's lto miscompiles jemalloc","user":{"login":"petevine","id":12054457,"avatar_url":"https://avatars.githubusercontent.com/u/12054457?v=3","gravatar_id":"","url":"https://api.github.com/users/petevine","html_url":"https://github.com/petevine","followers_url":"https://api.github.com/users/petevine/followers","following_url":"https://api.github.com/users/petevine/following{/other_user}","gists_url":"https://api.github.com/users/petevine/gists{/gist_id}","starred_url":"https://api.github.com/users/petevine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petevine/subscriptions","organizations_url":"https://api.github.com/users/petevine/orgs","repos_url":"https://api.github.com/users/petevine/repos","events_url":"https://api.github.com/users/petevine/events{/privacy}","received_events_url":"https://api.github.com/users/petevine/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-12-02T23:33:05Z","updated_at":"2015-12-29T14:27:58Z","closed_at":null,"body":"As an experiment I had `-flto` in my CFLAGS while building rustc which didn't cause any problems.\r\n(Dec 2 nightly, i686-linux, gcc 4.9.3, local llvm 3.6)\r\n\r\nIt seems the compiler is fully functional but still I'm getting segfaults like this (in other build commands too):\r\n\r\n````\r\n Compiling gl v0.0.12\r\nfailed to run custom build command for `gl v0.0.12`\r\nProcess didn't exit successfully: `/home/petevine/unpacked/rust-snake-master/target/release/build/gl-a90cb7fe89544061/build-script-build` (signal: 11)\r\n\r\nProgram received signal SIGSEGV, Segmentation fault.\r\n0x8007d629 in je_mallocx ()\r\n(gdb) bt\r\n#0  0x8007d629 in je_mallocx ()\r\n#1  0x800890f6 in __rust_allocate ()\r\n#2  0x00000000 in ?? ()\r\n````\r\n\r\nIf it's not a good idea to use lto flags at build-time, `configure` should definitely filter them out or at least warn the user.\r\n\r\n**EDIT:**\r\nThis issue is not about artifacts as it can be reproduced with empty `.cargo` and fresh project directories.\r\n"},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/167800467","html_url":"https://github.com/rust-lang/rust/issues/30178#issuecomment-167800467","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/30178","id":167800467,"user":{"login":"pnkfelix","id":173127,"avatar_url":"https://avatars.githubusercontent.com/u/173127?v=3","gravatar_id":"","url":"https://api.github.com/users/pnkfelix","html_url":"https://github.com/pnkfelix","followers_url":"https://api.github.com/users/pnkfelix/followers","following_url":"https://api.github.com/users/pnkfelix/following{/other_user}","gists_url":"https://api.github.com/users/pnkfelix/gists{/gist_id}","starred_url":"https://api.github.com/users/pnkfelix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pnkfelix/subscriptions","organizations_url":"https://api.github.com/users/pnkfelix/orgs","repos_url":"https://api.github.com/users/pnkfelix/repos","events_url":"https://api.github.com/users/pnkfelix/events{/privacy}","received_events_url":"https://api.github.com/users/pnkfelix/received_events","type":"User","site_admin":false},"created_at":"2015-12-29T14:27:58Z","updated_at":"2015-12-29T14:27:58Z","body":"I am just trying to understand your comments and infer why you would not run make check "}}