azerothcore / azerothcore-wotlk

Complete Open Source and Modular solution for MMO
http://www.azerothcore.org
GNU Affero General Public License v3.0
6.53k stars 2.62k forks source link

crash on shutdown #19635

Open Nyeriah opened 2 months ago

Nyeriah commented 2 months ago

Current Behaviour

Server crashes when its about to shutdown

https://gist.github.com/Nyeriah/b7e18c8795dda0ba25a8ec29c6f24ccf

Expected Blizzlike Behaviour

Proccess exit gracefully

Source

N/A

Steps to reproduce the problem

server shutdown 5

Extra Notes

No response

AC rev. hash/commit

https://github.com/azerothcore/azerothcore-wotlk/commit/9dc20bc261eeb7be8289d50117135d80dfa03fa4

Operating system

Ubuntu 22

Custom changes or Modules

Grimdhex commented 2 months ago

I'm not able to reproduce the crash in local even with .server shutdown 5. The crash seems occurs during a unloading script, do you have others informations on context ?

Nyeriah commented 2 months ago

it also happens on the live server but there it produces a different log https://gist.github.com/Nyeriah/2c1de1814b73a837782d63c641482013

Experienced for the first time on — 04/17/2024 It happens on script unload/destruction, after everything else has been processed, we`ve received no reports of rollbacks

Grimdhex commented 2 months ago

what is the version of the live server? (If it hasn't happened before, I guess it must be a recent commit)

Winfidonarleyan commented 2 months ago

how to without all modules?

Kitzunu commented 2 months ago

I cant check crashlog, but it's a known issue on Linux. Doesnt happen on Windows, there is an open issue for it

Winfidonarleyan commented 2 months ago

Need check all listed modules for proper memory release I try shutdown clear core - all okay

Grimdhex commented 2 months ago

@Nyeriah any news since #19643 merged? Is the name of a script displayed in logs?

Nyeriah commented 2 months ago

It's still crashing (what I find odd as I don't think it was meant to with the try-catch in place) and I don't see the log message being print anywhere