Page 1 of 1

[1.1.104] random Segmentation faults with coredumps (Noise.cpp:626)

Posted: Mon Feb 12, 2024 10:09 am
by Grifonice99
With the latest version of the headless server for linux I am experiencing several crashes (Segmentation fault).
Analyzing the coredumps with coredumpctl debug <pid> I noticed that it is always the same function that fails in /tmp/factorio-build-p7gquL/src/Noise/Noise.cpp:626.
Below I attach all the collected material.

Re: [1.1.104] random Segmentation faults with coredumps (Noise.cpp:626)

Posted: Mon Feb 12, 2024 11:09 am
by Genhis
Hello, please attach the save file and the server log file which contains the crash.

Re: [1.1.104] random Segmentation faults with coredumps (Noise.cpp:626)

Posted: Mon Feb 12, 2024 1:24 pm
by Grifonice99
The log file of the server are already attached on the post.
Below i attach the save file (that are basically a new game started with factorio 1.1.101 with 6 minutes of playtime).

On the log are not present the crash because factorio are been killed by the kernel (Segmentation fault).

Re: [1.1.104] random Segmentation faults with coredumps (Noise.cpp:626)

Posted: Mon Feb 12, 2024 1:36 pm
by Grifonice99
Below i post two .7z containing the two crashdumps.

Re: [1.1.104] random Segmentation faults with coredumps (Noise.cpp:626)

Posted: Mon Feb 12, 2024 3:12 pm
by Rseding91
Grifonice99 wrote:
Mon Feb 12, 2024 1:24 pm
On the log are not present the crash because factorio are been killed by the kernel (Segmentation fault).
That's super strange because we detect segmentation faults and write the current stack trace when they happen. So if it's not triggering that logic it sounds like the OS is possibly halting the process and killing it itself instead of allowing the normal internal crash logic to happen.

Re: [1.1.104] random Segmentation faults with coredumps (Noise.cpp:626)

Posted: Mon Feb 12, 2024 3:18 pm
by Genhis
Grifonice99 wrote:
Mon Feb 12, 2024 1:24 pm
On the log are not present the crash because factorio are been killed by the kernel (Segmentation fault).
In that case, do you have the full stack trace? Can you reproduce this crash repeatedly?

The save file has mods which aren't on the mod portal, can you upload them?

Re: [1.1.104] random Segmentation faults with coredumps (Noise.cpp:626)

Posted: Mon Feb 12, 2024 4:07 pm
by Grifonice99
Genhis wrote:
Mon Feb 12, 2024 3:18 pm
Grifonice99 wrote:
Mon Feb 12, 2024 1:24 pm
On the log are not present the crash because factorio are been killed by the kernel (Segmentation fault).
In that case, do you have the full stack trace? Can you reproduce this crash repeatedly?

The save file has mods which aren't on the mod portal, can you upload them?
The segmentation fault happens randomly during gameplay and with always different crash times.

For the mod for now i would prefer not to publish it which is in wip, if ever i am willing to send it privately.

In any case the mod only adds belt and some furnaces that are not even unlocked at that point of gameplay.

Re: [1.1.104] random Segmentation faults with coredumps (Noise.cpp:626)

Posted: Mon Feb 12, 2024 4:50 pm
by Rseding91
Grifonice99 wrote:
Mon Feb 12, 2024 4:07 pm
Anyway the segmentation fault happens randomly during gameplay and with always different crash times.
This screams unstable/failing hardware to me. Additionally if there was some issue with noise logic I would expect there to be a lot more crashes and a lot more people here complaining. The automatic crash logs don't show a single crash around noise logic in 1.1.104 and we just have this one report so far.

Could you run a memory test on that computer? https://www.memtest.org/

Re: [1.1.104] random Segmentation faults with coredumps (Noise.cpp:626)

Posted: Mon Feb 12, 2024 6:14 pm
by Grifonice99
Rseding91 wrote:
Mon Feb 12, 2024 4:50 pm
Grifonice99 wrote:
Mon Feb 12, 2024 4:07 pm
Anyway the segmentation fault happens randomly during gameplay and with always different crash times.
This screams unstable/failing hardware to me. Additionally if there was some issue with noise logic I would expect there to be a lot more crashes and a lot more people here complaining. The automatic crash logs don't show a single crash around noise logic in 1.1.104 and we just have this one report so far.

Could you run a memory test on that computer? https://www.memtest.org/
After doing an update of the whole os (linux) it seems to have been resolved.