{"action":"created","issue":{"url":"https://api.github.com/repos/nikomatsakis/lalrpop/issues/127","repository_url":"https://api.github.com/repos/nikomatsakis/lalrpop","labels_url":"https://api.github.com/repos/nikomatsakis/lalrpop/issues/127/labels{/name}","comments_url":"https://api.github.com/repos/nikomatsakis/lalrpop/issues/127/comments","events_url":"https://api.github.com/repos/nikomatsakis/lalrpop/issues/127/events","html_url":"https://github.com/nikomatsakis/lalrpop/issues/127","id":169781383,"number":127,"title":"Excessive memory use crashing build process","user":{"login":"stensonowen","id":8702023,"avatar_url":"https://avatars.githubusercontent.com/u/8702023?v=3","gravatar_id":"","url":"https://api.github.com/users/stensonowen","html_url":"https://github.com/stensonowen","followers_url":"https://api.github.com/users/stensonowen/followers","following_url":"https://api.github.com/users/stensonowen/following{/other_user}","gists_url":"https://api.github.com/users/stensonowen/gists{/gist_id}","starred_url":"https://api.github.com/users/stensonowen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stensonowen/subscriptions","organizations_url":"https://api.github.com/users/stensonowen/orgs","repos_url":"https://api.github.com/users/stensonowen/repos","events_url":"https://api.github.com/users/stensonowen/events{/privacy}","received_events_url":"https://api.github.com/users/stensonowen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nikomatsakis/lalrpop/labels/bug","name":"bug","color":"eb6420"},{"url":"https://api.github.com/repos/nikomatsakis/lalrpop/labels/urgent","name":"urgent","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/nikomatsakis/lalrpop/milestones/1","html_url":"https://github.com/nikomatsakis/lalrpop/milestones/1.0","labels_url":"https://api.github.com/repos/nikomatsakis/lalrpop/milestones/1/labels","id":1395339,"number":1,"title":"1.0","description":"It's time for LALRPOP to hit 1.0. What needs to be done?","creator":{"login":"nikomatsakis","id":155238,"avatar_url":"https://avatars.githubusercontent.com/u/155238?v=3","gravatar_id":"","url":"https://api.github.com/users/nikomatsakis","html_url":"https://github.com/nikomatsakis","followers_url":"https://api.github.com/users/nikomatsakis/followers","following_url":"https://api.github.com/users/nikomatsakis/following{/other_user}","gists_url":"https://api.github.com/users/nikomatsakis/gists{/gist_id}","starred_url":"https://api.github.com/users/nikomatsakis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikomatsakis/subscriptions","organizations_url":"https://api.github.com/users/nikomatsakis/orgs","repos_url":"https://api.github.com/users/nikomatsakis/repos","events_url":"https://api.github.com/users/nikomatsakis/events{/privacy}","received_events_url":"https://api.github.com/users/nikomatsakis/received_events","type":"User","site_admin":false},"open_issues":10,"closed_issues":3,"state":"open","created_at":"2015-11-05T10:09:36Z","updated_at":"2016-08-07T10:12:09Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2016-08-07T05:38:47Z","updated_at":"2016-08-08T09:29:46Z","closed_at":null,"body":"I've run into an issue where a grammar that I'm confident is valid cannot be built. The grammar \r\n```\r\ngrammar;\r\npub Email  = r\"\\w+@\\w+\\.\\w{2,}\";\r\npub Secret = r\"[0-9a-fA-F]{32}\";\r\n```\r\nresults in a memory usage error. It crashed with `fatal runtime error: out of memory`. The grammar isn't ambiguous. I raised the memory allocation for the vagrant box I was using to test (trying to compile on my host crashed it) from 3GB to 4, and ran it again. Building consumes all 4GB of ram and most of swap before throwing either the previous error or `error: could not exec the linker `cc`: Cannot allocate memory (os error 12)`.\r\nPrepending \"_\" to a terminal so that they no longer have intersecting FIRST sets fixes the issue, but that shouldn't be an issue, right?\r\nRunning with `--verbose` yields \r\n```\r\nCompiling lalr_test v0.1.0 (file:///home/vagrant/lalr_test)\r\n     Running `/home/vagrant/lalr_test/target/debug/build/lalr_test-f35b37e39044c03b/build-script-build`\r\n     Running `rustc src/main.rs --crate-name lalr_test --crate-type bin -g --out-dir /home/vagrant/lalr_test/target/debug --emit=dep-info,link -L dependency=/home/vagrant/lalr_test/target/debug -L dependency=/home/vagrant/lalr_test/target/debug/deps --extern lalrpop_util=/home/vagrant/lalr_test/target/debug/deps/liblalrpop_util-d1f31dd532b4d3cb.rlib`\r\nfatal runtime error: out of memory\r\nerror: Could not compile `lalr_test`.\r\n\r\nCaused by:\r\n  Process didn't exit successfully: `rustc src/main.rs --crate-name lalr_test --crate-type bin -g --out-dir /home/vagrant/lalr_test/target/debug --emit=dep-info,link -L dependency=/home/vagrant/lalr_test/target/debug -L dependency=/home/vagrant/lalr_test/target/debug/deps --extern lalrpop_util=/home/vagrant/lalr_test/target/debug/deps/liblalrpop_util-d1f31dd532b4d3cb.rlib` (exit code: 1)\r\n```\r\nVersion info:\r\nrustc: `rustc 1.10.0 (cfcb716cf 2016-07-03)`\r\ncargo: `cargo 0.11.0-nightly (259324c 2016-05-20)`\r\nThis happens with rust stable and beta.\r\n\r\nIt seems like it might be related to Issue #32, but I don't know enough about what goes on under the hood to diagnose it. "},"comment":{"url":"https://api.github.com/repos/nikomatsakis/lalrpop/issues/comments/238186256","html_url":"https://github.com/nikomatsakis/lalrpop/issues/127#issuecomment-238186256","issue_url":"https://api.github.com/repos/nikomatsakis/lalrpop/issues/127","id":238186256,"user":{"login":"stensonowen","id":8702023,"avatar_url":"https://avatars.githubusercontent.com/u/8702023?v=3","gravatar_id":"","url":"https://api.github.com/users/stensonowen","html_url":"https://github.com/stensonowen","followers_url":"https://api.github.com/users/stensonowen/followers","following_url":"https://api.github.com/users/stensonowen/following{/other_user}","gists_url":"https://api.github.com/users/stensonowen/gists{/gist_id}","starred_url":"https://api.github.com/users/stensonowen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stensonowen/subscriptions","organizations_url":"https://api.github.com/users/stensonowen/orgs","repos_url":"https://api.github.com/users/stensonowen/repos","events_url":"https://api.github.com/users/stensonowen/events{/privacy}","received_events_url":"https://api.github.com/users/stensonowen/received_events","type":"User","site_admin":false},"created_at":"2016-08-08T09:29:46Z","updated_at":"2016-08-08T09:29:46Z","body":"I initially had the problem using `lalrpop = \"0.11.0\"`, and the vagrant test box uses `lalrpop = \"0.12.0\"` (and the same version for `lalrpop-util` in both cases).\r\n\r\nCan you be more specific as to what I should be looking for in `Cargo.lock`? \r\nThe overview of dependencies:\r\n```\r\n[root]\r\nname = \"lalr_test\"\r\nversion = \"0.1.0\"\r\ndependencies = [\r\n \"lalrpop 0.12.0 (registry+https://github.com/rust-lang/crates.io-index)\",\r\n \"lalrpop-util 0.12.0 (registry+https://github.com/rust-lang/crates.io-index)\",\r\n]\r\n```\r\nThe lalrpop entry:\r\n```\r\n[[package]]\r\nname = \"lalrpop\"\r\nversion = \"0.12.0\"\r\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\r\ndependencies = [\r\n \"atty 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)\",\r\n \"bit-set 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)\",\r\n \"bitflags 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)\",\r\n \"diff 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)\",\r\n \"docopt 0.6.82 (registry+https://github.com/rust-lang/crates.io-index)\",\r\n \"itertools 0.3.25 (registry+https://github.com/rust-lang/crates.io-index)\",\r\n \"lalrpop-intern 0.12.0 (registry+https://github.com/rust-lang/crates.io-index)\",\r\n \"lalrpop-snap 0.12.0 (registry+https://github.com/rust-lang/crates.io-index)\",\r\n \"lalrpop-util 0.12.0 (registry+https://github.com/rust-lang/crates.io-index)\",\r\n \"petgraph 0.1.18 (registry+https://github.com/rust-lang/crates.io-index)\",\r\n \"regex 0.1.73 (registry+https://github.com/rust-lang/crates.io-index)\",\r\n \"regex-syntax 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)\",\r\n \"rustc-serialize 0.3.19 (registry+https://github.com/rust-lang/crates.io-index)\",\r\n \"term 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)\",\r\n \"unicode-xid 0.0.2 (registry+https://github.com/rust-lang/crates.io-index)\",\r\n]\r\n```\r\nThe \"metadata\" section:\r\n```\r\n\"checksum lalrpop 0.12.0 (registry+https://github.com/rust-lang/crates.io-index)\" = \"ff7b1575ca8cc268def5a19fd73cea4849a56d2ade819bfe13b8eb78f8a85191\"\r\n\"checksum lalrpop-intern 0.12.0 (registry+https://github.com/rust-lang/crates.io-index)\" = \"8acc7d538f0d74e035719d2b46dd34abf919e21f69d9eacd3d33d8bb91b4be91\"\r\n\"checksum lalrpop-snap 0.12.0 (registry+https://github.com/rust-lang/crates.io-index)\" = \"40d7ede4572f90583b0bb05af8aec2dad705f865fcecf479b8ebe959b46f8435\"\r\n\"checksum lalrpop-util 0.12.0 (registry+https://github.com/rust-lang/crates.io-index)\" = \"b2af45efc901171e23793f5edb55294dfab4fe1dc70d9df9450cb8f233ffea1f\"\r\n```\r\nIs there something specific I should be looking for?"}}
{"actor":{"display_login":"stensonowen"}}