buf_from_list of a non-list answers null in every state of EIGS_STRICT
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ó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 58/100
Hướng nghiên cứu
Start with the buf_from_list builtin implementation and the strict type guard pattern used by similar builtins; then read tools/strict_differential.sh, tests/strict_guard_release_messages.tsv, and the buf_* constructor probes. Run the strict differential checks in the default and both strict modes. Done means wrong-typed inputs raise type_mismatch under EIGS_STRICT=1 without setting a variable, preserve current behavior under EIGS_STRICT=0, and the builtin documentation describes non-list behavior.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
buf_from_list given something that is not a list answers null, in every state of EIGS_STRICT, where a wrong-typed argument of a builtin raises by default (#2439):
$ cat p.eigs
try:
x is buf_from_list of 1
print of [x, type of x]
catch e:
print of [e.kind, e.message]
try:
y is buf_from_list of "a"
print of [y, type of y]
catch e:
print of [e.kind, e.message]
$ eigenscript p.eigs # phase2-numbers at f9f3e49b; the same with EIGS_STRICT=0 and EIGS_STRICT=1
[null, "null"]
[null, "null"]
The last release (v0.48.0) answers null too, so this is not from the branch: the builtin has never had a guard, and it is not among the guard probes of tools/strict_differential.sh (no row for it in tests/strict_guard_release_messages.tsv).
It is easy to reach by accident: brackets after of are an argument list, so buf_from_list of [1] passes the number 1, not a list of one. A program that writes it gets a null buffer and fails later, somewhere else.
Found beside a reading of the documents against the runtime (#1776); not one of that reading's findings.
Done when
-
buf_from_listof a value that is not a list (a number, a string,null, a dict) raisestype_mismatchwith no variable set and underEIGS_STRICT=1, with a message that names the builtin; underEIGS_STRICT=0it keeps today's answer. - The builtin has a guard probe in
tools/strict_differential.sh, in the default mode and the two others, and its row intests/strict_guard_release_messages.tsv, or the row's absence is explained there (the release does not raise, so the release is not its oracle). - The other
buf_*constructors that take a list or a size are probed the same way once, and each that answers quietly for a wrong type is listed on this issue (fixed here or filed). -
docs/BUILTINS.md's row forbuf_from_listsays what a non-list gives.
— 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
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.
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của InauguralSystems/EigenScript
-
area:gates kind:gate-defect
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
InauguralSystems/EigenScript#2476 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:gates needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
InauguralSystems/EigenScript#2462 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
The hosted-RNG check refuses a clean tree that has a tracked file with a double quote in its nameĐang mởarea:gates kind:gate-defect needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
InauguralSystems/EigenScript#2461 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:gates kind:gate-defect needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
InauguralSystems/EigenScript#2458 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
`http_post`: `headers` text with something after its JSON value now means no headers, without a wordĐang mởarea:http kind:silent-wrong
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
InauguralSystems/EigenScript#2394 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của InauguralSystems/EigenScript
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
flipperdevices/flipperzero-firmware#4520 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area/build-framework kind/enhancement priority/low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
yugabyte/yugabyte-db#38826 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
meshcore-dev/MeshCore#3891 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug grammar sev-3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
-
BUG/MEDIUM: regex: worker SIGSEGV when a regex is applied to an empty body on libc-regex buildsĐang mởstatus: needs-triage type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100