Bug 3552 - Console output of 'status' (maybe others) stripped.
Status: RESOLVED FIXED
Alias: None
Product: ioquake3
Classification: Unclassified
Component: Misc
Version: GIT MASTER
Hardware: Sun Solaris
: P3 normal
Assignee: Zachary J. Slater
QA Contact: ioquake3 bugzilla mailing list
URL:
Depends on:
Blocks:
 
Reported: 2008-02-21 06:15 EST by Vincent Cojot
Modified: 2008-03-25 06:13:00 EDT
0 users

See Also:



Description Vincent Cojot 2008-02-21 06:15:27 EST
ever since the last few version of SVN head, I noticed that console output of the dedicated server was chopped off (a little over 512bytes, from what I would say):

With only two bots, I get:
----------------------------SCREENSHOT--------------------------------------
]status
map: q3dm17
num score ping name            lastmsg address               qport rate
--- ----- ---- --------------- ------- --------------------- ----- -----
  0    -1    0 Bones^7                50 bot                       0 16384
  1     1    0 Bones^7               100 bot                       0 16384
 
Kill: 1 0 6: Bones killed Bones by MOD_ROCKET
Item: 1 item_health_large
]status
----------------------------SCREENSHOT--------------------------------------

but with over 5-6 bots, the display is incomplete (7 bots in this example):
----------------------------SCREENSHOT--------------------------------------
]status
map: q3dm17
num score ping name            lastmsg address               qport rate
--- ----- ---- --------------- ------- --------------------- ----- -----
  0    -2    0 Bones^7               100 bot                       0 16384
  1     3    0 Bones^7               100 bot                       0 16384
  2     0    0 Bones^7               100 bot                       0 16384
  3     0    0 Bones^7               100 bot                       0 16384
  4     1    0 Bones^7                50 bot                       0 16384
  5     0    0 Bones^7                50 bot             Kill: 3 0 1: Bones killed Bones by MOD_SHOT
GUN
Item: 6 weapon_shotgun
Kill: 3 2 1: Bones killed Bones by MOD_SHOTGUN
----------------------------SCREENSHOT--------------------------------------

I have tested this on Solaris/Sparc.. maybe related to the latest snprinf() changes...
Comment 1 Tim Angus 2008-02-21 07:06:35 EST
(In reply to comment #0)
> I have tested this on Solaris/Sparc.. maybe related to the latest snprinf()
> changes...

Can you be more specific?
Comment 2 Vincent Cojot 2008-02-21 08:05:43 EST
I was thinking of the changes introduced in rev1250 but I am unsure how they could have caused what I was seeing..
Comment 3 Vincent Cojot 2008-02-21 08:08:09 EST
Just verified that it doesn't happen on Linux (RHEL4U6).
Comment 4 Vincent Cojot 2008-03-25 06:13:00 EDT
Cannot reproduce anymore. No idea why.