-
Notifications
You must be signed in to change notification settings - Fork 155
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
2 Segfaults #431
Comments
Can you obtain and post a core dump for this segfault here.
The second segfault appears to be related to #429. |
Segfault for kicking host below.
|
Oddly, there aren't any line numbers in that backtrace. Could you try to locate the exact line in irc_convert_channel() where pvpgn segfaults at. |
I've updated the above comment with a bt with line numbers. |
Looks true, I fixed the crash on rehash but not on "default attrgroup" destroy which called only by server shutdown now. It require deep debugging to find whats wrong there. |
…ence and compare in attrgroup_flush(). #431
@Sora012 Are you available to test a potential fix for the first segfault? |
Sorry for delay, yeah I'm available to test. |
Try replacing https://github.com/pvpgn/pvpgn-server/blob/develop/src/bnetd/irc.cpp#L345-L348 with:
|
That fixes the server segfault, but client gets stuck on "Requesting channel list" and are forced to disconnect. I think the channel would still be listed, at least according to the PVPGN log until client disconnects.
|
Your log had your IP address in it, I deleted the link to the file and removed the original comment from the comment history. While keeping the previous change, try replacing https://github.com/pvpgn/pvpgn-server/blob/develop/src/bnetd/handle_wol.cpp#L523 with:
|
The repo you linked doesn't seem to exist or I have no access, but tried to changed that line, and tested again, nothing changed. Game still gets stuck on requesting list, after kicking myself from a game lobby as host. |
I did some testing, (Running two copies of the game, which is a PITA on same machine) The lobby does NOT list for other clients, after the host is kicked, its just a bug in how the client (game) responds to being kicked from a lobby. Segfault is fixed and this seems to be likely a bug in the game itself? Unsure. Feel free to close and patch using #431 (comment) |
…Prevents a segmentation fault when channel_get_shortname() returns a null pointer and irc_convert_channel() attempts to use it. #431
EDIT (Develop Branch)
When a host client is kicked in a WOL channel (e.g. Red Alert 2 -> create game -> /kick host) the whole server goes down with a segfault after ":No Channel" & WOL list command.
When CTRL + C server (e.g. running ./bnetd -D)
The text was updated successfully, but these errors were encountered: