memleak in 4.1

memleak in 4.1

am 25.01.2003 10:10:48 von Georg Richter

Hi,

how-to-repeat:

1) Start mysqld:
vivaldi:/home/georg/work/php/php5 # /usr/local/mysql/libexec/mysqld --debug
--user=mysql &
[1] 26337
vivaldi:/home/georg/work/php/php5 # 030125 10:03:19 InnoDB: Started
/usr/local/mysql/libexec/mysqld: ready for connections

2) run client_test (which fails in test_fetch_str)
#####################################
2 of (1/1): test_fetch_str
#####################################

Packets out of order (Found: 2, expected 1)

[MySQL-4.1.0-alpha-debug-log][2013] Lost connection to MySQL server during
query
test: client_test.c:2696: bind_fetch: Assertion `rc == 0' failed.
total parameters in stmt: 7 (expected: 7)Abgebrochen
vivaldi:/home/georg/work/mysqltest/client_test #


3) Shutdown mysqld

vivaldi:/home/georg/work/php/php5 # /usr/local/mysql/bin/mysqladmin shutdown
030125 10:03:30 Got signal 15 to shutdown mysqld
030125 10:03:30 /usr/local/mysql/libexec/mysqld: Normal shutdown

030125 10:03:30 InnoDB: Starting shutdown...
030125 10:03:31 InnoDB: Shutdown completed
030125 10:03:32 /usr/local/mysql/libexec/mysqld: Shutdown Complete

cNewCount: 2
Memory that was not free'ed (48 bytes):
32 bytes at 0x008a2daa0, allocated at line 688 in
'sql_prepare.cc'
16 bytes at 0x0085adf20, allocated at line 283 in 'sql_list.h'
Maximum memory usage: 201668329 bytes (196942k)
[1]+ Done /usr/local/mysql/libexec/mysqld --debug
--user=mysql

Regards

Georg

------------------------------------------------------------ ---------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)

To request this thread, e-mail bugs-thread13582@lists.mysql.com
To unsubscribe, e-mail

Re: memleak in 4.1

am 26.01.2003 07:27:52 von Venu

On Sat, 2003-01-25 at 01:10, Georg Richter wrote:
> Hi,
>
> how-to-repeat:
>
> 1) Start mysqld:
> vivaldi:/home/georg/work/php/php5 # /usr/local/mysql/libexec/mysqld --debug
> --user=mysql &
> [1] 26337
> vivaldi:/home/georg/work/php/php5 # 030125 10:03:19 InnoDB: Started
> /usr/local/mysql/libexec/mysqld: ready for connections
>
> 2) run client_test (which fails in test_fetch_str)
> #####################################
> 2 of (1/1): test_fetch_str
> #####################################
>
> Packets out of order (Found: 2, expected 1)
>
> [MySQL-4.1.0-alpha-debug-log][2013] Lost connection to MySQL server during
> query
> test: client_test.c:2696: bind_fetch: Assertion `rc == 0' failed.
> total parameters in stmt: 7 (expected: 7)Abgebrochen
> vivaldi:/home/georg/work/mysqltest/client_test #
>
>
> 3) Shutdown mysqld
>
> vivaldi:/home/georg/work/php/php5 # /usr/local/mysql/bin/mysqladmin shutdown
> 030125 10:03:30 Got signal 15 to shutdown mysqld
> 030125 10:03:30 /usr/local/mysql/libexec/mysqld: Normal shutdown
>
> 030125 10:03:30 InnoDB: Starting shutdown...
> 030125 10:03:31 InnoDB: Shutdown completed
> 030125 10:03:32 /usr/local/mysql/libexec/mysqld: Shutdown Complete
>
> cNewCount: 2
> Memory that was not free'ed (48 bytes):
> 32 bytes at 0x008a2daa0, allocated at line 688 in
> 'sql_prepare.cc'
> 16 bytes at 0x0085adf20, allocated at line 283 in 'sql_list.h'
> Maximum memory usage: 201668329 bytes (196942k)
> [1]+ Done /usr/local/mysql/libexec/mysqld --debug
> --user=mysql
>
> Regards

Georg,

Thanks for the bug report.

But, looks like you need to do a full rebuild as couple of headers and
client-server packets got changed recently.

Just do a re-pull and after the re-build, if the test still fails(if it
fails obviously you get a memory leak, if succeeded, you shouldn't get
into this), please report back to us.

At my end the test goes through fine, and even for other couple of
developers, it just goes through fine.

Please let me know the status.

Thanks

--
Regards, Venu
For technical support contracts, go to https://order.mysql.com
__ ___ ___ ____ __
/ |/ /_ __/ __/ __ \/ / Mr. Venu
/ /|_/ / // /\ \/ /_/ / /__ MySQL AB, Developer
/_/ /_/\_, /___/\___\_\___/ Palo Alto, CA-94306, USA
<___/ www.mysql.com

Join MySQL Users Conference and Expo:
http://www.mysql.com/events/uc2003/

------------------------------------------------------------ ---------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)

To request this thread, e-mail bugs-thread13594@lists.mysql.com
To unsubscribe, e-mail

Re: memleak in 4.1

am 26.01.2003 15:41:26 von Georg Richter

On Sunday 26 January 2003 07:27, Venu wrote:
> Georg,
>
> Thanks for the bug report.
>
> But, looks like you need to do a full rebuild as couple of headers and
> client-server packets got changed recently.
>
> Just do a re-pull and after the re-build, if the test still fails(if it
> fails obviously you get a memory leak, if succeeded, you shouldn't get
> into this), please report back to us.
>
> At my end the test goes through fine, and even for other couple of
> developers, it just goes through fine.
>

Hi Venu,

Still the same problem (I killed all mysql stuff from my machine, including
libs and include files), pulled a complete new tree but still have the same
problem.

The packet error occurs after 2nd call to mysql_execute (same behaviour in
the new PHP/MySQL extension).

Output from client_test:

#####################################
2 of (1/1): test_fetch_str
#####################################

Packets out of order (Found: 2, expected 1)

[MySQL-4.1.0-alpha-debug-log][2013] Lost connection to MySQL server during
query
lt-client_test: client_test.c:2696: bind_fetch: Assertion `rc == 0' failed.
total parameters in stmt: 7 (expected: 7)Aborted


MySQL was compiled via BUILD/compile-pentium-debug.
gcc version is 2.95.3

I just talked with Jocelyn, he has the same problem.

Regards

Georg

------------------------------------------------------------ ---------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)

To request this thread, e-mail bugs-thread13597@lists.mysql.com
To unsubscribe, e-mail

Re: memleak in 4.1

am 28.01.2003 03:01:29 von Venu

> >
>
> Hi Venu,
>
> Still the same problem (I killed all mysql stuff from my machine, including
> libs and include files), pulled a complete new tree but still have the same
> problem.
>
> The packet error occurs after 2nd call to mysql_execute (same behaviour in
> the new PHP/MySQL extension).
>

Georg, still no luck. I just runs fine for me ( I tried from my 2 Linux
boxes RH 8.0 and SuSE 8.1, and from our build system).

Also, Serg and Sanja tried, and it also passes for them, but Sinisa had
some problems, but yet to see what is happing at his end, though its not
this failure.

Thanks

--
Regards, Venu
For technical support contracts, go to https://order.mysql.com
__ ___ ___ ____ __
/ |/ /_ __/ __/ __ \/ / Mr. Venu
/ /|_/ / // /\ \/ /_/ / /__ MySQL AB, Developer
/_/ /_/\_, /___/\___\_\___/ Palo Alto, CA-94306, USA
<___/ www.mysql.com

Join MySQL Users Conference and Expo:
http://www.mysql.com/events/uc2003/

------------------------------------------------------------ ---------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)

To request this thread, e-mail bugs-thread13607@lists.mysql.com
To unsubscribe, e-mail

Re: memleak in 4.1

am 28.01.2003 13:16:17 von Georg Richter

On Tuesday 28 January 2003 03:01, Venu wrote:

> Georg, still no luck. I just runs fine for me ( I tried from my 2 Linux
> boxes RH 8.0 and SuSE 8.1, and from our build system).
>
> Also, Serg and Sanja tried, and it also passes for them, but Sinisa had
> some problems, but yet to see what is happing at his end, though its not
> this failure.

Very strange, when I just copied the binaries to another server it runs
without problems.

Now I reinstalled complete system and it works fine..

Georg

------------------------------------------------------------ ---------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)

To request this thread, e-mail bugs-thread13613@lists.mysql.com
To unsubscribe, e-mail