patched_libraries hits the default static TLS limit on Fedora

Open
#718 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
55/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
cpp, linux

Research direction

Start with the game-free patched_libraries test from #705 and trace how it is built and run on Fedora. Reproduce the failure with the normal library directory, then compare it with the run using GLIBC_TUNABLES=glibc.rtld.optional_static_tls=262144. Done means the test loads all 413 patched libraries and exits successfully under the intended Fedora setup.

Written by the indexing model from the issue text.

Description

The game-free patched_libraries test from #705 failed on Fedora Linux 45 at unified AnyKyty commit 93e87416313851d2601d98a7d1948a158d196c1b. The loader reported libSceAgcDriver.prx: cannot allocate memory in static TLS block.

The built PRX declares STATIC_TLS and its ELF TLS segment needs 97,872 bytes. I reran the same test binary with its normal library directory. Stock glibc settings and a 32 KiB optional static TLS allocation both failed. Setting GLIBC_TUNABLES=glibc.rtld.optional_static_tls=262144 for that test process loaded all 413 patched libraries and returned zero.

Tested-on: Fedora Linux 45 Toolbox, glibc 2.44, GCC 16.2.1, Xeon E5-2670 v3
AI-assisted: yes
Assisted-by: gpt-6.2 sol xhigh

Dominant language
C++
Stars
214
Forks
7
Avg merge
7h 53m
Merged PRs (30d)
280

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from simnJS/AnyPS5

All issues in simnJS/AnyPS5

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.