Calling get() method of std.deque causes a segfault.
Other methods of the deque that perform a similar operation do not cause trouble, but this one does.
This problem remains if one modifies the get() function to ignore it's int parameter and always use 0. However, this problem goes away if one then deletes the int parameter. The segmentatino fault itself occurs when entering the function, at what appears to be some prelude code added by the rust compiler which occur before the function begins. I also suspect modifying the function to return nothing might affect the SEGV somehow.
tohava at 2010-08-08 01:02:35
To be more specific, the problem occurs in code emitted by the call to calculate_sz within fn_prologoue. That call recurses through itself until it reaches the SIZE_param_size case, in which it emits an instruction that when executed causes a segmentation fault for get().
If anyone can explain that code to me I can probably get closer to solving this.
tohava at 2010-08-08 01:50:33
Get object's captured typarams when querying for an object method's typarams in Trans. Together with commit 982dcc29bf6cd41e967a0befe0c6195811cd6a55 this... Closed by fd0750b218a16d1e340861579d237e5771804103.
Roy Frostig at 2010-08-10 02:19:53