VirtualBox

Changeset 65704 in vbox for trunk/src


Ignore:
Timestamp:
Feb 9, 2017 4:47:49 PM (8 years ago)
Author:
vboxsync
Message:

Runtime: if we are compiled with address sanitizer enabled (gcc/llvm with special flags), don't unload the module to get better stacktraces

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/posix/ldrNative-posix.cpp

    r62564 r65704  
    110110{
    111111    PRTLDRMODNATIVE pModNative = (PRTLDRMODNATIVE)pMod;
     112#ifdef __SANITIZE_ADDRESS__
     113    /* If we are compiled with enabled address sanitizer (gcc/llvm), don't
     114     * unload the module to prevent <unknown module> in the stack trace */
     115    pModNative->fFlags |= RTLDRLOAD_FLAGS_NO_UNLOAD;
     116#endif
    112117    if (   (pModNative->fFlags & RTLDRLOAD_FLAGS_NO_UNLOAD)
    113118        || !dlclose((void *)pModNative->hNative))
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette