Comments (11)
Running ./x.py test --keep-stage 0 --target wasm32-unknown-unknown
uncover following test fails
failures:
---- [ui] ui/deprecated-macro_escape-inner.rs stdout ----
error: test run failed!
status: exit code: 101
command: "/usr/local/bin/node" "/Volumes/pepa-cloud/dev/rust/src/etc/wasm32-shim.js" "/Volumes/pepa-cloud/dev/rust/build/x86_64-apple-darwin/test/ui/deprecated-macro_escape-inner.stage2-wasm32-unknown-unknown.wasm"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
RuntimeError: unreachable
at <WASM UNNAMED> (<WASM>[50]+271)
at <WASM UNNAMED> (<WASM>[189]+76)
at Object.<anonymous> (/Volumes/pepa-cloud/dev/rust/src/etc/wasm32-shim.js:130:20)
at Module._compile (module.js:573:30)
at Object.Module._extensions..js (module.js:584:10)
at Module.load (module.js:507:32)
at tryModuleLoad (module.js:470:12)
at Function.Module._load (module.js:462:3)
at Function.Module.runMain (module.js:609:10)
at startup (bootstrap_node.js:158:16)
at bootstrap_node.js:598:3
------------------------------------------
thread '[ui] ui/deprecated-macro_escape-inner.rs' panicked at 'explicit panic', tools/compiletest/src/runtest.rs:2883:9
note: Run with `RUST_BACKTRACE=1` for a backtrace.
---- [ui] ui/deprecated-macro_escape.rs stdout ----
error: test run failed!
status: exit code: 101
command: "/usr/local/bin/node" "/Volumes/pepa-cloud/dev/rust/src/etc/wasm32-shim.js" "/Volumes/pepa-cloud/dev/rust/build/x86_64-apple-darwin/test/ui/deprecated-macro_escape.stage2-wasm32-unknown-unknown.wasm"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
RuntimeError: unreachable
at <WASM UNNAMED> (<WASM>[50]+271)
at <WASM UNNAMED> (<WASM>[189]+76)
at Object.<anonymous> (/Volumes/pepa-cloud/dev/rust/src/etc/wasm32-shim.js:130:20)
at Module._compile (module.js:573:30)
at Object.Module._extensions..js (module.js:584:10)
at Module.load (module.js:507:32)
at tryModuleLoad (module.js:470:12)
at Function.Module._load (module.js:462:3)
at Function.Module.runMain (module.js:609:10)
at startup (bootstrap_node.js:158:16)
at bootstrap_node.js:598:3
------------------------------------------
thread '[ui] ui/deprecated-macro_escape.rs' panicked at 'explicit panic', tools/compiletest/src/runtest.rs:2883:9
---- [ui] ui/deriving-meta-empty-trait-list.rs stdout ----
error: test run failed!
status: exit code: 101
command: "/usr/local/bin/node" "/Volumes/pepa-cloud/dev/rust/src/etc/wasm32-shim.js" "/Volumes/pepa-cloud/dev/rust/build/x86_64-apple-darwin/test/ui/deriving-meta-empty-trait-list.stage2-wasm32-unknown-unknown.wasm"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
RuntimeError: unreachable
at <WASM UNNAMED> (<WASM>[50]+271)
at <WASM UNNAMED> (<WASM>[189]+76)
at Object.<anonymous> (/Volumes/pepa-cloud/dev/rust/src/etc/wasm32-shim.js:130:20)
at Module._compile (module.js:573:30)
at Object.Module._extensions..js (module.js:584:10)
at Module.load (module.js:507:32)
at tryModuleLoad (module.js:470:12)
at Function.Module._load (module.js:462:3)
at Function.Module.runMain (module.js:609:10)
at startup (bootstrap_node.js:158:16)
at bootstrap_node.js:598:3
------------------------------------------
thread '[ui] ui/deriving-meta-empty-trait-list.rs' panicked at 'explicit panic', tools/compiletest/src/runtest.rs:2883:9
---- [ui] ui/enum-size-variance.rs stdout ----
error: test run failed!
status: exit code: 101
command: "/usr/local/bin/node" "/Volumes/pepa-cloud/dev/rust/src/etc/wasm32-shim.js" "/Volumes/pepa-cloud/dev/rust/build/x86_64-apple-darwin/test/ui/enum-size-variance.stage2-wasm32-unknown-unknown.wasm"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
RuntimeError: unreachable
at <WASM UNNAMED> (<WASM>[50]+271)
at <WASM UNNAMED> (<WASM>[189]+76)
at Object.<anonymous> (/Volumes/pepa-cloud/dev/rust/src/etc/wasm32-shim.js:130:20)
at Module._compile (module.js:573:30)
at Object.Module._extensions..js (module.js:584:10)
at Module.load (module.js:507:32)
at tryModuleLoad (module.js:470:12)
at Function.Module._load (module.js:462:3)
at Function.Module.runMain (module.js:609:10)
at startup (bootstrap_node.js:158:16)
at bootstrap_node.js:598:3
------------------------------------------
thread '[ui] ui/enum-size-variance.rs' panicked at 'explicit panic', tools/compiletest/src/runtest.rs:2883:9
---- [ui] ui/issue-19100.rs stdout ----
error: test run failed!
status: exit code: 101
command: "/usr/local/bin/node" "/Volumes/pepa-cloud/dev/rust/src/etc/wasm32-shim.js" "/Volumes/pepa-cloud/dev/rust/build/x86_64-apple-darwin/test/ui/issue-19100.stage2-wasm32-unknown-unknown.wasm"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
RuntimeError: unreachable
at <WASM UNNAMED> (<WASM>[50]+271)
at <WASM UNNAMED> (<WASM>[189]+76)
at Object.<anonymous> (/Volumes/pepa-cloud/dev/rust/src/etc/wasm32-shim.js:130:20)
at Module._compile (module.js:573:30)
at Object.Module._extensions..js (module.js:584:10)
at Module.load (module.js:507:32)
at tryModuleLoad (module.js:470:12)
at Function.Module._load (module.js:462:3)
at Function.Module.runMain (module.js:609:10)
at startup (bootstrap_node.js:158:16)
at bootstrap_node.js:598:3
------------------------------------------
thread '[ui] ui/issue-19100.rs' panicked at 'explicit panic', tools/compiletest/src/runtest.rs:2883:9
---- [ui] ui/issue-43806.rs stdout ----
error: test run failed!
status: exit code: 101
command: "/usr/local/bin/node" "/Volumes/pepa-cloud/dev/rust/src/etc/wasm32-shim.js" "/Volumes/pepa-cloud/dev/rust/build/x86_64-apple-darwin/test/ui/issue-43806.stage2-wasm32-unknown-unknown.wasm"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
RuntimeError: unreachable
at <WASM UNNAMED> (<WASM>[50]+271)
at <WASM UNNAMED> (<WASM>[189]+76)
at Object.<anonymous> (/Volumes/pepa-cloud/dev/rust/src/etc/wasm32-shim.js:130:20)
at Module._compile (module.js:573:30)
at Object.Module._extensions..js (module.js:584:10)
at Module.load (module.js:507:32)
at tryModuleLoad (module.js:470:12)
at Function.Module._load (module.js:462:3)
at Function.Module.runMain (module.js:609:10)
at startup (bootstrap_node.js:158:16)
at bootstrap_node.js:598:3
------------------------------------------
thread '[ui] ui/issue-43806.rs' panicked at 'explicit panic', tools/compiletest/src/runtest.rs:2883:9
---- [ui] ui/nll/borrow-use-issue-46875.rs stdout ----
error: test run failed!
status: exit code: 101
command: "/usr/local/bin/node" "/Volumes/pepa-cloud/dev/rust/src/etc/wasm32-shim.js" "/Volumes/pepa-cloud/dev/rust/build/x86_64-apple-darwin/test/ui/nll/borrow-use-issue-46875.stage2-wasm32-unknown-unknown.wasm"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
RuntimeError: unreachable
at <WASM UNNAMED> (<WASM>[49]+271)
at <WASM UNNAMED> (<WASM>[1]+145)
at Object.<anonymous> (/Volumes/pepa-cloud/dev/rust/src/etc/wasm32-shim.js:130:20)
at Module._compile (module.js:573:30)
at Object.Module._extensions..js (module.js:584:10)
at Module.load (module.js:507:32)
at tryModuleLoad (module.js:470:12)
at Function.Module._load (module.js:462:3)
at Function.Module.runMain (module.js:609:10)
at startup (bootstrap_node.js:158:16)
at bootstrap_node.js:598:3
------------------------------------------
thread '[ui] ui/nll/borrow-use-issue-46875.rs' panicked at 'explicit panic', tools/compiletest/src/runtest.rs:2883:9
---- [ui] ui/path-lookahead.rs stdout ----
error: test run failed!
status: exit code: 101
command: "/usr/local/bin/node" "/Volumes/pepa-cloud/dev/rust/src/etc/wasm32-shim.js" "/Volumes/pepa-cloud/dev/rust/build/x86_64-apple-darwin/test/ui/path-lookahead.stage2-wasm32-unknown-unknown.wasm"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
RuntimeError: unreachable
at <WASM UNNAMED> (<WASM>[50]+271)
at <WASM UNNAMED> (<WASM>[189]+76)
at Object.<anonymous> (/Volumes/pepa-cloud/dev/rust/src/etc/wasm32-shim.js:130:20)
at Module._compile (module.js:573:30)
at Object.Module._extensions..js (module.js:584:10)
at Module.load (module.js:507:32)
at tryModuleLoad (module.js:470:12)
at Function.Module._load (module.js:462:3)
at Function.Module.runMain (module.js:609:10)
at startup (bootstrap_node.js:158:16)
at bootstrap_node.js:598:3
------------------------------------------
thread '[ui] ui/path-lookahead.rs' panicked at 'explicit panic', tools/compiletest/src/runtest.rs:2883:9
---- [ui] ui/span/unused-warning-point-at-signature.rs stdout ----
error: test run failed!
status: exit code: 101
command: "/usr/local/bin/node" "/Volumes/pepa-cloud/dev/rust/src/etc/wasm32-shim.js" "/Volumes/pepa-cloud/dev/rust/build/x86_64-apple-darwin/test/ui/span/unused-warning-point-at-signature.stage2-wasm32-unknown-unknown.wasm"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
RuntimeError: unreachable
at <WASM UNNAMED> (<WASM>[50]+271)
at <WASM UNNAMED> (<WASM>[189]+76)
at Object.<anonymous> (/Volumes/pepa-cloud/dev/rust/src/etc/wasm32-shim.js:130:20)
at Module._compile (module.js:573:30)
at Object.Module._extensions..js (module.js:584:10)
at Module.load (module.js:507:32)
at tryModuleLoad (module.js:470:12)
at Function.Module._load (module.js:462:3)
at Function.Module.runMain (module.js:609:10)
at startup (bootstrap_node.js:158:16)
at bootstrap_node.js:598:3
------------------------------------------
thread '[ui] ui/span/unused-warning-point-at-signature.rs' panicked at 'explicit panic', tools/compiletest/src/runtest.rs:2883:9
---- [ui] ui/test-should-panic-attr.rs stdout ----
error: test run failed!
status: exit code: 101
command: "/usr/local/bin/node" "/Volumes/pepa-cloud/dev/rust/src/etc/wasm32-shim.js" "/Volumes/pepa-cloud/dev/rust/build/x86_64-apple-darwin/test/ui/test-should-panic-attr.stage2-wasm32-unknown-unknown.wasm"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
RuntimeError: unreachable
at <WASM UNNAMED> (<WASM>[257]+280)
at <WASM UNNAMED> (<WASM>[431]+76)
at Object.<anonymous> (/Volumes/pepa-cloud/dev/rust/src/etc/wasm32-shim.js:130:20)
at Module._compile (module.js:573:30)
at Object.Module._extensions..js (module.js:584:10)
at Module.load (module.js:507:32)
at tryModuleLoad (module.js:470:12)
at Function.Module._load (module.js:462:3)
at Function.Module.runMain (module.js:609:10)
at startup (bootstrap_node.js:158:16)
at bootstrap_node.js:598:3
------------------------------------------
thread '[ui] ui/test-should-panic-attr.rs' panicked at 'explicit panic', tools/compiletest/src/runtest.rs:2883:9
failures:
[ui] ui/deprecated-macro_escape-inner.rs
[ui] ui/deprecated-macro_escape.rs
[ui] ui/deriving-meta-empty-trait-list.rs
[ui] ui/enum-size-variance.rs
[ui] ui/issue-19100.rs
[ui] ui/issue-43806.rs
[ui] ui/nll/borrow-use-issue-46875.rs
[ui] ui/path-lookahead.rs
[ui] ui/span/unused-warning-point-at-signature.rs
[ui] ui/test-should-panic-attr.rs
test result: FAILED. 966 passed; 10 failed; 6 ignored; 0 measured; 0 filtered out
thread 'main' panicked at 'Some tests failed', tools/compiletest/src/main.rs:476:22
However, I'm exteremely not sure that I set up things well.
You can take a look at the change here
from wee_alloc.
I'm not sure what this means, but compiling stage1 with stage0 which uses wee_alloc
is running for too long (2hrs) on Compiling rustc_tsan v0.0.0 (.../rust/src/librustc_tsan)
. top reports that 1 core is utilized by 100%.
Can it be just so awfuly slow?
UPD:
CPU utilization is not constant 100% and memory consumption seems to be raising (although, very slowly, from 250 mb to 390 in 1hr)
from wee_alloc.
Did you build with debug info? I'd expect that to give function names rather than <WASM>[123]+456
.
I was imagining trying to bootstrap rustc with the unix version of wee_alloc
-- I'm unsure if rustc will bootstrap with dlmalloc
, or any other allocator, when targeting wasm.
from wee_alloc.
I was imagining trying to bootstrap rustc with the unix version of wee_alloc
Ahaha, I should have figure it out! Will try : )
Did you build with debug info? I'd expect that to give function names rather than [123]+456.
Nope, im even not sure how to do it. But yeah, AFAIK, debug info + latest node
should show mangled names on traps.
from wee_alloc.
I've never actually bootstrapped rustc myself, so I don't know what is a reasonably amount of time...
Maybe try a normal bootstrap and compare?
from wee_alloc.
Just asked aturon, and he said he expects something closer to half an hour...
Seems like we have some low hanging perf work to do!
from wee_alloc.
Yeah usualy it takea around 0.5 to get stage2 with default settings. In this case it takes more that two hours to compile single crate!
from wee_alloc.
(it still didnt complete yet)
from wee_alloc.
(it still didnt complete yet)
lol... this is what happens when there's been zero performance work yet...
from wee_alloc.
Aaaaaaand it's done! Sort of
error: Could not compile `core`.
Caused by:
process didn't exit successfully: `/Volumes/pepa-cloud/dev/rust/build/bootstrap/debug/rustc --crate-name core libcore/lib.rs --error-format json --crate-type lib --emit=dep-info,link -C opt-level=2 -C metadata=807363e85b1c090e -C extra-filename=-807363e85b1c090e --out-dir /Volumes/pepa-cloud/dev/rust/build/x86_64-apple-darwin/stage1-std/x86_64-apple-darwin/release/deps --target x86_64-apple-darwin -L dependency=/Volumes/pepa-cloud/dev/rust/build/x86_64-apple-darwin/stage1-std/x86_64-apple-darwin/release/deps -L dependency=/Volumes/pepa-cloud/dev/rust/build/x86_64-apple-darwin/stage1-std/release/deps` (signal: 4, SIGILL: illegal instruction)
thread 'main' panicked at 'command did not execute successfully: "/Volumes/pepa-cloud/dev/rust/build/x86_64-apple-darwin/stage0/bin/cargo" "build" "--target" "x86_64-apple-darwin" "-j" "8" "--release" "--features" "panic-unwind jemalloc backtrace" "--manifest-path" "/Volumes/pepa-cloud/dev/rust/src/libstd/Cargo.toml" "--message-format" "json"
expected success, got: exit code: 101', bootstrap/compile.rs:1061:9
note: Run with `RUST_BACKTRACE=1` for a backtrace.
failed to run: /Volumes/pepa-cloud/dev/rust/build/bootstrap/debug/bootstrap build
Build completed unsuccessfully in 4:53:19
(and yes, it turns out it stucked on core
crate and not on rustc_tsan
as I initially thought)
from wee_alloc.
Looks like we have some work cut out for us :)
from wee_alloc.
Related Issues (20)
- Impossibly large allocations fails but still allocates new memory pages
- Cloudflare Worker response bodies being mangled when using wee_alloc HOT 1
- Update outdated usage instruction regarding "extern crate"
- WASM Module HOT 1
- Possible allocator memory corruption? HOT 1
- Unbounded Memory Leak HOT 8
- Is this repo still maintained? HOT 8
- This repo needs to be archived and marked as deprecated HOT 4
- Binary size larger than advertized HOT 4
- free_cell_layout test fails on macOS HOT 1
- CI doesn't check configuration w/o size_classes
- CI should be running tests HOT 6
- Panicky wasm from Vec allocation HOT 2
- Release new version to crates.io HOT 1
- Add git tag for 0.4.3 HOT 1
- Storage at arbitrary address HOT 2
- wee_alloc leaks memory HOT 5
- Allow heap to start not at a page boundary HOT 2
- Shell scripts of repo not working due to wee_alloc compilation errors HOT 5
- Implement more efficient grow/shrink/realloc methods
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wee_alloc.