Commit Graph
6 Commits
Author SHA1 Message Date
hm 4bd64ac481 fix(brep): avoid thread_local memo construction in W31 guard prefetch worker (W47)
根因:legacy 差集核的 W31 守卫修复候选预取线程(brep_boolean.cpp 内
GuardRepairPrefetch,短生命周期 std::thread)在 worker 内调用
pipeline_validate(),首次构造 thread_local BooleanPipelineMemo;线程退出时
TLS 析构访问已释放的 thread_local 存储 → PageHeap 下 100% UAF,普通堆下为
并行 ctest 偶发 Exit code 0xC0000374
(TolerantModelingVDE371Test.MultiBoolean_DifferenceSubtractsAll /
BooleanCorpus.Diff_BoxBox_10x10x1_1x1x10,同属纯平面方体贯通差集)。

修复:worker 内改用 validate()(pipeline memo 在 worker 恒非 active,
pipeline_validate 本就退化为 validate;语义等价),并新增
VDE_DISABLE_GUARD_PREFETCH=1 诊断门(默认行为不变)。

验证:PageHeap OMP=2/4/24 矩阵修复前全 AV、修复后全 PASS;640 runs 压测
修复前 2 fails → 修复后 0 fails;ctest -R "Fuzz|Boolean|Brep|Oracle" 两轮
0/1348 失败;B5 digest d1c875b2322e097d 与 18 行 CBRA SHA256 均与基线一致。
新增 3 个回归测试与 2 个工具,详见 docs/planning/wave8/fuzz-notes.md。
2026-11-20 14:57:37 +08:00
hm 3d17b54cac fix(brep): 消除布尔内核 mesh_cache 并行悬垂引用与 trimmed_surface 悬垂 pair(W42 task-116)
1) brep_boolean.cpp: mesh_cache 值改为 shared_ptr<BodyMeshCache>,
   get_body_mesh 返回 shared_ptr<const BodyMeshCache>; 容量守卫 clear()
   不再析构被其他线程在用的条目, 修复并行 use-after-free (0xc0000374 类)。
   调用方 classify_point_mesh / solid_plane_cross_section 同步改为持有 shared_ptr。
2) trimmed_surface.cpp: restore_constraint_triangle_voids 的 edge_key lambda
   改为显式返回 std::pair<int,int> (原先 auto 返回 std::minmax(a,b) 的
   pair<const int&,const int&> 引用按值形参, ASan 报 stack-use-after-scope)。
3) tests/fuzz/fuzz_boolean.cpp: 新增回归测试
   FuzzBoolean.MeshCacheEvictionConcurrent (两线程: 一持引用一驱逐缓存;
   ASan 下可同时覆盖两处修复)。
4) docs/planning/wave7/fuzz-notes.md: 诊断方法/日志/审计清单/门槛/CI nightly ASan 建议;
   tools/fuzz/run_boolean_asan.ps1: 可复用 ASan 诊断脚本。

门槛: RandomBooleanChain 10/10 PASS; B5 4/4 digest d1c875b2322e097d (284v/436e);
18 行 CBRA IDENTICAL; ctest -R "Fuzz|Boolean|Brep" -j4: 2 failed/1327
(两个非目标测试并行偶发 0xc0000374, 单跑 PASS, 判定同类未消灭, 已在 notes 诚实记录)。
2026-11-20 11:54:39 +08:00
hm d46e67a2e2 feat: execute 1.0.108 improvement plan (ICP/fuzz, formats, Rib, CI/coverage) 2026-11-01 08:14:12 +08:00
hm 34b12a3394 test(fuzz): cap pathological boolean chain growth 2026-10-31 07:05:29 +08:00
茂之钳 7b76689ea1 feat(v11): CI/CD + regression tests + fuzzing + benchmarks + code quality
CI / Build & Test (push) Failing after 41s
CI / Release Build (push) Failing after 30s
Build & Test / build-and-test (push) Has been cancelled
Build & Test / python-bindings (push) Has been cancelled
v11.1 — Test Infrastructure (14 files):
- .github/workflows/ci.yml: Ubuntu 22.04 + GCC 11, auto ctest on push
- tests/regression/: degenerate geometry, extreme coords, thin wall, large models
- tests/fuzz/: SDF random CSG, random booleans, format round-trip, continuous mode
- tests/benchmark/: boolean perf, MC perf, IO perf benchmarks
- docs/benchmark-report.md: benchmark template

v11.2 — Code Quality + Docs:
- .clang-tidy: 15 check categories, 22 exclusions
- .github/workflows/static-analysis.yml: clang-tidy CI scan
- CODEOWNERS, SECURITY.md
- docs: API overview, testing guide, contributing guide
- README: module capability overview table

Pending: binary formats + curve projection (retrying)
2026-07-27 01:10:58 +08:00
茂之钳 107cf58034 feat(v3.3): B-Rep face splitting + fuzz testing (all 3 tasks)
CI / Build & Test (push) Failing after 33s
CI / Release Build (push) Failing after 29s
Build & Test / build-and-test (push) Has been cancelled
Build & Test / python-bindings (push) Has been cancelled
2026-07-24 12:48:42 +00:00