Rust, SAFE Network, Crust and a problem for Fedora 22 x86_64 XFCE (ie not other spins)
Philip Rhoades
phil at pricom.com.au
Fri Aug 28 11:45:10 UTC 2015
Suvayu,
On 2015-08-28 20:38, Suvayu Ali wrote:
> Hi,
>
> On Fri, Aug 28, 2015 at 11:01:03AM +1000, Philip Rhoades wrote:
>> On 2015-08-28 10:03, Suvayu Ali wrote:
>> >
>> >For starters, did you try with other desktop environments, or no desktop
>> >environment (so, from a tty)? Is it the presence of a specific XFCE
>> >package thats the reason, or the environment of an XFCE desktop?
>>
>> Yes, others had no trouble with other Fedora 22 x86_64 spins and it
>> works
>> fine on a basic F22 Docker image for me.
>
> In that case, you will have to dig into the source. I'm barely
> familiar
> with rust, and that too only recently. If I understand the message
> correctly, the test hangs here:
>
> // from vec.rs
> #[stable(feature = "rust1", since = "1.0.0")]
> impl<T> Index<usize> for Vec<T> {
> type Output = T;
>
> #[inline]
> fn index(&self, index: usize) -> &T {
> // NB built-in indexing via `&[T]`
> &(**self)[index] // <-- here
> }
> }
>
> I would run the failing test (see src/beacon.rs:297) inside a debugger
> and check why the index goes out of range, and why instead of
> segfaulting[1] it hangs. If you tell me how to run a rust debugger, I
> can try when I have the time (but kinda hard at the moment).
>
> I hope this helps.
>
> Footnotes:
>
> [1] At least that's what I would expect from C/C++ for index out of
> bounds problems.
Thanks - that sounds like a good other option! I will be away for a
week now so I will have to look at this again when I get back . .
Thanks all!
Regards,
Phil.
--
Philip Rhoades
PO Box 896
Cowra NSW 2794
Australia
E-mail: phil at pricom.com.au
More information about the xfce
mailing list