Re: new rust

2023-10-16 Thread Havard Eidnes
>>for i in 0..u64::MAX { >>match libc::_cpuset_isset(i, set) { >> [...] >> but ... under which conditions would it seg-fault inside that >> function? > > What's does the Rust impl. of _cpuset_isset() look like? Does it > take ints by any c

Re: new rust (was: gdb issues?)

2023-10-11 Thread Havard Eidnes
> Program terminated with signal SIGSEGV, Segmentation fault. ... > #0 0x60d0fe74 in _cpuset_isset () from /usr/lib/libc.so.12 > #1 0x03d2bf8c in std::sys::unix::thread::available_parallelism () ... > At least it gives a bit of clue about where to go looking for the > null pointer de-reference,

Re: new rust (was: gdb issues?)

2023-10-15 Thread RVP
On Wed, 11 Oct 2023, Havard Eidnes wrote: Program terminated with signal SIGSEGV, Segmentation fault. ... #0 0x60d0fe74 in _cpuset_isset () from /usr/lib/libc.so.12 #1 0x03d2bf8c in std::sys::unix::thread::available_parallelism () ... At least it gives a bit of clue about where to go loo