Menu

#45 ODEHashSpace crashes with large number of objects

general
closed
nobody
core (25)
5
2014-02-04
2007-04-13
No

Lines 497-502 of collision_space.cpp (ODE 0.8) show that HashSpaces are likely to needlessly crash when dealing with large numbers of objects, because the alloca() call there can quite easily exceed the stack size.

Defining dUSE_MALLOC_FOR_ALLOCA as a workaround would lead to memory leaks, as in many cases no attempt would be made to free the malloc'ed memory.

Discussion

  • Daniel K. O.

    Daniel K. O. - 2014-02-04
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,4 +1,3 @@
    -
     Lines 497-502 of collision_space.cpp (ODE 0.8) show that HashSpaces are likely to needlessly crash when dealing with large numbers of objects, because the alloca() call there can quite easily exceed the stack size.
    
     Defining dUSE_MALLOC_FOR_ALLOCA as a workaround would lead to memory leaks, as in many cases no attempt would be made to free the malloc'ed memory.
    
    • status: open --> closed
     
  • Daniel K. O.

    Daniel K. O. - 2014-02-04

    Fixed in one of the latest commits; allocation is done through std::vector.

     

Log in to post a comment.