{"action":"closed","issue":{"url":"https://api.github.com/repos/dtolnay/syn/issues/20","repository_url":"https://api.github.com/repos/dtolnay/syn","labels_url":"https://api.github.com/repos/dtolnay/syn/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/dtolnay/syn/issues/20/comments","events_url":"https://api.github.com/repos/dtolnay/syn/issues/20/events","html_url":"https://github.com/dtolnay/syn/issues/20","id":180403380,"number":20,"title":"Release build fails with SIGSEGV","user":{"login":"svend","id":306190,"avatar_url":"https://avatars.githubusercontent.com/u/306190?v=3","gravatar_id":"","url":"https://api.github.com/users/svend","html_url":"https://github.com/svend","followers_url":"https://api.github.com/users/svend/followers","following_url":"https://api.github.com/users/svend/following{/other_user}","gists_url":"https://api.github.com/users/svend/gists{/gist_id}","starred_url":"https://api.github.com/users/svend/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svend/subscriptions","organizations_url":"https://api.github.com/users/svend/orgs","repos_url":"https://api.github.com/users/svend/repos","events_url":"https://api.github.com/users/svend/events{/privacy}","received_events_url":"https://api.github.com/users/svend/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-09-30T21:12:20Z","updated_at":"2016-10-01T04:01:41Z","closed_at":"2016-10-01T04:01:41Z","body":"When building with the `cargo build --release`, the build fails with `(signal: 11, SIGSEGV: Invalid memory reference)`. Building with `cargo build` (no `--release` flag) works. Here is the full output, along with the rust version:\r\n\r\n```\r\nubuntu@host:~/syn$ git describe\r\n0.8.0\r\nubuntu@host:~/syn$ cargo build --release --verbose\r\n    Updating registry `https://github.com/rust-lang/crates.io-index`\r\n   Compiling quote v0.2.0\r\n     Running `rustc /home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/quote-0.2.0/src/lib.rs --crate-name quote --crate-type lib -C opt-level=3 -C metadata=9442466506b24325 -C extra-filename=-9442466506b24325 --out-dir /home/ubuntu/syn/target/release/deps --emit=dep-info,link -L dependency=/home/ubuntu/syn/target/release/deps --cap-lints allow`\r\n   Compiling syn v0.8.0 (file:///home/ubuntu/syn)\r\n     Running `rustc src/lib.rs --crate-name syn --crate-type lib -C opt-level=3 --cfg feature=\\\"default\\\" --cfg feature=\\\"printing\\\" --cfg feature=\\\"parsing\\\" --cfg feature=\\\"quote\\\" -C metadata=977935f812d0e598 --out-dir /home/ubuntu/syn/target/release/deps --emit=dep-info,link -L dependency=/home/ubuntu/syn/target/release/deps --extern quote=/home/ubuntu/syn/target/release/deps/libquote-9442466506b24325.rlib`\r\nerror: Could not compile `syn`.\r\n\r\nCaused by:\r\n  Process didn't exit successfully: `rustc src/lib.rs --crate-name syn --crate-type lib -C opt-level=3 --cfg feature=\"default\" --cfg feature=\"printing\" --cfg feature=\"parsing\" --cfg feature=\"quote\" -C metadata=977935f812d0e598 --out-dir /home/ubuntu/syn/target/release/deps --emit=dep-info,link -L dependency=/home/ubuntu/syn/target/release/deps --extern quote=/home/ubuntu/syn/target/release/deps/libquote-9442466506b24325.rlib` (signal: 11, SIGSEGV: Invalid memory reference)\r\nubuntu@host:~/syn$ rustc --version --verbose\r\nrustc 1.12.0 (3191fbae9 2016-09-23)\r\nbinary: rustc\r\ncommit-hash: 3191fbae9da539442351f883bdabcad0d72efcb6\r\ncommit-date: 2016-09-23\r\nhost: x86_64-unknown-linux-gnu\r\nrelease: 1.12.0\r\n```"}}
{"actor":{"display_login":"dtolnay"}}