pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/54369: EAGAIN confuses rust



>Number:         54369
>Category:       pkg
>Synopsis:       EAGAIN confuses rust
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jul 11 14:40:00 +0000 2019
>Originator:     Martin Husemann
>Release:        NetBSD 8.99.50
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD night-owl.duskware.de 8.99.50 NetBSD 8.99.50 (NIGHT-OWL) #681: Fri Jul 5 18:05:36 CEST 2019 martin%night-owl.duskware.de@localhost:/usr/src/sys/arch/amd64/compile/NIGHT-OWL amd64
Architecture: x86_64
Machine: amd64
>Description:

Trying to build firefox I get:

thread 'main' panicked at 'failed printing to stdout: Resource temporarily unavailable (os error 35)', src/libstd/io/stdio.rs:792:9
stack backtrace:
   0:           0x98731f - std::sys::unix::backtrace::tracing::imp::unwind_backtrace::h64f1e0676d53b284
                               at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
   1:           0x97c1b7 - std::sys_common::backtrace::print::h9938ca13255fe34f
                               at src/libstd/sys_common/backtrace.rs:71
                               at src/libstd/sys_common/backtrace.rs:59
   2:           0x9718c1 - std::panicking::default_hook::{{closure}}::h2659a89b67cfb429
                               at src/libstd/panicking.rs:197
   3:           0x971648 - std::panicking::default_hook::h27d311e89c6c1c56
                               at src/libstd/panicking.rs:211
   4:           0x971fb2 - std::panicking::rust_panic_with_hook::h9e71906c290a7582
                               at src/libstd/panicking.rs:474
   5:           0x971b41 - std::panicking::continue_panic_fmt::hf83c85f6d039477b
                               at src/libstd/panicking.rs:381
   6:           0x971a8e - std::panicking::begin_panic_fmt::h23307143c60ff013
                               at src/libstd/panicking.rs:336
   7:           0x96c147 - std::io::stdio::_print::h169d0ea7fa39e84f
                               at src/libstd/io/stdio.rs:792
                               at src/libstd/io/stdio.rs:802
   8:           0x50817a - cargo::core::compiler::job_queue::JobQueue::drain_the_queue::h008cdd045b3968ec
   9:           0x53af54 - std::panicking::try::do_call::h30431af469096217
  10:           0x98e369 - __rust_maybe_catch_panic
                               at src/libpanic_unwind/lib.rs:85
  11:           0x5f55bf - crossbeam_utils::thread::scope::h56e4a226c26c0b8a
  12:           0x505fd7 - cargo::core::compiler::job_queue::JobQueue::execute::h760945828c96447e
  13:           0x5b4855 - cargo::core::compiler::context::Context::compile::hadacf2f93dd8ee2c
  14:           0x66f66e - cargo::ops::cargo_compile::compile_ws::h974db0468895e124
  15:           0x66df86 - cargo::ops::cargo_compile::compile::hff7455403cca1cd8
  16:           0x29026b - cargo::commands::rustc::exec::h1ef8281d5f40bc2d
  17:           0x272179 - cargo::cli::main::h87216c6f62f20094
  18:           0x299c6a - cargo::main::he2f5711129132b34
  19:           0x2b1642 - std::rt::lang_start::{{closure}}::h39a34e4512a80fec
  20:           0x9719c2 - std::panicking::try::do_call::hc08db6228eb22597
                               at src/libstd/rt.rs:49
                               at src/libstd/panicking.rs:293
  21:           0x98e369 - __rust_maybe_catch_panic
                               at src/libpanic_unwind/lib.rs:85
  22:           0x97faea - std::rt::lang_start_internal::h0c9bc192ca20594a
                               at src/libstd/panicking.rs:272
                               at src/libstd/panic.rs:394
                               at src/libstd/rt.rs:48
  23:           0x29c171 - main
  24:           0x26aa4c - _init


I am not sure why writing to stdout stalls with EAGAIN, but certainly the
rust stdlibrary code should better deal with it.

>How-To-Repeat:
s/a

>Fix:
n/a



Home | Main Index | Thread Index | Old Index