server segfaults

Post Reply
superfloh
Member
Posts: 39
Joined: Tue Mar 09, 2021 10:14
GitHub: superfloh247

server segfaults

by superfloh » Post

minetest and minetest_game latest git master

lldb output:
Process 72294 stopped
* thread #2, name = 'Server', stop reason = EXC_BAD_ACCESS (code=1, address=0x20)
frame #0: 0x00000001000f689a minetestserver`UnitSAO::clearChildAttachments() + 80
minetestserver`UnitSAO::clearChildAttachments:
-> 0x1000f689a <+80>: movq 0x20(%rax), %rax
0x1000f689e <+84>: xorps %xmm0, %xmm0
0x1000f68a1 <+87>: movaps %xmm0, -0x40(%rbp)
0x1000f68a5 <+91>: movq $0x0, -0x30(%rbp)
Target 0: (minetestserver) stopped.

What other information is needed to contribute to problem fixing?

superfloh
Member
Posts: 39
Joined: Tue Mar 09, 2021 10:14
GitHub: superfloh247

Re: server segfaults

by superfloh » Post

More details:
seems to happen quite often (but not always) when the last player quits

2021-06-25 10:22:10: ACTION[Server]: xyz leaves game. List of players:
2021-06-25 10:22:10: WARNING[Server]: ScriptApiBase::objectrefGetOrCreate(): Pushing ObjectRef to removed/deactivated object, this is probably a bug.
Segmentation fault: 11

latest git master of minetest, just mineclone2 latest git as game.

I'll try to reproduce this with lldb enabled.

/Edit:
the warning also comes when a player leaves, but other players are still in the game. no crash
2021-06-25 10:32:28: WARNING[Server]: ScriptApiBase::objectrefGetOrCreate(): Pushing ObjectRef to removed/deactivated object, this is probably a bug.

User avatar
jjk1
Member
Posts: 385
Joined: Sun Mar 10, 2019 17:00
GitHub: jjk4
IRC: jjk1
In-game: jjk1
Contact:

Re: server segfaults

by jjk1 » Post

I have the same problem on my server. I very often get a "segmentation fault" (German: Speicherzugriffsfehler). And it gets more and more, until I restore a backup. But that doesnt solves the problem. After some months I need to restore a backup again.
Minetest 5.4.1 stable
latest MineClone2 from production branch
Mods see here: viewtopic.php?f=21&t=25823
RaspberryPi 4, 4GB overclocked to 2GHz
Kingston A2000 SATA M.2 SSD
Raspbian 10

sfan5
Moderator
Posts: 4093
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5
Location: Germany

Re: server segfaults

by sfan5 » Post

You should report this to the issue tracker with steps to reproduce and (ideally) a backtrace from a debug build. It's much more likely to get looked at there.
Mods: Mesecons | WorldEdit | Nuke & Minetest builds for Windows (32-bit & 64-bit)

User avatar
Festus1965
Member
Posts: 4181
Joined: Sun Jan 03, 2016 11:58
GitHub: Festus1965
In-game: Festus1965 Thomas Thailand Explorer
Location: Thailand ChiangMai
Contact:

Re: server segfaults

by Festus1965 » Post

jjk1 wrote:
Mon Jun 28, 2021 14:04
Minetest 5.4.1 stable
change this !
Human has no future (climate change)
If urgend, you find me in Roblox (as CNXThomas)

User avatar
jjk1
Member
Posts: 385
Joined: Sun Mar 10, 2019 17:00
GitHub: jjk4
IRC: jjk1
In-game: jjk1
Contact:

Re: server segfaults

by jjk1 » Post

sfan5 wrote:
Wed Jun 30, 2021 20:09
You should report this to the issue tracker with steps to reproduce and (ideally) a backtrace from a debug build. It's much more likely to get looked at there.
Done! https://github.com/minetest/minetest/issues/11407
Festus1965 wrote:
Thu Jul 01, 2021 03:11
jjk1 wrote:
Mon Jun 28, 2021 14:04
Minetest 5.4.1 stable
change this !
I noticed, that the earlier Minetest versions are much more stable than the newer one, too, but Mineclone requires at least 5.4.0

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests