FredyH / MySQLOO

MySQLOO
GNU Lesser General Public License v2.1
140 stars 55 forks source link

Map change hang #106

Closed Pierogi314 closed 2 years ago

Pierogi314 commented 2 years ago

I've been having this issue for the past few releases, and I think mysqloo is the only thing that could be causing it.

After a mapvote, the server runs a changelevel command. On rare occasions, the server hangs after this (no crash logs or anything). This is happening on a TTT server with CentOS 8 with 64 bit srcds.

Let me know if I can provide any further information.

Kefta commented 2 years ago

Could you attach a debugger (gdb works) and get a trace during one of these hangs?

FredyH commented 2 years ago

Are you using the latest version of mysqloo? The last release contains a fix for hangs in some circumstances.

Pierogi314 commented 2 years ago

Could you attach a debugger (gdb works) and get a trace during one of these hangs?

I can try - do I just add -debug as a startup flag?

Are you using the latest version of mysqloo? The last release contains a fix for hangs in some circumstances.

Yes, 9.7.3.

FredyH commented 2 years ago

Does your code have any query:wait() or db:wait() calls? If so they might be the cause. Otherwise you will have to attach gdb and generate a thread dump to see where the main thread is stuck.

FredyH commented 2 years ago

Closing due to inactivity, feel free to reopen the issue if you have more information