Repository navigation
Commit a6e583b
committed
fix(g2p): stability fixes for cross-platform, exception safety, diagnostics, and destructor order
Consolidates 4 G2P-related stability fixes:
1. Cross-platform compile fixes (d894169):
- Add missing #include <mutex> in Runtime.cpp for std::unique_lock
- Fix alignas attribute order in JSON.cpp (alignas must precede mutable)
- Use case-insensitive regex in CMake EXCLUDE for Windows/Linux compatibility
2. Filesystem exception safety (7ccb3f0):
- Wrap filesystem operations in try-catch in PackageManager.cpp
- Use error_code overloads in Session.cpp to avoid TOCTOU races
3. Diagnostic logging (44677b8):
- Add detailed path status logging in Manager.cpp for default context
initialization to help diagnose "no modules found" issues
- Log Stage 1.1/1.2 entry conditions in LanguageServiceLang.cpp
4. Destructor order fix (92d4731):
- Move closeAllLoadedPackages() before category deletion in
PackageManager::~Impl to prevent STATUS_STACK_BUFFER_OVERRUN crash
- closePackage() needs categories alive to invoke ModuleCategory::loadSpec()
Test: 1553 CTest cases pass (0 failed, 1 skipped).1 parent 79c93ac commit a6e583b
7 files changed
Lines changed: 497 additions & 425 deletions
File tree
- lib
- Core
- Core
- Support
- G2P
- Core
- plugins/Driver/onnx/internal
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
268 | 269 | | |
269 | 270 | | |
270 | 271 | | |
271 | | - | |
272 | | - | |
273 | | - | |
| 272 | + | |
274 | 273 | | |
275 | 274 | | |
276 | 275 | | |
277 | 276 | | |
278 | 277 | | |
279 | | - | |
280 | 278 | | |
281 | 279 | | |
282 | 280 | | |
| |||
374 | 372 | | |
375 | 373 | | |
376 | 374 | | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | 375 | | |
381 | 376 | | |
382 | 377 | | |
383 | | - | |
384 | 378 | | |
385 | 379 | | |
386 | 380 | | |
| |||
484 | 478 | | |
485 | 479 | | |
486 | 480 | | |
487 | | - | |
488 | | - | |
489 | | - | |
490 | 481 | | |
491 | 482 | | |
492 | 483 | | |
493 | | - | |
494 | 484 | | |
495 | 485 | | |
496 | 486 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
291 | | - | |
| 291 | + | |
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
16 | 19 | | |
17 | 20 | | |
18 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
107 | 133 | | |
108 | | - | |
109 | | - | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
110 | 138 | | |
111 | 139 | | |
112 | 140 | | |
| |||
0 commit comments