Changes between Initial Version and Version 1 of Ticket #41124


Ignore:
Timestamp:
Nov 1, 2013, 4:49:10 PM (11 years ago)
Author:
neverpanic (Clemens Lang)
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #41124 – Description

    initial v1  
    11Graphviz uses a check in `lib/vmalloc/features/vmalloc` that is supposed to find out whether `alloca(3)` is internally using `malloc(3)`. To do this, this check provides a custom implementation of `malloc(3)` and assumes that if this implementation is going to be called it was called by `alloca(3)`.
    22
    3 However, this assumption doesn't hold in all cases, e.g. it breaks when having `DYLD_INSERT_LIBRARIES` is set, as is the case for trace mode, because the Mac OS loader `dyld` internally calls `malloc(3)`, causing the check to fail.
     3However, this assumption doesn't hold in all cases, e.g. it breaks when having `DYLD_INSERT_LIBRARIES` set, as is the case for trace mode, because the Mac OS loader `dyld` internally calls `malloc(3)`, causing the check to fail.
    44
    55The check should instead use a global volatile variable to check whether the current call to `malloc(3)` happened while trying to use `alloca(3)`. The overriden `malloc(3)` should behave like the standard one in all other cases.