I cannot login to bugs.ruby-lang.org because they're requiring 2 factor auth in a way that is not convenient for me. So I probabily will not report Ruby bugs anymore there.
As a last resort, I'd like to inform people here about a bug that I seem to run into constantly. It is very hard to reproduce though because of the heavy non-deterministic math behind it.
So I use Ruby v3.0.2 compiled from source on Ubuntu GNU/Linux 18.04 LTS and I use Ractors heavily to make computations parallel. And from time to time I get the following error message (fish is the shell I'm calling the script from):
free(): invalid pointer
fish: “./script.rb” terminated by signal SIGABRT (Abort)
Any idea of how to track it down or find more info?
On Monday, October 11th, 2021 at 9:44 AM, horv77 <horv77@protonmail.com> wrote:
Hi all,
I cannot login to bugs.ruby-lang.org because they're requiring 2 factor auth in a way that is not convenient for me. So I probabily will not report Ruby bugs anymore there.
As a last resort, I'd like to inform people here about a bug that I seem to run into constantly. It is very hard to reproduce though because of the heavy non-deterministic math behind it.
So I use Ruby v3.0.2 compiled from source on Ubuntu GNU/Linux 18.04 LTS and I use Ractors heavily to make computations parallel. And from time to time I get the following error message (fish is the shell I'm calling the script from):
free(): invalid pointer
fish: “./script.rb” terminated by signal SIGABRT (Abort)
Any idea of how to track it down or find more info?
Could it have been that I had run the code with a time prefix to measure memory and cpu usage? This is not the bash shell's time command but the one in /usr/bin/time on Linux. Could that cause a segmentation fault? Nothing else is different to any of my other systems.
Andras
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
···
On Monday, October 11th, 2021 at 5:48 PM, horv77 <horv77@protonmail.com> wrote:
Hi All,
I could reproduce the segmentation fault. This part of a function seems to cause it:
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Monday, October 11th, 2021 at 9:44 AM, horv77 <horv77@protonmail.com> wrote:
Hi all,
I cannot login to bugs.ruby-lang.org because they're requiring 2 factor auth in a way that is not convenient for me. So I probabily will not report Ruby bugs anymore there.
As a last resort, I'd like to inform people here about a bug that I seem to run into constantly. It is very hard to reproduce though because of the heavy non-deterministic math behind it.
So I use Ruby v3.0.2 compiled from source on Ubuntu GNU/Linux 18.04 LTS and I use Ractors heavily to make computations parallel. And from time to time I get the following error message (fish is the shell I'm calling the script from):
free(): invalid pointer
fish: “./script.rb” terminated by signal SIGABRT (Abort)
Any idea of how to track it down or find more info?