MantisBT - Zandronum
View Issue Details
0002099Zandronum[All Projects] Bugpublic2015-02-11 00:112015-03-31 21:27
AlexMax 
 
normalminorunable to reproduce
closedno change required 
1.3 
 
0002099: GetPlayerAccountName() sometimes returns garbage.
I've been running Hypnotoad's Duel ELO beta 8 on 1.3 for a while now, and I've run into a weird issue:

'http://files.funcrusher.net/wads/duelelobeta8.pk3 [^]'

I found the following database entries in my database:

MatchResults|0_1_player0|1@localhost
MatchResults|0_1_player1|jwarrier

Looking back at my logs, I found the game in question:

*** START: WELCOME TO DUEL32 ***

[15:01:30;16:00:42] compatflags changed to: 2038381559
[15:01:30;16:00:45] Connect (v1.3): *.*.*.*:10667

<------------------------------->

<------------------------------->
[15:01:30;16:00:45] player entered the game. (from: US)
[15:01:30;16:00:58] Connect (v1.3): *.*.*.*:27194
[15:01:30;16:00:59] necrovarus has connected.
[15:01:30;16:01:00] necrovarus joined the game.
[15:01:30;16:01:01] Session error: [15:01:30;16:01:01] User could not be authenticated.
[15:01:30;16:01:05] CHAT necrovarus: hey
[15:01:30;16:01:07] Client 0 has logged in successfully as 'jwarrier'.
[15:01:30;16:01:18] [DUEL32] Duel: necrovarus %vs% player
[15:01:30;16:01:18] [DUEL32] Picked Map: JUDAS23_
[15:01:30;16:01:18] necrovarus exited the level.
[15:01:30;16:01:18]
*** JUDAS23_: JUDAS23_ ***

[15:01:30;16:01:18] compatflags changed to: 2038381559

<------------------------------->

<------------------------------->
[15:01:30;16:01:19] list/banlist.txt: 14 entries loaded.
[15:01:30;16:01:19] list/whitelist.txt: 2 entries loaded.
[15:01:30;16:01:26] necrovarus > SuperShotgun > player
[15:01:30;16:01:28] FIGHT!

// snip the actual game

[15:01:30;16:03:45] Fraglimit hit.
[15:01:30;16:03:45] player wins!
[15:01:30;16:03:45] player > Chaingun > necrovarus

<------------------------------->
1@localhost ^\cawarded ^\g0^\c elo points!

jwarrier ^\cawarded ^\f0^\c elo points!


<------------------------------->
[15:01:30;16:03:48] CHAT player: gg

This goes on for a few more games.

Any ideas?
I haven't seen this behavior before, and subsequent ranked games after these two players left worked fine.
No tags attached.
Issue History
2015-02-11 00:11AlexMaxNew Issue
2015-02-11 00:13AlexMaxNote Added: 0011655
2015-02-11 00:15AlexMaxNote Edited: 0011655bug_revision_view_page.php?bugnote_id=11655#r6615
2015-03-29 19:04Torr SamahoNote Added: 0011919
2015-03-29 19:27AlexMaxNote Added: 0011920
2015-03-31 21:27DuskNote Added: 0011953
2015-03-31 21:27DuskStatusnew => closed
2015-03-31 21:27DuskResolutionopen => no change required

Notes
(0011655)
AlexMax   
2015-02-11 00:13   
(edited on: 2015-02-11 00:15)
Forgot to mention the actual problem - the other dude's (not jwarrier) username is "1@localhost" somehow, despite not actually being logged in.

Also, according to the script, the only way that garbage data could even happen was if PlayerIsLoggedIn() was also returning true when it shouldn't for that user.

(0011919)
Torr Samaho   
2015-03-29 19:04   
Note, "playernum@localhost" is the intended return value of GetPlayerAccountName() for players that are not logged in. One should never see it though for a player that is logged in.
(0011920)
AlexMax   
2015-03-29 19:27   
15:24 < Torr_Samaho|2> AlexMax, it's not impossible that there is a bug in the
                       login mechanism. Possible the "logged in" flag is not
                       cleared under some circumstances.
(0011953)
Dusk   
2015-03-31 21:27   
Apparently this was caused by a WAD error after all.