Skip to content

fix: rewrite Subcommand.run using Kernel.spawn#109

Closed
doudou wants to merge 3 commits intomasterfrom
subcommand_kernel_spawn
Closed

fix: rewrite Subcommand.run using Kernel.spawn#109
doudou wants to merge 3 commits intomasterfrom
subcommand_kernel_spawn

Conversation

@doudou
Copy link
Member

@doudou doudou commented Nov 11, 2021

The current implementation was doing fork/exec by hand because it
had been created under ruby 1.8, which did not have spawn. It makes
zero sense nowadays, where there exists a multiplatform implementation
in the language itself.

@doudou doudou requested a review from g-arjones November 11, 2021 13:22
The current implementation was doing fork/exec by hand because it
had been created under ruby 1.8, which did not have spawn. It makes
zero sense nowadays, where there exists a multiplatform implementation
in the language itself.
@doudou doudou force-pushed the subcommand_kernel_spawn branch 2 times, most recently from e9cd697 to 4197e56 Compare November 12, 2021 14:10
This error started appearing in a new version of rubocop. It is
auto-correctable, so auto-correct it
@doudou doudou force-pushed the subcommand_kernel_spawn branch from 4197e56 to b713882 Compare November 12, 2021 14:11
@g-arjones
Copy link
Contributor

Looks good and a very welcome change indeed. I'm curious though, what motivated this?

@doudou
Copy link
Member Author

doudou commented Nov 17, 2021

I'm having freezes during updates in CI in the ARM docker images (running qemu-arm-static). This is new, and it seems the system gets stuck in some of the pipe handling. I thought it might help (I'm kind of desperate - but I start to believe the problem is more emulation-related).

Did not solve the issue, and I honestly still don't know what happens. Thought it would be a pity to throw a nice cleanup commit like that, so there it is.

@planthaber
Copy link
Member

@doudou we also see some freezes in CI with qemu->docker->arm, but this is (when I remember correctly) during compilation of ROS packages using catkin. We use autoproj to organize the workspace though (but not for the build).

I think that hints to an issue with the emulation rather than autobuild, as it is not used by autoproj when not buidling, right?

@doudou
Copy link
Member Author

doudou commented Nov 19, 2021

It actually is during import. But I more and more think it is an issue with QEmu indeed.

@planthaber
Copy link
Member

It actually is during import.

I meant for us it is mostly compilation with catkin.

@doudou
Copy link
Member Author

doudou commented Aug 8, 2025

Closing this one, I have a new version along with a major cleanup of the file

FYI, newer QEmu versions seem to show this problem more rarely

@doudou doudou closed this Aug 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants