FhSim  3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
Review issues — fhsim_coribo

Findings from code review that await an owner decision or an implementation. Each issue is one file in issues/details/, which holds the evidence, the effect, the possible fix, the test that would prove it and the risk. Resolved issues are kept in issues/resolved/ so that their numbers are never reused. Issues that concern a SimObject are also shown on that model's documentation page.

How to work an item

  1. Reproduce the Evidence at the file:line given in the detail file, at HEAD.
  2. For a blocked item, get the owner's answer to "Decision needed" first, then set Status to ready.
  3. Write the proving test, apply the fix, check the Risk paragraph.
  4. git mv the file to issues/resolved/, add a **Resolved:** <commit>, <date> paragraph after the table, delete the matching \par Review issue\ilinebr \ref fhsim_coribo_issue_<ID> lines from the headers, rerun the script and commit it all together.

New issue: --new <slug> "<title>", or add issues/details/<slug>.md with the metadata table but no ID row; the script assigns the next free number, writes the heading and renames the file to <TAG>-<ID>-<slug>.md.

Legend

  • Class
    • BUG code does something other than its documentation or sibling code says
    • KNOWN-LIMITATION behaviour gap by design or omission, document rather than fix silently
    • ARCHITECTURE structure, dependencies, build layout, dead code and stale artefacts
    • DOCUMENTATION missing or wrong documentation or example
    • TEST test coverage or infrastructure
    • API public name (port, state, parameter, registration string) whose change breaks input files
    • SECURITY credentials and supply chain
  • Severity
    • 3 wrong numbers, a crash or a secret exposure reaches a user
    • 2 a documented interface does not work as documented
    • 1 tidiness, readers and tools only
  • Status
    • blocked needs the owner decision named in the file
    • ready fully specified

Open issues (0)

| ID | Class | Severity | Status | |—|—|—|—|

Resolved issues (47)

  • CORIBO-0001 (TEST) — WinchableCable has no automated behavioural test of any kind. Resolved: 85a9cc9, 2026-10-21. File: resolved/CORIBO-0001-no-automated-test-of-winchablecable.md
  • CORIBO-0002 (TEST) — The constraint solver's analytic Jacobians are never checked against finite differences. Resolved: see commit "Check the constraint solver's Jacobians against finite differences", 2026-09-24. File: resolved/CORIBO-0002-constraint-solver-jacobians-unverified.md
  • CORIBO-0003 (DOCUMENTATION) — WinchableCable's Doxygen comment says the init-states file is named .data, code and shipped file use .dat. Resolved: see commit "Name the WinchableCable init-states file .dat in its documentation", 2026-09-24. File: resolved/CORIBO-0003-winchablecable-init-states-filename-doc-mismatch.md
  • CORIBO-0004 (BUG) — The shipped CoriboCable.xml example stops before the first step: cableStates initial conditions are incomplete. Resolved: 7c4a98e, 2026-10-21. File: resolved/CORIBO-0004-winchablecable-example-fails-initial-conditions.md
  • CORIBO-0005 (BUG) — Winch::LoadAttachedGeometryDataFromFile tests an unsigned index for < 0, so the super-element step-back never runs. Resolved: c9e1fc7, 2026-10-21. File: resolved/CORIBO-0005-winch-pop-element-unsigned-underflow-check.md
  • CORIBO-0006 (BUG) — Point-versus-disk face contact: the disk's rotational Jacobian has the wrong sign. Resolved: 2dd096d, 2026-10-21. File: resolved/CORIBO-0006-point-disk-face-rotation-jacobian-sign.md
  • CORIBO-0007 (DOCUMENTATION) — README names the Conan conf tools.build:skip_tests, which does not exist; the recipe reads tools.build:skip_test. Resolved: see commit "Name the Conan test switch tools.build:skip_test in the README", 2026-09-24. File: resolved/CORIBO-0007-readme-skip-tests-conf-name.md
  • CORIBO-0008 (DOCUMENTATION) — doc/user/testing_report.md is not a Doxygen input, so the to it from main_coribo.md does not resolve. Resolved: see commit "Give Doxygen the testing report that main_coribo.md links to", 2026-09-24. File: resolved/CORIBO-0008-testing-report-not-in-doxygen-input.md
  • CORIBO-0009 (BUG) — ConstraintSolver(double) starts hardware_concurrency threads, which makes small models many times slower; the affinity masks shift past their width. Resolved: b6fcc98, 2026-10-21. File: resolved/CORIBO-0009-constraintsolver-default-thread-pool-and-affinity-mask-shifts.md
  • CORIBO-0010 (ARCHITECTURE) — ConstraintSolver's default thread pool takes every hardware thread and hands each small sub-task over with a condition-variable wake-up. Resolved: see commits c155069 (test, red) and "Bind each thread-pool worker per core index; document pool size (CORIBO-0010)" (fix, 3.2.3), 2026-10-13. File: resolved/CORIBO-0010-constraint-solver-thread-pool-hand-off-dominates-small-models.md
  • CORIBO-0011 (BUG) — SparseMatrixBuilder's parallel block product reads past the vector when a sub-domain starts at the last element or the system has one element. Resolved: see commits 1f6916f (test, red under ASan) and "Bound the neighbour blocks of SparseMatrixBuilder's sub-domain product (CORIBO-0011)" (fix, 3.2.4), 2026-10-13. File: resolved/CORIBO-0011-sparse-product-reads-past-vector-end.md
  • CORIBO-0012 (BUG) — ConstraintSolver warm-starts a 5-iteration CG from the previous call, so OdeFcn is not idempotent. Resolved: feature odefcn-contract, 2026-11-04: allowed warm start, R3 exception (owner 2026-11-04). No code fix. Two converged variants of a TrawlCable case differ by 19 N after t=0.87 s (chaotic), so the warm start changes results only within the solver tolerance. The test stays disabled.. File: resolved/CORIBO-0012-constraint-solver-warm-start.md
  • CORIBO-0013 (BUG) — An exception that leaves a task on a CoreBoundThreadPool worker calls std::terminate. Resolved: 3c694c1, 2026-10-24, feature coribo-fail-loudly. File: resolved/CORIBO-0013-pool-task-exception-terminates.md
  • CORIBO-0014 (BUG) — ConnectionSolverTask owns a raw Cholesky solver and is copied when the island vector grows: use-after-free. Resolved: ecd1ed7, 2026-10-24, feature coribo-fail-loudly. File: resolved/CORIBO-0014-sparse-solver-island-use-after-free.md
  • CORIBO-0015 (BUG) — V4ptr writes its fourth component to ptr[4]. Resolved: fe95e5c, 2026-10-24, feature coribo-fail-loudly. File: resolved/CORIBO-0015-v4ptr-writes-past-the-vector.md
  • CORIBO-0016 (BUG) — ConjugateGradientSolver gives NaN for a zero right-hand side or an exact start guess. Resolved: 0bfd42d, 2026-10-24, feature coribo-fail-loudly. File: resolved/CORIBO-0016-conjugate-gradient-zero-over-zero.md
  • CORIBO-0017 (BUG) — A failed Cholesky factorisation and a non-finite solution are not reported. Resolved: 801f257, 2026-10-24, feature coribo-fail-loudly. File: resolved/CORIBO-0017-solver-failures-pass-silently.md
  • CORIBO-0018 (BUG) — Off-diagonal blocks are keyed by column << 16 | row in an int: wrong past element 32767. Resolved: b46af03, 2026-10-24, feature coribo-fail-loudly. File: resolved/CORIBO-0018-index-key-16-bit.md
  • CORIBO-0019 (BUG) — Winch init-states loader: reads past the cable, acos of a cosine above 1, blank lines. Resolved: 3ee5d93, 2026-10-24, feature coribo-fail-loudly. File: resolved/CORIBO-0019-winch-init-states-loader-guards.md
  • CORIBO-0020 (BUG) — CollisionManager::ObjectDistance reads an uninitialised result for chamfer, toroid and plate pairs. Resolved: 4d95c71, 2026-10-24, feature coribo-fail-loudly. File: resolved/CORIBO-0020-collision-shape-pairs-without-distance.md
  • CORIBO-0021 (BUG) — ConstraintSolver caches the symplectic step at the first WriteDynamic and accepts elements after the first UpdateElements. Resolved: e40cbbb, 2026-10-24, feature coribo-fail-loudly. File: resolved/CORIBO-0021-symplectic-step-cached-and-late-elements.md
  • CORIBO-0022 (BUG) — WinchableCable accepts Beta <= 0 or NaN, LineStructure accepts zero elements, XmlInfo dereferences a null towing block. Resolved: 0a27d39, 2026-10-24, feature coribo-fail-loudly. File: resolved/CORIBO-0022-input-guards-beta-num-towing-block.md
  • CORIBO-0023 (BUG) — CollisionManager::AddPlate passes the full thickness as the plate radius, addExternalPlate half of it. Resolved: feature coribo-safety, owner ruling C-1 (2026-10-27): AddPlate passes 0.5*thickness; test CollisionManager.InternalAndExternalPlateOfEqualSizeAndThicknessGiveTheSameContactDistance, 2026-10-27.. File: resolved/CORIBO-0023-addplate-thickness-not-halved.md
  • CORIBO-0024 (API) — ConstraintSolver(double, CoreBoundThreadPool*) takes ownership through a raw pointer. Resolved: feature coribo-safety, owner ruling C-2 (2026-10-27): ConstraintSolver(double, std::unique_ptr<CoreBoundThreadPool>); test ConstraintSolver.OwnsAPoolPassedInAndDestroysItWithTheSolver, 2026-10-27.. File: resolved/CORIBO-0024-constraintsolver-pool-ownership.md
  • CORIBO-0025 (ARCHITECTURE) — Public header AsynchronousTask.h includes sched.h. Resolved: 1cddef9, 2026-10-26 (feature/win-cleanup).. File: resolved/CORIBO-0025-portability-os-header-in-public-header.md
  • CORIBO-0026 (ARCHITECTURE) — cmake -P script replace-in-file.cmake has no cmake_minimum_required. Resolved: e18d9a8, 2026-10-26 (feature/win-cleanup).. File: resolved/CORIBO-0026-portability-cmake-script-minimum-version.md
  • CORIBO-0027 (ARCHITECTURE) — CoreBoundThreadPool affinity tests exist on Linux only, no GTEST_SKIP elsewhere. Resolved: aadb19b, 2026-10-26 (feature/win-cleanup).. File: resolved/CORIBO-0027-portability-linux-only-tests-without-skip.md
  • CORIBO-0028 (BUG) — GeometricObject copies an uninitialised m_shape_type. Resolved: feature coribo-shape-init (owner, 2026-10-27): m_shape_type, m_radius and m_bounding_sphere_radius get default member initialisers; the coribo unit and integration tests run clean under -fsanitize=undefined -fno-sanitize-recover=undefined, 2026-10-27.. File: resolved/CORIBO-0028-geometricobject-shape-type-uninitialised.md
  • CORIBO-0029 (BUG) — RingStructure initial state does not satisfy its own constraints. Resolved: 76216c2, 2026-11-03. Owner ruling: a defect. R1: element centres on radius 0.5*m_elemLength/tan(pi/num) so neighbouring ends meet (m_elemLength unchanged). R2: joint null angles are the relative rotations of the neighbours at the initial state.. File: resolved/CORIBO-0029-ring-initial-state-violates-constraints.md
  • CORIBO-0030 (BUG) — RingStructure accepts fewer than three elements (division by zero, degenerate circle). Resolved: feature/review-coribo commit "CORIBO-0030: ..." (this file moved to resolved/ in that commit), 2026-11-04. Owner ruling 2026-11-04: minimum ring size 3. The constructor throws std::invalid_argument for num < 3 from the initializer list, as LineStructure does.. File: resolved/CORIBO-0030-ring-structure-fewer-than-three-elements.md
  • CORIBO-0031 (BUG) — CableSegment accepts zero elements or sub-divisions. Resolved: feature/review-coribo commit "CORIBO-0031: ..." (this file moved to resolved/ in that commit), 2026-11-04. The constructor throws std::invalid_argument for num_elements < 1 or sub_division < 1, before the environment query.. File: resolved/CORIBO-0031-cable-segment-zero-elements.md
  • CORIBO-0032 (BUG) — Winch and TowingBlock accept zero pivot arm and a flange smaller than the drum (NaN). Resolved: feature/review-coribo commit "CORIBO-0032: ..." (this file moved to resolved/ in that commit), 2026-11-04. Winch throws std::invalid_argument unless flange diameter > drum diameter > 0; TowingBlock unless pivot arm length > 0.. File: resolved/CORIBO-0032-winch-block-zero-lengths.md
  • CORIBO-0033 (BUG) — GeometryTools::Distance divides by a zero distance (NaN normal and Jacobians). Resolved: feature/review-coribo commit "CORIBO-0033: ..." (this file moved to resolved/ in that commit), 2026-11-04. Only the zero-distance case is guarded: the expressions for distance > 0 are unchanged (bit for bit). At zero distance the normal is the fixed unit vector (0,0,1), u_dot is 0 and J_dot_V is finite.. File: resolved/CORIBO-0033-geometry-distance-zero-distance.md
  • CORIBO-0034 (BUG) — Winch spooling device crosses a base-frame offset with world-frame force and angular velocity. Resolved: feature/review-coribo commit "CORIBO-0034: ..." (this file moved to resolved/ in that commit), 2026-11-04. Owner ruling 2026-11-04: fix the spooler frames, keep the code. The offset is rotated by base_Q in both places; the torque moved into SpoolingDevice::TorqueAboutWinch so a test can reach it.. File: resolved/CORIBO-0034-spooling-device-frames.md
  • CORIBO-0035 (API) — TowingBlock flagging uses a hard-coded block mass of 300 kg. Resolved: feature/review-coribo commit "CORIBO-0035: ..." (this file moved to resolved/ in that commit), 2026-11-04. Owner ruling 2026-11-04: the block mass becomes a parameter, default 300 kg (bit for bit). Last constructor argument of TowingBlock, stored in m_block_mass, documented in Winch.h.. File: resolved/CORIBO-0035-towing-block-mass-hard-coded.md
  • CORIBO-0036 (BUG) — PointRetractableCable threshold strength wraps when free rigid elements exceed sub-elements. Resolved: feature/review-coribo commit "CORIBO-0036: ..." (this file moved to resolved/ in that commit), 2026-11-04. The strength is now SubSuperThresholdGamma(num_sub_elements): 0 when the free tail is not shorter than the super-element, the unchanged expression otherwise.. File: resolved/CORIBO-0036-supergrid-threshold-gamma-wraps.md
  • CORIBO-0037 (BUG) — PointRetractableCable::AddSegment minimum threshold search wraps past the buffer size. Resolved: feature/review-coribo commit "CORIBO-0037: ..." (this file moved to resolved/ in that commit), 2026-11-04. The comparison is done in int, as the running count already is.. File: resolved/CORIBO-0037-supergrid-minimum-threshold-wraps.md
  • CORIBO-0038 (BUG) — PointRetractableCable full retraction indexes past the last super-element. Resolved: feature/review-coribo commit "CORIBO-0038: ..." (this file moved to resolved/ in that commit), 2026-11-04. Owner agent default 2026-11-04: at least one sub-element stays free. The search never retracts the last super-element whole nor its last sub-element.. File: resolved/CORIBO-0038-supergrid-full-retraction-out-of-range.md
  • CORIBO-0039 (BUG) — SupergridWinchCable threshold straightening can couple elements retracted onto the drum. Resolved: feature/review-coribo commit "CORIBO-0039: ..." (this file moved to resolved/ in that commit), 2026-11-04. The pairs to straighten come from ThresholdStraighteningPairs(), which stops at m_num_retracted_super and starts at m_num_retracted_sub there. AllocateElementBuffer clears the rigid element of the sub-element it pushes onto the winch after the reallocation (not in PushElement, where the old reallocation still reads it).. File: resolved/CORIBO-0039-supergrid-winch-threshold-walks-onto-drum.md
  • CORIBO-0040 (BUG) — GeometryTools::Distance Point-Ring divides by a zero distance. Resolved: feature/review-coribo commit "CORIBO-0040: ..." (this file moved to resolved/ in that commit), 2026-11-04. Only the zero-distance case is guarded; for distance > 0 the results are bit for bit unchanged.. File: resolved/CORIBO-0040-geometry-point-ring-zero-distance.md
  • CORIBO-0041 (BUG) — GeometryTools::Distance Point-Disk divides by a zero distance on the rim. Resolved: feature/review-coribo commit "CORIBO-0041: ..." (this file moved to resolved/ in that commit), 2026-11-04. Only the zero-distance case is guarded; for distance > 0 the results are bit for bit unchanged.. File: resolved/CORIBO-0041-geometry-point-disk-zero-distance.md
  • CORIBO-0042 (BUG) — GeometryTools::Distance Segment-Ring divides by a zero distance. Resolved: feature/review-coribo commit "CORIBO-0042: ..." (this file moved to resolved/ in that commit), 2026-11-04. Only the zero-distance case is guarded; for distance > 0 the results are bit for bit unchanged.. File: resolved/CORIBO-0042-geometry-segment-ring-zero-distance.md
  • CORIBO-0043 (BUG) — GeometryTools::Distance Segment-Disk divides by a zero distance. Resolved: feature/review-coribo commit "CORIBO-0043: ..." (this file moved to resolved/ in that commit), 2026-11-04. Only the zero-distance case is guarded; for distance > 0 the results are bit for bit unchanged.. File: resolved/CORIBO-0043-geometry-segment-disk-zero-distance.md
  • CORIBO-0044 (BUG) — SolveCatenary takes a negative total length for a catenary. Resolved: feature/review-coribo commit "CORIBO-0044: ..." (this file moved to resolved/ in that commit), 2026-11-04. Owner ruling: SolveCatenary returns NaN for a negative length as its header says; the SupergridWinchCable caller throws a clear error.. File: resolved/CORIBO-0044-catenary-negative-length.md
  • CORIBO-0045 (BUG) — Start layout of a line with equal end points is NaN. Resolved: feature/review-coribo commit "CORIBO-0045: ..." (this file moved to resolved/ in that commit), 2026-11-04. Owner ruling: fixed orientation along gravity, straight down in coribo's frame, warning once. Only PA == PB changes; every other input is bit for bit unchanged.. File: resolved/CORIBO-0045-catenary-zero-chord.md
  • CORIBO-0046 (DOCUMENTATION) — Catenary.h names local x along the curve, the code uses local z. Resolved: feature/review-coribo commit "CORIBO-0046: ..." (this file moved to resolved/ in that commit), 2026-11-04. Documentation only; no code change.. File: resolved/CORIBO-0046-catenary-header-axis.md
  • CORIBO-0047 (BUG) — WinchableCable WinchForce port returns the reaction force of the last OdeFcn. Resolved: the commit that adds WinchableCable::ComputeWinchReaction (feature odefcn-contract), 2026-11-04. File: resolved/CORIBO-0047-winch-force-port-reads-stale.md