Couldn't find it but decided to rewrite the code so it's moot, thanks for the 
help.

Andrew

Sent from my iPhone

> On 20 Feb 2014, at 09:42 pm, Andy Williams <a...@andywilliams.me> wrote:
> 
> Hi,
> 
> I see these values:
> 
> BREAKING
> offset 0
> idx 3
> state->jump_div 1
> state->jump_limit 3
> 
> Many thanks for looking in to this,
> Andrew
> 
>> On 20/02/14 09:57, Jérémy Zurcher wrote:
>> Hi,
>> what are the values of offset, idx, state->jump_div and state->jump_limit
>> when the crash occures ?
>> 
>>> On Wednesday 19 February 2014  21:05, Andy Williams wrote :
>>> Hi guys,
>>> 
>>> Can anyone help with a crash I'm looking into. It seems that
>>> elm_genlist_item_sorted_insert
>>> with what seems like valid items (from a tree structure) is calling
>>> through into eina_inlist
>>> and crashing.
>>> 
>>> I think the problem can be illustrated with this excerpt - BREAKING is
>>> printed immediately before segv on last->next dereference
>>> 
>>> can anyone suggest what might be causing this? The data triggering it is
>>> adding a new item to the top level of a tree after child nodes have been
>>> added but is not happening on both of my machines - just 1.
>>> 
>>> Many thanks indeed for any tips!
>>> Andrew
>>> 
>>> static void
>>> _eina_inlist_sorted_state_insert(Eina_Inlist_Sorted_State *state,
>>>                                   unsigned short idx,
>>>                                   int offset)
>>> {
>>>     Eina_Inlist *last;
>>>     int jump_count;
>>>     int start;
>>> 
>>>     state->inserted++;
>>> 
>>>     if (offset != 0) idx++;
>>>     for (; idx < state->jump_limit; idx++)
>>>       {
>>>          state->jump_table[idx] = state->jump_table[idx]->prev;
>>>       }
>>> 
>>>     start = state->jump_limit - 3;
>>>     if (start < 0)
>>>       start = 0;
>>> 
>>>     last = state->jump_table[start];
>>>     if (!last){printf("BREAKING\n"); }
>>>     start++;
>>> 
>>>     /* Correctly rebuild end of list */
>>>     for (jump_count = 0; last->next != NULL; last = last->next,
>>> jump_count++)
>>> 
>>> 
>>> ------------------------------------------------------------------------------
>>> Managing the Performance of Cloud-Based Applications
>>> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
>>> Read the Whitepaper.
>>> http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
>>> _______________________________________________
>>> enlightenment-devel mailing list
>>> enlightenment-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
>> --- Hell'O from Yverdoom
>> 
>> Jérémy (jeyzu)
>> 
>> ------------------------------------------------------------------------------
>> Managing the Performance of Cloud-Based Applications
>> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
>> Read the Whitepaper.
>> http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
>> _______________________________________________
>> enlightenment-devel mailing list
>> enlightenment-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> 

------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to