-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segfault due to use of destructed EmergeManager #14421
Labels
Comments
AsumFace
added
the
Unconfirmed bug
Bug report that has not been confirmed to exist/be reproducible
label
Feb 29, 2024
sfan5
added
Bug
Issues that were confirmed to be a bug
and removed
Unconfirmed bug
Bug report that has not been confirmed to exist/be reproducible
labels
Feb 29, 2024
sfan5
added a commit
to sfan5/minetest
that referenced
this issue
Mar 1, 2024
sfan5
added a commit
to sfan5/minetest
that referenced
this issue
Mar 2, 2024
sfan5
added a commit
to sfan5/minetest
that referenced
this issue
Mar 3, 2024
sfan5
added a commit
to sfan5/minetest
that referenced
this issue
Mar 6, 2024
sfan5
added a commit
to sfan5/minetest
that referenced
this issue
Mar 12, 2024
sfan5
added a commit
to sfan5/minetest
that referenced
this issue
Mar 12, 2024
sfan5
added a commit
to sfan5/minetest
that referenced
this issue
Mar 14, 2024
sfan5
added a commit
to sfan5/minetest
that referenced
this issue
Mar 17, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Minetest version
Irrlicht device
No response
Operating system and version
Fedora 39
CPU model
AMD EPYC 7702P
GPU model
No response
Active renderer
No response
Summary
The
EmergeManager
may be used after it has been destructed whenServerEnvironment
is being destructed and runsdeactivateFarObjects
within as it may attempt to emerge map in order to save static objects. This results in the segmentation fault with trace shown below.At first glance, swapping the lines at
minetest/src/server.cpp
Lines 392 to 393 in bb7f57b
and adjusting the comment may resolve the issue.
Note: line numbers in
serverenvironment.cpp
may differ from vanilla 5.8.0Steps to reproduce
Issue occurs every few weeks, no reliable repro is known to me.
The text was updated successfully, but these errors were encountered: