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

test/elf/lto-version-script.sh: fails with pthread_create has failed: Resource temporarily unavailable #600

Closed
sylvestre opened this issue Aug 5, 2022 · 8 comments

Comments

@sylvestre
Copy link
Contributor

In a debian chroot (works fine outside), the test fails with:

terminate called after throwing an instance of 'std::runtime_error'
  what():  pthread_create has failed: Resource temporarily unavailable
collect2: fatal error: ld terminated with signal 6 [Aborted]

On:
$CC -B. -shared -o $t/c.so -flto $t/a.o -Wl,-version-script=$t/b.script

Trying to package 1.4.0 in Debian/Ubuntu

@rui314
Copy link
Owner

rui314 commented Aug 5, 2022

You probably need to build mold with the bundled TBB or apply this patch to your TBB library and rebuild your TBB package.

@rui314
Copy link
Owner

rui314 commented Aug 5, 2022

Can you ask the libtbb maintainer to cherry-pick my patch to https://salsa.debian.org/science-team/tbb/-/tree/master/debian/patches? It's not specific to mold and should be merged to the main repo. The problem is that for some reason Intel devs have stopped merging PRs since like three months ago.

@sylvestre
Copy link
Contributor Author

sure, will do!

@rui314
Copy link
Owner

rui314 commented Aug 6, 2022

Please close this bug if my patch could fix your issue.

@sergiud
Copy link

sergiud commented Aug 6, 2022

The problem is that for some reason Intel devs have stopped merging PRs since like three months ago.

This is related to the war in Ukraine: most if not all Intel TBB devs are based in Nizhny Novgorod, Russia where Intel suspended its operations in April.

@rui314
Copy link
Owner

rui314 commented Aug 6, 2022

Ahh, it certainly explains it.

@marxin
Copy link
Sponsor Contributor

marxin commented Aug 7, 2022

Note the patch was taken by openSUSE and will be available in Tumbleweed soon.

@rui314
Copy link
Owner

rui314 commented Aug 16, 2022

Let me close this issue. If the issue still persists, feel free to reopen.

@rui314 rui314 closed this as completed Aug 16, 2022
carlocab added a commit to carlocab/homebrew-core that referenced this issue Aug 19, 2022
TBB has a bug in thread creation which is exposed with usage in mold.
See rui314/mold#410, rui314/mold#600. We apply a patch that has been
upstreamed to TBB at oneapi-src/oneTBB#824 to fix this.

The patch implements a mechanism similar to one used by Go [1], and has
been adopted in the Arch and OpenSUSE TBB packages.

While we're here, let's align the `cmake` invocation with other
formulae, fix references to `python3.10` (Homebrew#108008), and change the
`-rpath` flag so that it does not require relocation when pouring a
bottle (which should speed bottle pour times up slightly).

[1] https://go-review.googlesource.com/c/go/+/33894/
BrewTestBot pushed a commit to Homebrew/homebrew-core that referenced this issue Aug 19, 2022
TBB has a bug in thread creation which is exposed with usage in mold.
See rui314/mold#410, rui314/mold#600. We apply a patch that has been
upstreamed to TBB at oneapi-src/oneTBB#824 to fix this.

The patch implements a mechanism similar to one used by Go [1], and has
been adopted in the Arch and OpenSUSE TBB packages.

While we're here, let's align the `cmake` invocation with other
formulae, fix references to `python3.10` (#108008), and change the
`-rpath` flag so that it does not require relocation when pouring a
bottle (which should speed bottle pour times up slightly).

[1] https://go-review.googlesource.com/c/go/+/33894/

Closes #108431.

Signed-off-by: Sean Molenaar <1484494+SMillerDev@users.noreply.github.com>
Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
cielavenir pushed a commit to cielavenir/salsa-mold that referenced this issue Nov 14, 2022
* For now, use TBB from the tree
  See rui314/mold#600
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

No branches or pull requests

4 participants