NetBSD-Bugs archive

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

Re: pkg/57708: rust problem when building firefox



The attached program should print the regions of the program's stack
and guard pages using various pthread(3) functions (demonstrated both
for the main thread and for a pthread it spawns).  This might help you
to draft the relevant code for Rust.

However, it is not exactly accurate, because the kernel will
automatically grow the stack of the main thread if its stack usage
increases, subject to the stack soft rlimit, which the process can
change itself (subject to the stack hard rlimit, it can't change).

So the results might be stale as soon as you use them.  Which raises
the question -- what is Rust trying to do with this information and
why?


Home | Main Index | Thread Index | Old Index