Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: Document Boehm GC patch in Prerequisites #7902

Closed

Conversation

roberth
Copy link
Member

@roberth roberth commented Feb 24, 2023

Motivation

Fix GC-related crashes for some people who build from source. Poor souls.

Context

The patch is still needed.

Checklist for maintainers

Maintainers: tick if completed or explain if not relevant

  • agreed on idea
  • agreed on implementation strategy
  • tests, as appropriate
    • functional tests - tests/**.sh
    • unit tests - src/*/tests
    • integration tests - tests/nixos/*
  • documentation in the manual
  • code and comments are self-explanatory
  • commit message explains why the change was made
  • new feature or incompatible change: updated release notes

@yorickvP
Copy link
Contributor

It should be possible to use the workaround in #7725 also if the patch is not present on linux (we could add a #define in the patch to check that). Not sure if we want that.

`--enable-gc` to `configure`.
`--enable-gc` to `configure`. Nix relies on a patch to support the
necessary interactions between coroutines and the collector; please
apply `boehmgc-coroutine-sp-fallback.diff` to your Boehm garbage collector
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a link to the file on GitHub so people can find out what specifically you mean.

This is the same issue as #7412 (comment).

@roberth
Copy link
Member Author

roberth commented Feb 26, 2023

It should be possible to use the workaround in #7725 also if the patch is not present on linux (we could add a #define in the patch to check that). Not sure if we want that.

I would prefer this. I'll review #7725 instead.

@yorickvP perhaps we should treat the gc as unpatched by default and have an --enable-gc-with-routines configure flag? Autodetecting the patch doesn't seem feasible.

@roberth roberth closed this Feb 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants