Commit 16452e1
authored
Frequent crashes in LLBuildProgressTracker while building swift-java on linux and swift 6.1.2 (#8998)
Frequent crashes in LLBuildProgressTracker while building swift-java on
linux and swift 6.1.2
### Motivation:
> Thread 4 crashed:
>
> 0 0x00007f1559da359a swift_slowAlloc + 74 in
[libswiftCore.so](http://libswiftcore.so/)
> 1 [ra] 0x00007f1559da3877 swift_allocObject + 38 in
[libswiftCore.so](http://libswiftcore.so/)
> 2 [ra] 0x00007f1559b85571 _allocateStringStorage(codeUnitCapacity:) +
160 in [libswiftCore.so](http://libswiftcore.so/)
> 3 [ra] 0x00007f1559d03452 _StringGuts.grow(_:) + 273 in
[libswiftCore.so](http://libswiftcore.so/)
> 4 [ra] 0x00007f1559bf7e88 specialized static
String._fromUTF8Repairing(_:) + 999 in
[libswiftCore.so](http://libswiftcore.so/)
> 5 [ra] [inlined] [system] 0x000056315a96e7ef specialized
String.init<A, B>(decoding:as:) in swift-package at
//<compiler-generated>
> 6 [ra] [inlined] 0x000056315a96e7ef stringFromData(_:) in
swift-package at
/home/build-user/llbuild/products/llbuildSwift/Internals.swift:49:12
> 7 [ra] 0x000056315a96e7ef Command.name.getter + 78 in swift-package at
/home/build-user/llbuild/products/llbuildSwift/BuildSystemBindings.swift:720:20
> 8 [ra] 0x00005631593a61a2 closure #1 in
LLBuildProgressTracker.commandProcessFinished(_:process:result:) + 33 in
swift-package at
/home/build-user/swiftpm/Sources/Build/LLBuildProgressTracker.swift:347:65
> 9 [ra] [thunk] 0x00005631592f6989 thunk for @escaping
@callee_guaranteed @sendable () -> () + 24 in swift-package at
//<compiler-generated>
### Modifications:
Command is associated with a handle (pointer) that may be reclaimed when
this function finishes.
### Result:
Do not access command attributes asynchronously1 parent 53116b5 commit 16452e1
1 file changed
+21
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
279 | 279 | | |
280 | 280 | | |
281 | 281 | | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
282 | 285 | | |
283 | 286 | | |
284 | 287 | | |
| |||
288 | 291 | | |
289 | 292 | | |
290 | 293 | | |
291 | | - | |
292 | | - | |
| 294 | + | |
| 295 | + | |
293 | 296 | | |
294 | 297 | | |
295 | 298 | | |
| |||
345 | 348 | | |
346 | 349 | | |
347 | 350 | | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
348 | 354 | | |
349 | | - | |
| 355 | + | |
350 | 356 | | |
351 | 357 | | |
352 | 358 | | |
353 | | - | |
| 359 | + | |
354 | 360 | | |
355 | 361 | | |
356 | 362 | | |
| |||
362 | 368 | | |
363 | 369 | | |
364 | 370 | | |
365 | | - | |
| 371 | + | |
366 | 372 | | |
367 | 373 | | |
368 | 374 | | |
369 | 375 | | |
370 | 376 | | |
371 | | - | |
| 377 | + | |
372 | 378 | | |
373 | 379 | | |
374 | 380 | | |
| |||
536 | 542 | | |
537 | 543 | | |
538 | 544 | | |
539 | | - | |
540 | | - | |
| 545 | + | |
| 546 | + | |
541 | 547 | | |
542 | 548 | | |
543 | 549 | | |
| |||
564 | 570 | | |
565 | 571 | | |
566 | 572 | | |
567 | | - | |
| 573 | + | |
568 | 574 | | |
569 | 575 | | |
570 | 576 | | |
571 | 577 | | |
572 | 578 | | |
573 | 579 | | |
574 | | - | |
575 | | - | |
| 580 | + | |
| 581 | + | |
576 | 582 | | |
577 | | - | |
578 | | - | |
579 | | - | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
580 | 586 | | |
581 | 587 | | |
582 | 588 | | |
583 | 589 | | |
584 | 590 | | |
585 | 591 | | |
586 | 592 | | |
587 | | - | |
| 593 | + | |
588 | 594 | | |
589 | 595 | | |
590 | 596 | | |
| |||
0 commit comments