Commit 9440984
committed
Fix Go extractor silent failures and improve error recovery
The extractor was calling log.Fatal() when file extraction failed, causing
the entire extraction process to terminate silently on the first error. This
was particularly problematic for OOM errors which would only appear in
build-tracer logs, not in the extractor output.
Changes:
- Replace log.Fatal() with log.Printf() to log errors without terminating
- Add panic recovery in file extraction goroutines to catch OOM errors
- Move cleanup (semaphore release, WaitGroup.Done) into defer block to
ensure proper cleanup even when panics occur
This allows extraction to continue processing remaining files when individual
files fail, and ensures errors are visible in extractor logs.1 parent 5d2ddbf commit 9440984
1 file changed
+9
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
692 | 692 | | |
693 | 693 | | |
694 | 694 | | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
695 | 703 | | |
696 | 704 | | |
697 | | - | |
| 705 | + | |
698 | 706 | | |
699 | | - | |
700 | | - | |
701 | 707 | | |
702 | 708 | | |
703 | 709 | | |
| |||
0 commit comments