Bug #64048 mysql_print_status() missing final fflush()
Submitted: 17 Jan 2012 12:28 Modified: 22 Mar 2012 18:30
Reporter: Hartmut Holzgraefe Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Errors Severity:S3 (Non-critical)
Version:5.1.60, 5.1.62 OS:Linux
Assigned to: CPU Architecture:Any

[17 Jan 2012 12:28] Hartmut Holzgraefe
Description:
When requesting debug status output with

  mysqladmin debug

the output in the error log (assuming that mysqld_safe was used)
seems to be truncated at first as the mallinfo() related part
is missing, this part will only show up in the error log when
debug is called a 2nd time. This makes the missing part of the
first invocation appear but then again the mallinfo() output
for the 2nd call is missing

How to repeat:
Issue "mysqladmin debug", check output in mysql error log for the "Memory status:" section ...

Suggested fix:
add an extra fflush(stdout) at the very end of mysql_print_status() in sql/sql_test.cc
[17 Jan 2012 13:00] Valeriy Kravchuk
Thank you for the bug report. Verified with current 5.1.62 on FC14.
[22 Mar 2012 18:30] Paul DuBois
Noted in 5.6.5 changelog.

Some debugging information was written to the buffer after a flush,
resulting in the information not appearing until the next flush.