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

Reply via email to