[MDEV-2910] LP:959701 - Client programs throw warnings about memory loss when executed with --help or alike Created: 2012-03-19  Updated: 2014-06-20  Resolved: 2012-10-04

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Trivial
Reporter: Elena Stepanova Assignee: Sergei Golubchik
Resolution: Fixed Votes: 0
Labels: Launchpad

Attachments: XML File LPexportBug959701.xml    

 Description   

When a client problem is executed with --version, or --help, or without parameters, it throws warnings about lost bytes, e.g.

Warning: 484 bytes lost, allocated at mysys/my_alloc.c:217, mysys/default.c:1203, mysys/default.c:524, mysys/default.c:468, client/mysqladmin.cc:310, ??:0
Warning: 1024 bytes lost, allocated at mysys/array.c:65, mysys/hash.c:92, mysys/thr_mutex.c:186, mysys/thr_mutex.c:323, sql-common/client_plugin.c:262, libmysql/libmysql.c:134, sql-common/client.c:1708, client/mysqladmin.cc:310
Warning: 1024 bytes lost, allocated at mysys/array.c:65, mysys/hash.c:92, mysys/thr_mutex.c:181, mysys/thr_mutex.c:323, sql-common/client_plugin.c:262, libmysql/libmysql.c:134, sql-common/client.c:1708, client/mysqladmin.cc:310

etc.

From the standard set of binaries produced with DCMAKE_BUILD_TYPE=Debug without any other parameters, observed on

  • mysqladmin
  • mysqlcheck
  • mysqldump (it's message also looks strange: (Warning: 15 bytes lost, allocated at addr2line: 'mysqldump': No such file")
  • mysqlimport
  • mysql_plugin
  • mysqlshow
  • mysqlslap
  • mysql_upgrade

maria/5.5
<email address hidden>
date: 2012-03-17 12:16:57 -0700
build-date: 2012-03-20 00:49:08 +0400
revno: 3334

Also reproducible on maria/5.5-serg
revision-id: <email address hidden>
date: 2012-03-16 10:04:23 +0100
build-date: 2012-03-20 00:49:47 +0400
revno: 3329

Not reproducible on maria/5.3, mysql-server/5.5, mysql-server/trunk.

To reproduce,

  • build the client program using cmake .. -DCMAKE_BUILD_TYPE=Debug && make;
  • start the client program, e.g. client/mysqladmin --help
  • see output.


 Comments   
Comment by Elena Stepanova [ 2012-03-19 ]

Re: Client programs throw warnings about memory loss when executed with --help or alike
Also filed in JIRA as MDEV-186

Comment by Rasmus Johansson (Inactive) [ 2012-04-03 ]

Launchpad bug id: 959701

Generated at Thu Feb 08 06:45:02 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.