strict_differential cannot run on a ThreadSanitizer build: its address-space cap stops the sanitizer, so [99s] is left out of the tsan-http lane

Đang mở
#2,425 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
56/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
c, github-actions
Lĩnh vực
ci-cd, testing

Hướng nghiên cứu

Start with tools/strict_differential.sh and its address-space policy self-test; compare the existing ASan and ordinary cases, then inspect the tsan-http lane step and its exclusion comment. Run make tsan-http and tools/strict_differential.sh --no-baseline on a ThreadSanitizer build. Done means the script reaches a verdict, [99s] is included in the lane, and its log reports OK: [99s] ran.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

area:gates found-by:ci kind:gate-defect status:held

tools/strict_differential.sh (suite section [99s]) cannot run on a ThreadSanitizer build. Found by putting [99s] into the tsan-http lane for #2367, on a hosted runner (make tsan-http, the lane's own step, setarch -R):

[99s] Strict argument-guard differential (#971, no-baseline half)
GFX address-space policy: platform=Linux subject=ordinary baseline=none (ordinary Linux=1500000 KiB; ordinary Darwin=inherited limits, no imposed address-space cap; ASan=inherited unlimited)
  CAPABILITY DID NOT MEASURE: gfx — invalid: 66 ==10722==WARNING: Program is run with limited virtual address space, which wouldn't work with ThreadSanitizer.
  ABORTED: this differential exited (rc=1) before printing a verdict.
  FAIL: strict_differential.sh exited 1 without completing — section verdict is not trustworthy (#988)

The tool's address-space policy knows two kinds of subject: an ASan build, which keeps the limits it inherits, and an "ordinary" one, which gets a cap of 1,500,000 KiB on Linux. A ThreadSanitizer build is classed as ordinary, gets the cap, and ThreadSanitizer refuses to start under one (exit 66).

Why it matters

Three rows of the differential start an HTTP server (tests/strict_shape_cases.json, the rows with http_context, through tests/test_http_server.sh --strict-shape). #2367 asks that every section that starts an HTTP server run under ThreadSanitizer or be named as left out with its reason. [99s] is named as left out, with this as the reason; those three servers have no race coverage until the section can run there.

Done when

  • On a make tsan-http build, tools/strict_differential.sh --no-baseline runs to a verdict: the policy classes a ThreadSanitizer subject as one that keeps the limits it inherits, as it does an ASan one, and the tool's self-test has a case for it beside the ASan and ordinary cases.
  • [99s] is added to the list of the tsan-http lane's step and the comment that names it as left out is removed, in the same change; the hosted job's log shows OK: [99s] ran.

— Claude DevBox

Ngôn ngữ chính
C
Star
3
Fork
7
Merge trung bình
3 giờ 28 phút
Pull request đã merge (30 ngày)
270

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của InauguralSystems/EigenScript

Tất cả issue của InauguralSystems/EigenScript

Issue tương tự

Thêm issue về C

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.