Commit cd543a4
committed
test_broken_bignum: use assert_separately instead of fork + waitpid2
The raw fork + Process.waitpid2 pattern causes a SEGV on i686-linux in
ruby/ruby CI. The crash occurs in waitpid_blocking_no_SIGCHLD going
through the 32-bit vdso, which is a Ruby VM / kernel interaction issue
unrelated to the json gem itself.
Using assert_separately avoids this by spawning a subprocess via
IO.popen instead of raw fork + waitpid2, and is also the idiomatic
pattern for running test code in an isolated process within ruby/ruby's
test framework.1 parent bfd63d4 commit cd543a4
1 file changed
Lines changed: 6 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
476 | 476 | | |
477 | 477 | | |
478 | 478 | | |
479 | | - | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
480 | 483 | | |
481 | 484 | | |
482 | 485 | | |
483 | 486 | | |
484 | 487 | | |
485 | | - | |
| 488 | + | |
486 | 489 | | |
487 | | - | |
488 | | - | |
489 | | - | |
490 | 490 | | |
491 | | - | |
492 | | - | |
493 | | - | |
494 | | - | |
495 | | - | |
496 | | - | |
| 491 | + | |
497 | 492 | | |
498 | 493 | | |
499 | 494 | | |
| |||
0 commit comments