Repository navigation
Conversation
Investigation findings and next steps for the segfault in ' C++ CI Serial Programs Mac Intel' during the first PaddleOCR ONNX session creation. The crashing code is unrelated to the TCP socket work; see the document for the evidence, code map and hypotheses.
This was referenced Nov 1, 2026
Collaborator
Author
|
Closing: the investigation in #1812 found the Mac Intel exit-139 was not in PaddleOCR/ONNX Runtime at all — it was the stack-use-after-return in the Qt server socket's |
This was referenced Nov 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Draft handoff for the PaddleOCR crash in
C++ CI Serial Programs Mac Intel.The full investigation lives in
MacPaddleOCRCrash_Handoff.md(crash/control run table, log pattern, what was ruled out, code map, ranked
hypotheses, and concrete next steps including two ready-to-paste CI
snippets for capturing a stack trace).
Summary:
macos-15-intelsegfaults (exit 139) during the first PaddleOCR ONNXsession creation of the test run, ~0.1s after the
"Set potential model cache path in session options" stdout line
(
SerialPrograms/Source/ML/Models/ML_ONNXRuntimeHelpers.cpp:28).CPU-only sessions (CI default
USE_GPU = false); no CoreML involved.and 2; Sockets: add the POSIX ServerSocket #1793 Mac Intel), all with three
Test_SandwichRecipeDetectortests starting within ~2ms and the sockettest
Sockets (Qt) - Rapid reconnectstill running; one run had thesame overlap and survived. No crash on main, on Mac arm64, or on Sockets: add the WinSocket ServerSocket #1794's
Mac Intel.
window; socket tests all passed before it; byte-identical socket code
passed Mac CI earlier), the GPU/CoreML path, model-cache writes (none on
CPU), and a main regression.
cache race in
ML_ONNXRuntimeHelpers.cpp(all PaddleOCR rec modelsshare one cache dir +
HASH.txt;clean_up_old_model_cache()doesremove_allon hash mismatch with no synchronization, andensure_paddle_ocr_instance()only serializes per language group).Only reachable when the cache is actually written (GPU path / user
machines), but worth a small standalone fix.
No code changes in this PR - documentation only, for handing off to
another session.
Run IDs and gh commands for every log referenced are in the document.