Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

pthread-tls-probe under Rosetta hangs in about 2 of 100 runs

未关闭
#413 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
48/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
c, macos

调研方向

Start with tests/x86_64-glibc-pthread-tls.c and reproduce the intermittent hang using the provided loop under Rosetta. Then run make test-rosetta-glibc to check the suite behavior; the issue does not identify where execution stops, so tracing the hang is an initial step. Done means the probe no longer hangs intermittently and the Rosetta test lane passes.

由索引模型根据 Issue 内容生成。

描述

bug

pthread-tls-probe (tests/x86_64-glibc-pthread-tls.c), the x86_64 glibc probe that starts one worker thread and joins it, sometimes never returns under Rosetta. It prints nothing before it stops: neither the success marker nor one of its failure markers.

R=externals/test-fixtures/x86_64-glibc/rootfs
for i in $(seq 1 300); do
    timeout 5 build/elfuse --sysroot $R $R/usr/bin/pthread-tls-probe > /dev/null 2>&1
    [ $? -eq 124 ] && echo "run $i timed out"
done

Timeouts in 300 runs:

  • main at b57f367: 6
  • #408 at 9f12c41: 7
  • #408 at 0a70404: 7

A run that returns takes well under a second. In the suite it is glibc-pthread-tls: rc=124 in make test-rosetta-glibc, which make test-matrix runs; it failed 1 of 5 make test-rosetta-glibc runs and 1 of 2 make test-matrix runs here. The other six probes in that lane (glibc-hello, glibc-dlopen, glibc-tls, glibc-gdtls among them) passed in every one of those runs.

Where it stops is not known: the hang has not been attached to or traced.

主要语言
C
星标
271
派生
28
平均合并
2 天 18 小时
30 天内合并 PR
19

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

sysprog21/elfuse 的其他 Issue

查看 sysprog21/elfuse 的全部 Issue

相似的 Issue

更多 C Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。