[Bug 257419] lang/rust: panic on armv7 at 'capacity overflow', library/alloc/src/raw_vec.rs:546:5
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257419 Jan Beich changed: What|Removed |Added CC|jbe...@freebsd.org |ge...@freebsd.org Assignee|ge...@freebsd.org |r...@freebsd.org Flags|maintainer-feedback?(gecko@ |maintainer-feedback+, |FreeBSD.org), |maintainer-feedback+ |maintainer-feedback?(jbeich | |@FreeBSD.org) | Summary|devel/rust-cbindgen: Fails |lang/rust: panic on armv7 |to build on armv7: thread |at 'capacity overflow', |'rustc' panicked at |library/alloc/src/raw_vec.r |'capacity overflow',|s:546:5 |library/alloc/src/raw_vec.r | |s:546:5 | --- Comment #4 from Jan Beich --- Same panic in 2 ports. For more details: - Build lang/rust WITH_DEBUG=1 then run with RUST_BACKTRACE=full to get readable stacktrace - Test all lang/rust consumers (150 according to freshports) in order to identify other affected ports Over to rust@ as debugging is hard due to bug 221185. armv7 is missing on https://www.freebsd.org/internal/machines/ and uses qemu-user-static (QEMU_EMULATING in poudriere log) on https://pkg-status.freebsd.org/ while riscv64 is not supported by lang/rust yet. -- You are receiving this mail because: You are on the CC list for the bug. You are the assignee for the bug.
[Bug 257419] lang/rust: panic on armv7 at 'capacity overflow', library/alloc/src/raw_vec.rs:546:5
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257419 Mikael Urankar changed: What|Removed |Added CC||mik...@freebsd.org --- Comment #5 from Mikael Urankar --- rust-1.51.0 is not affected rust-1.52.0 is affected, maybe it's due to the llvm12 upgrade -- You are receiving this mail because: You are on the CC list for the bug.
[Bug 257419] lang/rust: panic on armv7 at 'capacity overflow', library/alloc/src/raw_vec.rs:546:5
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257419 --- Comment #6 from Robert Clausecker --- (In reply to Jan Beich from comment #4) > - Build lang/rust WITH_DEBUG=1 then run with RUST_BACKTRACE=full to get > readable stacktrace Can do that, but it'll take me a while to get to that point. A full rust build takes a lot of time and at the same time, the machine in question is currently busy building all quarterly packages so I can feed updates to my remaining armv7 machines. > - Test all lang/rust consumers (150 according to freshports) in order to > identify other affected ports Can you attach a list of all rust consumers to this issue so I can feed them to Poudriere? Alternatively, tell me how to generate such a list. Due to the nature of this failure condition, systematically testing for it requires some hand holding as the log file explosion causes Poudriere to spend a potentially unbounded time just grepping the log files for standard error sources, regardless of how high I set the runaway timeout. > armv7 is missing on https://www.freebsd.org/internal/machines/ and uses > qemu-user-static (QEMU_EMULATING in poudriere log) on > https://pkg-status.freebsd.org/ while riscv64 is not supported by lang/rust > yet. It is possible to build armv7 ports on arm64 machines in an armv7 jail. In fact, I use just this mechanism to build the armv7 packages. -- You are receiving this mail because: You are on the CC list for the bug.
[Bug 257419] lang/rust: panic on armv7 at 'capacity overflow', library/alloc/src/raw_vec.rs:546:5
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257419 Robert Clausecker changed: What|Removed |Added Attachment #226730|text/x-log |text/plain mime type|| --- Comment #7 from Robert Clausecker --- Created attachment 226730 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=226730&action=edit sysutils/potnet 0.4.4_13 armv7 build log sysutils/potnet is affected, too. See attached log. -- You are receiving this mail because: You are on the CC list for the bug.
[Bug 257419] lang/rust: panic on armv7 at 'capacity overflow', library/alloc/src/raw_vec.rs:546:5
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257419 Robert Clausecker changed: What|Removed |Added Attachment #226735|text/x-log |text/plain mime type|| --- Comment #8 from Robert Clausecker --- Created attachment 226735 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=226735&action=edit net-im/libsignal-client 0.8.2 armv7 build log net-im/libsignal-client is another case. -- You are receiving this mail because: You are on the CC list for the bug.
[Bug 257419] lang/rust: panic on armv7 at 'capacity overflow', library/alloc/src/raw_vec.rs:546:5
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257419 Robert Clausecker changed: What|Removed |Added Attachment #226957|text/x-log |text/plain mime type|| --- Comment #9 from Robert Clausecker --- Created attachment 226957 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=226957&action=edit security/sequoia-0.19.0_7 build log on armv7 FreeBSD 13.0 Also affects security/sequoia. -- You are receiving this mail because: You are on the CC list for the bug.
[Bug 257419] lang/rust: panic on armv7 at 'capacity overflow', library/alloc/src/raw_vec.rs:546:5
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257419 --- Comment #10 from Robert Clausecker --- Also happens on the main branch with rust-cbindgen-0.20.0. Unfortunately I didn't manage to keep the logs. -- You are receiving this mail because: You are on the CC list for the bug.
[Bug 257419] lang/rust: panic on armv7 at 'capacity overflow', library/alloc/src/raw_vec.rs:546:5
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257419 Robert Clausecker changed: What|Removed |Added Attachment #227005|text/x-log |text/plain mime type|| --- Comment #11 from Robert Clausecker --- Created attachment 227005 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=227005&action=edit editors/xi-core-0.3.0_15 build log on armv7 editors/xi-core is affected, too. -- You are receiving this mail because: You are on the CC list for the bug.
[Bug 257419] lang/rust: panic on armv7 at 'capacity overflow', library/alloc/src/raw_vec.rs:546:5
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257419 Robert Clausecker changed: What|Removed |Added Attachment #227026|text/x-log |text/plain mime type|| --- Comment #12 from Robert Clausecker --- Created attachment 227026 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=227026&action=edit x11-wm/leftwm-0.2.7.40_1 build log on armv7 Also affects x11-wm/leftwm. -- You are receiving this mail because: You are on the CC list for the bug.
[Bug 257419] lang/rust: panic on armv7 at 'capacity overflow', library/alloc/src/raw_vec.rs:546:5
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257419 Robert Clausecker changed: What|Removed |Added Attachment #227039|text/x-log |text/plain mime type|| --- Comment #13 from Robert Clausecker --- Created attachment 227039 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=227039&action=edit security/vaultwarden-1.21.0_3 build log on armv7 Also affects security/vaultwarden. -- You are receiving this mail because: You are on the CC list for the bug.
[Bug 257419] lang/rust: panic on armv7 at 'capacity overflow', library/alloc/src/raw_vec.rs:546:5
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257419 Robert Clausecker changed: What|Removed |Added Attachment #227050|text/x-log |text/plain mime type|| --- Comment #14 from Robert Clausecker --- Created attachment 227050 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=227050&action=edit x11/alacritty-0.8.0_1 build log on amdv7 Also affects x11/alacritty. -- You are receiving this mail because: You are on the CC list for the bug.
[Bug 257419] lang/rust: panic on armv7 at 'capacity overflow', library/alloc/src/raw_vec.rs:546:5
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257419 --- Comment #15 from Mikael Urankar --- No need to mention the failing ports, we are aware of the issue. -- You are receiving this mail because: You are on the CC list for the bug.
[Bug 257419] lang/rust: panic on armv7 at 'capacity overflow', library/alloc/src/raw_vec.rs:546:5
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257419 --- Comment #16 from Robert Clausecker --- (In reply to Mikael Urankar from comment #15) It was specifically requested that I identify all affected ports (see comment #4). I can stop if that's no longer needed. -- You are receiving this mail because: You are on the CC list for the bug.
[Bug 257419] lang/rust: panic on armv7 at 'capacity overflow', library/alloc/src/raw_vec.rs:546:5
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257419 --- Comment #17 from Robert Clausecker --- Also affected: gifski-1.4.3_2 git-absorb-0.5.0_23 -- You are receiving this mail because: You are on the CC list for the bug.
[Bug 257419] lang/rust: panic on armv7 at 'capacity overflow', library/alloc/src/raw_vec.rs:546:5
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257419 --- Comment #18 from Robert Clausecker --- (In reply to Jan Beich from comment #4) I have now identified all ports for which this issue occurs (on branch 2021Q3). These are: audio/spotify-tui devel/cargo-c devel/cargo-generate devel/git-absorb devel/git-delta devel/grcov devel/rust-analyzer devel/rust-cbindgen devel/sentry-cli devel/tokei editors/parinfer-rust editors/xi-core finance/tickrs games/abstreet games/dose-response graphics/gifski graphics/viu java/icedtea-web lang/gleam multimedia/scte35dump net/proby net/rabbiteer net-im/libsignal-client net-mgmt/bandwhich net-mgmt/nfs-exporter shells/ion security/acmed security/cloak security/rustscan security/sequoia security/solana security/vaultwarden sysutils/diskonaut sysutils/flowgger sysutils/fselect sysutils/mcfly sysutils/onefetch sysutils/jail_exporter sysutils/potnet sysutils/rsfetch sysutils/tealdeer sysutils/vector textproc/angle-grinder textproc/mdbook textproc/sd x11/alacritty x11-wm/leftwm www/deno www/ffsend www/geckodriver www/lychee www/websocat www/xh www/zola0 x11/wezterm -- You are receiving this mail because: You are on the CC list for the bug.
[Bug 257419] lang/rust: panic on armv7 at 'capacity overflow', library/alloc/src/raw_vec.rs:546:5
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257419 Mark Millard changed: What|Removed |Added CC||marklmi26-f...@yahoo.com --- Comment #19 from Mark Millard --- (In reply to Robert Clausecker from comment #8) I've seen this under main [so: 14] in a poudriere bulk -a attempt on aarch64 targetting armv7, so far rust-cbindgen cargo-c potnet and libsignal-client but also: textproc/mdbook . It is not limited to FreeBSD 13.0 . -- You are receiving this mail because: You are on the CC list for the bug.
[Bug 257419] lang/rust: panic on armv7 at 'capacity overflow', library/alloc/src/raw_vec.rs:546:5
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257419 --- Comment #20 from Mark Millard --- (In reply to Mark Millard from comment #19) For reference: # poudriere jail -i -jmain-CA7 Jail name: main-CA7 Jail version: 14.0-CURRENT Jail arch: arm.armv7 Jail method: null Jail mount:/usr/obj/DESTDIRs/main-CA7-poud Jail fs: Jail updated: 2021-06-27 17:58:33 Jail pkgbase: disabled -- You are receiving this mail because: You are on the CC list for the bug.
[Bug 257419] lang/rust: panic on armv7 at 'capacity overflow', library/alloc/src/raw_vec.rs:546:5
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257419 --- Comment #21 from Mark Millard --- (In reply to Jan Beich from comment #4) So far every example that I've seen in the ongpoing bulk -a I've got in process is doing (via an example: cargo-c): | `-- /usr/bin/make -C /usr/ports/devel/cargo-c build | `-- /usr/local/bin/cargo build --manifest-path /wrkdirs/usr/ports/devel/cargo-c/work/cargo-c-0.9.2+cargo-0.55/C | `-- /usr/local/bin/rustc --crate-name im_rc --edition=2018 There can be multiple cargo subprocess instead of just one /usr/local/bin/rustc . The process getting the huge CPU time is the one running /usr/local/bin/cargo . For example: 342:31.37 /usr/local/bin/cargo . . . 33:21.39 /usr/local/bin/rustc . . . Given the (effectively unbounded?) number of messages about pthread_peekjoin_np that seem to be accumulating in the log files, the problem may be tied to cargo vs. its subprocesses. -- You are receiving this mail because: You are on the CC list for the bug.
[Bug 257419] lang/rust: panic on armv7 at 'capacity overflow', library/alloc/src/raw_vec.rs:546:5
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257419 --- Comment #22 from Mikael Urankar --- Can someone try with rust 1.55.0 please? https://reviews.freebsd.org/D31872 -- You are receiving this mail because: You are on the CC list for the bug.
[Bug 257419] lang/rust: panic on armv7 at 'capacity overflow', library/alloc/src/raw_vec.rs:546:5
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257419 --- Comment #23 from Mark Millard --- (In reply to Mark Millard from comment #21) The ongoing bulk -a has had an example that instead involved: /usr/local/bin/cargo test (not build). -- You are receiving this mail because: You are on the CC list for the bug.
[Bug 257419] lang/rust: panic on armv7 at 'capacity overflow', library/alloc/src/raw_vec.rs:546:5
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257419 --- Comment #24 from Mark Millard --- (In reply to Robert Clausecker from comment #18) So far the ongoing bulk -a has also had the problem for: ncspot-0.6.0_3 ripgrep-all-0.9.6_1 -- You are receiving this mail because: You are on the CC list for the bug.
[Bug 257419] lang/rust: panic on armv7 at 'capacity overflow', library/alloc/src/raw_vec.rs:546:5
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257419 --- Comment #25 from Mikael Urankar --- (In reply to Mark Millard from comment #24) can you try with the following bootstrap (rebuild lang/rust): http://mikael.urankar.free.fr/rust-std-1.54.0-armv7-unknown-freebsd.tar.xz http://mikael.urankar.free.fr/cargo-1.54.0-armv7-unknown-freebsd.tar.xz http://mikael.urankar.free.fr/rustc-1.54.0-armv7-unknown-freebsd.tar.xz You'll have to update lang/rust/distinfo SHA256 (cargo-1.54.0-armv7-unknown-freebsd.tar.xz) = b0d89e13cc35a943ba3da5de5247d97d6b3dac0abcd331736bc9176e413e8eee SHA256 (rust-std-1.54.0-armv7-unknown-freebsd.tar.xz) = bc80b15a9ba60c66250d1b31fb610941205b3a2d2787021a5bdb96e667b28d45 SHA256 (rustc-1.54.0-armv7-unknown-freebsd.tar.xz) = 3927fc48020b3b94bdbaf160720664b4a6cdeb6f96b3415d7026326873e20368 -- You are receiving this mail because: You are on the CC list for the bug.
[Bug 257419] lang/rust: panic on armv7 at 'capacity overflow', library/alloc/src/raw_vec.rs:546:5
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257419 --- Comment #26 from Mark Millard --- (In reply to Mark Millard from comment #184) My test bulk -a completed in somewhat under 87.25 hours, building 26995 ports successfully. Here is a more complete list of differences, going in both directions. Ones bulk -a of my ports tree got the problem in: librespot-0.2.0_5 ncspot-0.6.0_3 openethereum-3.2.6_2.log ripgrep-all-0.9.6_1 spotifyd-0.3.0_5 But the following built to completion without a huge log file: gifski-1.5.0_1 This may suggest that some sort of race condition is involved. The following failed for other reasons: alacritty-0.9.0_1 The log reports: memory allocation of 1879048192 bytes failed error: could not compile `smithay-client-toolkit` Caused by: process didn't exit successfully: `CARGO=/usr/local/bin/cargo CARGO_CRATE_NAME=smithay_client_toolkit CARGO_MANIFEST_DIR=/wrkdirs/usr/ports/x11/alacritty/work/alacritty-0.9.0/cargo-crates/smithay-client-toolkit-0.14.0 CARGO_PKG_AUTHORS='Victor Berger ' CARGO_PKG_DESCRIPTION='Toolkit for making client wayland applications.' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE=MIT CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=smithay-client-toolkit CARGO_PKG_REPOSITORY='https://github.com/smithay/client-toolkit' CARGO_PKG_VERSION=0.14.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=14 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/wrkdirs/usr/ports/x11/alacritty/work/target/release/deps:/usr/local/lib' /usr/local/bin/rustc --crate-name smithay_client_toolkit --edition=2018 /wrkdirs/usr/ports/x11/alacritty/work/alacritty-0.9.0/cargo-crates/smithay-client-toolkit-0.14.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C linker-plugin-lto -C debuginfo=1 -C metadata=a5c00debf47fe1dc -C extra-filename=-a5c00debf47fe1dc --out-dir /wrkdirs/usr/ports/x11/alacritty/work/target/release/deps -L dependency=/wrkdirs/usr/ports/x11/alacritty/work/target/release/deps --extern bitflags=/wrkdirs/usr/ports/x11/alacritty/work/target/release/deps/libbitflags-97fcf63a98d67f7d.rmeta --extern dlib=/wrkdirs/usr/ports/x11/alacritty/work/target/release/deps/libdlib-58bd5533d8e2f399.rmeta --extern lazy_static=/wrkdirs/usr/ports/x11/alacritty/work/target/release/deps/liblazy_static-262b437c84c2b97f.rmeta --extern log=/wrkdirs/usr/ports/x11/alacritty/work/target/release/deps/liblog-7978d3bf9bb63659.rmeta --extern memmap2=/wrkdirs/usr/ports/x11/alacritty/work/target/release/deps/libmemmap2-89036ac41b83b1e3.rmeta --extern nix=/wrkdirs/usr/ports/x11/alacritty/work/target/release/deps/libnix-92fa465df208e236.rmeta --extern wayland_client=/wrkdirs/usr/ports/x11/alacritty/work/target/release/deps/libwayland_client-14e61e0514099b56.rmeta --extern wayland_cursor=/wrkdirs/usr/ports/x11/alacritty/work/target/release/deps/libwayland_cursor-c84b26efb1b8c9ce.rmeta --extern wayland_protocols=/wrkdirs/usr/ports/x11/alacritty/work/target/release/deps/libwayland_protocols-7f484596d8de4b38.rmeta --cap-lints warn -C target-cpu=cortex-a7 -C linker=cc -C link-arg=-fstack-protector-strong -C link-arg=-L/usr/local/lib` (signal: 6, SIGABRT: process abort signal) *** Error code 101 Finally, the following was not attemped at all: wezterm This was because of: Skipping x11/wezterm | wezterm-20210814.124438.54.e29167_4: Dependent port textproc/mdbook | mdbook-0.4.12_1 build -- You are receiving this mail because: You are on the CC list for the bug.
[Bug 257419] lang/rust: panic on armv7 at 'capacity overflow', library/alloc/src/raw_vec.rs:546:5
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257419 --- Comment #27 from Mark Millard --- (In reply to Mark Millard from comment #26) My prior note (26) should have said: (In reply to Robert Clausecker from comment #18) -- You are receiving this mail because: You are on the CC list for the bug.
[Bug 257419] lang/rust: panic on armv7 at 'capacity overflow', library/alloc/src/raw_vec.rs:546:5
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257419 --- Comment #28 from Mark Millard --- (In reply to Mikael Urankar from comment #25) I'd take a stab at it but everything else is based on *-1.53.0-*-unknown-freebsd.tar.xz in the distinfo for what my bulk -a was based on. (1.54 uses 1.53 bootstrap and ports is still at 1.54 building based on 1.53, not 1.55 building basead on 1.54.) So the result appears to involve mixed verions. Did you intended for this to be based on: https://reviews.freebsd.org/D31872 ? If so, may be you should be more explicit about the full set of steps you are after so I do not guess wrong. -- You are receiving this mail because: You are on the CC list for the bug.
[Bug 257419] lang/rust: panic on armv7 at 'capacity overflow', library/alloc/src/raw_vec.rs:546:5
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257419 --- Comment #29 from Mikael Urankar --- (In reply to Mark Millard from comment #28 Yes, based on rust 1.55.0 -- You are receiving this mail because: You are on the CC list for the bug.
[Bug 257419] lang/rust: panic on armv7 at 'capacity overflow', library/alloc/src/raw_vec.rs:546:5
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257419 --- Comment #30 from Mark Millard --- (In reply to Mikael Urankar from comment #25) I applied the patch from https://reviews.freebsd.org/D31872 then had the port fetch. Then I substituted in to: /usr/ports/distfiles/rust/2021-07-29/ the 3 files from your area. Finally I substitued into /usr/ports/lang/rust/distinfo (note the rust/2021-07-29/ prefixes in the SHA256 line's relative paths and the updated sizes): SHA256 (rust/2021-07-29/rustc-1.54.0-armv7-unknown-freebsd.tar.xz) = 3927fc48020b3b94bdbaf160720664b4a6cdeb6f96b3415d7026326873e20368 SIZE (rust/2021-07-29/rustc-1.54.0-armv7-unknown-freebsd.tar.xz) = 46448620 SHA256 (rust/2021-07-29/rust-std-1.54.0-armv7-unknown-freebsd.tar.xz) = bc80b15a9ba60c66250d1b31fb610941205b3a2d2787021a5bdb96e667b28d45 SIZE (rust/2021-07-29/rust-std-1.54.0-armv7-unknown-freebsd.tar.xz) = 18206828 SHA256 (rust/2021-07-29/cargo-1.54.0-armv7-unknown-freebsd.tar.xz) = b0d89e13cc35a943ba3da5de5247d97d6b3dac0abcd331736bc9176e413e8eee SIZE (rust/2021-07-29/cargo-1.54.0-armv7-unknown-freebsd.tar.xz) = 4542272 I've got lang/rust building in poudriere. So far it has not rejected what I did. Anyhing else will be a separate poudriere bulk run. (I was not familiar with any internals of rust's build structure. Hopefully I noticed every appropriate that needed to be done.) Note: I found that /usr/ports/distfiles/rust/crates/ had accumuated many versions of materials going back into 2015. (I do not normally build rust.) Appearently nothing cleans up the old content in this area as things progress. So I cleared it out, hoping it would be filled in as needed. -- You are receiving this mail because: You are on the CC list for the bug.
[Bug 257419] lang/rust: panic on armv7 at 'capacity overflow', library/alloc/src/raw_vec.rs:546:5
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257419 --- Comment #31 from Mark Millard --- (In reply to Mark Millard from comment #30) Rust is still building but so far there have been no problems with: /wrkdirs/usr/ports/lang/rust/work/bootstrap/bin/cargo build . . . operation during the build. -- You are receiving this mail because: You are on the CC list for the bug.
[Bug 257419] lang/rust: panic on armv7 at 'capacity overflow', library/alloc/src/raw_vec.rs:546:5
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257419 --- Comment #32 from Mark Millard --- (In reply to Mark Millard from comment #31) rust-1.55.0 built just fine so I started a poudriere bulk -a to retry building everything that failed to complete in the first bulk -a . It took about 30 min to get to the point of builders starting to do builds. So far: [00:40:47] [01] [00:10:39] Finished devel/rust-cbindgen | rust-cbindgen-0.20.0_1: Success [00:46:10] [16] [00:13:11] Finished sysutils/potnet | potnet-0.4.4_14: Success None of the in-process cargo-using builds have shown evidence of the huge log file generation yet. -- You are receiving this mail because: You are on the CC list for the bug.
[Bug 257419] lang/rust: panic on armv7 at 'capacity overflow', library/alloc/src/raw_vec.rs:546:5
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257419 --- Comment #33 from Mark Millard --- (In reply to Mark Millard from comment #32) That 2nd bulk -a hs had builders active for 6 hours, building 589 successfully. So far, there have been no examples of indefinately growing log files (of mostly pthread_peekjoin_np messages). It may be something like another 16 hours before the bulk -a finishes. -- You are receiving this mail because: You are on the CC list for the bug.
[Bug 257419] lang/rust: panic on armv7 at 'capacity overflow', library/alloc/src/raw_vec.rs:546:5
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257419 --- Comment #34 from Mikael Urankar --- (In reply to Mark Millard from comment #33) Thanks for the test. No need to build the remaining ports. -- You are receiving this mail because: You are on the CC list for the bug.
[Bug 257419] lang/rust: panic on armv7 at 'capacity overflow', library/alloc/src/raw_vec.rs:546:5
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257419 --- Comment #35 from Mark Millard --- (In reply to Mikael Urankar from comment #34) I'll be letting the bulk -a complete for reasons of setting up a test of memory and disk use for specific parallel port rebuilds. -- You are receiving this mail because: You are on the CC list for the bug.
[Bug 257419] lang/rust: panic on armv7 at 'capacity overflow', library/alloc/src/raw_vec.rs:546:5
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257419 --- Comment #36 from Mark Millard --- (In reply to Mark Millard from comment #35) The 2nd bulk -a finished with no huge log files. 1309 built and 349 failed (for other issues). -- You are receiving this mail because: You are on the CC list for the bug.
[Bug 257419] lang/rust: panic on armv7 at 'capacity overflow', library/alloc/src/raw_vec.rs:546:5
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257419 --- Comment #37 from commit-h...@freebsd.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=6f1fefb50e755d727f471aeb75ebe4e28f876b4b commit 6f1fefb50e755d727f471aeb75ebe4e28f876b4b Author: Tobias Kortkamp AuthorDate: 2021-09-07 08:14:14 + Commit: Tobias Kortkamp CommitDate: 2021-09-19 09:03:21 + lang/rust: Update to 1.55.0 - Set codegen-units=1 [1] - Add hack to skip cargo update on git sources as a step towards solving [2] - Fix 'capacity overflow' panics on armv* [3] Changes:https://blog.rust-lang.org/2021-09-09/Rust-1.55.0.html PR: 258337 PR: 256099 [1] PR: 256581 [2] PR: 257419 [3] Reviewed by:mikael, pkubaj Exp-run by: antoine Differential Revision: https://reviews.freebsd.org/D31872 With hat: rust Mk/Uses/cargo.mk | 2 +- Mk/bsd.gecko.mk| 2 +- lang/rust-bootstrap/Makefile | 8 +- lang/rust-bootstrap/distinfo | 6 +- lang/rust/Makefile | 12 +-- lang/rust/distinfo | 114 ++--- ...m-project_compiler-rt_lib_builtins_cpu__model.c | 21 ++-- ...ols_cargo_src_cargo_sources_git_source.rs (new) | 45 ...rc_tools_cargo_src_cargo_util_toml_mod.rs (new) | 22 .../patch-vendor_openssl-sys_build_main.rs (gone) | 19 ..._src_unix_bsd_freebsdlike_freebsd_mod.rs (gone) | 12 --- ..._unix_bsd_freebsdlike_freebsd_powerpc.rs (gone) | 50 - .../powerpc64-elfv1/patch-src_bootstrap_native.rs | 10 +- ...h-compiler_rustc__target_src_spec_mod.rs (gone) | 10 -- ...rc_spec_powerpc64le__unknown__freebsd.rs (gone) | 19 15 files changed, 154 insertions(+), 198 deletions(-) -- You are receiving this mail because: You are on the CC list for the bug.
[Bug 257419] lang/rust: panic on armv7 at 'capacity overflow', library/alloc/src/raw_vec.rs:546:5
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257419 Tobias Kortkamp changed: What|Removed |Added Flags|merge-quarterly?|merge-quarterly- --- Comment #38 from Tobias Kortkamp --- Can we close this? NACK to merge-quarterly. Merging lang/rust is a lot of extra work and the quarter is almost over. -- You are receiving this mail because: You are on the CC list for the bug.
[Bug 257419] lang/rust: panic on armv7 at 'capacity overflow', library/alloc/src/raw_vec.rs:546:5
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257419 --- Comment #39 from Robert Clausecker --- (In reply to Tobias Kortkamp from comment #38) I'll give it a try and report back if it works. -- You are receiving this mail because: You are on the CC list for the bug.
[Bug 257419] lang/rust: panic on armv7 at 'capacity overflow', library/alloc/src/raw_vec.rs:546:5
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257419 --- Comment #40 from Robert Clausecker --- (In reply to Tobias Kortkamp from comment #38) My armv7 machine is currently compiling Rust and a bunch of other dependencies. I expect results for the affected packages in the next few days. -- You are receiving this mail because: You are on the CC list for the bug.
[Bug 257419] lang/rust: panic on armv7 at 'capacity overflow', library/alloc/src/raw_vec.rs:546:5
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257419 Robert Clausecker changed: What|Removed |Added Resolution|--- |FIXED Status|Open|Closed --- Comment #41 from Robert Clausecker --- After a test run on latest, I can confirm that the issue is fixed. Ports that continue to fail are devel/rust-analyzer (error[E0308]: mismatched types) lang/gleam (error: failed to open: /nonexistent/.cargo/.crates.toml) www/deno (error: conflicting types for 'get_cpu_speed') security/solana (#error No timer implementation for this platform) security/rustscan (error[E0308]: mismatched types) security/cloak (error[E0425]: cannot find value `NEON` in module `cpu::arm`) games/abstreet (error[E0308]: mismatched types) But all these fail for for other reasons, so I consider the PR to be fixed. -- You are receiving this mail because: You are on the CC list for the bug.
[Bug 257419] lang/rust: panic on armv7 at 'capacity overflow', library/alloc/src/raw_vec.rs:546:5
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257419 Jan Beich changed: What|Removed |Added CC||d8zne...@aon.at --- Comment #42 from Jan Beich --- *** Bug 259799 has been marked as a duplicate of this bug. *** -- You are receiving this mail because: You are on the CC list for the bug.
[Bug 257419] lang/rust: panic on armv7 at 'capacity overflow', library/alloc/src/raw_vec.rs:546:5
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257419 --- Comment #43 from Mark Millard --- > Duplicate of this bug: 259799 259799 is not a duplicate: the only report here of: memory allocation of 1879048192 bytes failed was my report of: The following failed for other reasons -- You are receiving this mail because: You are on the CC list for the bug.