Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#6 Memory runs out early

closed-fixed
nobody
None
5
2007-09-14
2007-09-14
Tom Breton
No

I'm basically submitting this report to document what I'm about to fix.

TinyScheme sometimes runs out of memory when it should have plenty, ie when sc->last_cell_seg is much less than CELL_NSEGMENT.

This happens, as I discovered under gdb, because get_consecutive_cells, even if it succeeds in finding cells on the second try, will try a third time. That can fail under the right conditions. Then it assumes it already tried allocating more memory.

Discussion

  • Tom Breton
    Tom Breton
    2007-09-14

    Stress test: Runs out of memory prematurely

     
    Attachments
  • Tom Breton
    Tom Breton
    2007-09-14

    • status: open --> closed-fixed