Segmentation fault when running binary in a job

I’m trying to run a binary located here:

https://github.com/ceifa/lory-gmod-servers/tree/master/bin

But i’m receiving a segmentation fault error, as you can see here:

https://github.com/ceifa/lory-gmod-servers/runs/671286870

Running locally(wsl) or using act it works great. Anyone have seen this before or have a tip to fix it?

@ceifa ,

I also tested and can reproduce this issue, and I tried the below commands to set the max size of a core dump, but it did not work.

ulimit -c unlimited
sudo sysctl -w kernel.core_pattern=/tmp/core-%e.%p.%h.%t

Some other ways also did not work.

I have reported your feedback to the appropriate engineering team for further investigation and evaluation. If they have any progress, I will notify you in time, and sometimes the appropriate engineers may directly reply you here.

1 Like

@ceifa,
In general, you can’t precompile code on one Linux system and have it run on another unless you take special precautions.
On Windows, this works because Windows defines a portable executable format.

Which special precautions?
I tried running with a real ubuntu, tried with a ubuntu container and wsl 2 on windows and tried with act project. All of these worked.
Is there a way to simulate the error on my machine?