Skip to content

Do not link tbbmalloc_proxy and malloc by default on macOS - #3426

Open
SteveBronder wants to merge 1 commit into
developfrom
bugfix/3425-macos-tbbmalloc-proxy
Open

SteveBronder wants to merge 1 commit into
developfrom
bugfix/3425-macos-tbbmalloc-proxy

Conversation

@SteveBronder

Copy link
Copy Markdown
Collaborator

Fixes #3425

Summary

We now do not include tbb malloc in on mac.

Checklist

  • Copyright holder: Steve Bronder

    The copyright holder is typically you or your assignee, such as a university or company. By submitting this pull request, the copyright holder is agreeing to the license the submitted work under the following licenses:
    - Code: BSD 3-clause (https://opensource.org/licenses/BSD-3-Clause)
    - Documentation: CC-BY 4.0 (https://creativecommons.org/licenses/by/4.0/)

  • the basic tests are passing

    • unit tests pass (to run, use: ./runTests.py test/unit)
    • header checks pass, (make test-headers)
    • dependencies checks pass, (make test-math-dependencies)
    • docs build, (make doxygen)
    • code passes the built in C++ standards checks (make cpplint)
  • the code is written in idiomatic C++ and changes are documented in the doxygen

  • the new changes are tested

… Windows

On macOS the bundled TBB 2020.3 tbbmalloc_proxy registers a process-wide
malloc zone that can crash host processes loading Stan as a shared
library. See #3425
@SteveBronder SteveBronder self-assigned this Oct 1, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

macOS default tbbmalloc_proxy can crash embedding hosts during foreign-pointer ownership checks

1 participant