tech-pkg archive

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

Re: 2025Q1 lang/rust build failure on illumos (ENOMEM)



On Wed, Apr 16, 2025 at 03:12:09PM +0100, Jonathan Perkin wrote:
> * On 2025-04-16 at 15:03 BST, Hans Rosenfeld wrote:
> 
> > Next, I run into the exact same problem with devel/cargo-c:
> > 
> > ===> Building for cargo-c-0.9.32nb1
> > thread '<unnamed>' panicked at std/src/sys/pal/unix/stack_overflow.rs:476:13:
> > failed to allocate a guard page: Not enough space (os error 12)
> > note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
> > fatal runtime error: initialization or cleanup bug
> > 
> > Any idea what's wrong now? I already verified that ULIMIT_CMD_stacksize
> > is set to 'ulimit -s 131072'.
> 
> devel/cargo-c does not set UNLIMIT_RESOURCES, so the ulimit command won't be
> used and it'll just use what is currently set in the environment.  Is there
> any chance you set it manually to "unlimited" during testing or something?
> The default should be 10MB IIRC.

I ran 'ulimit -s 131072' in the shell I'm using for building, and
devel/cargo-c built successfully.

I presume that means it needs UNLIMIT_RESOURCES? Is that perhaps the
case for all rust-based packages?


Hans


-- 
%SYSTEM-F-ANARCHISM, The operating system has been overthrown


Home | Main Index | Thread Index | Old Index