Bug #60083 Error & core dump when starting cluster
Submitted: 10 Feb 2011 10:49 Modified: 24 Feb 2018 23:53
Reporter: Andrew Morgan Email Updates:
Status: No Feedback Impact on me:
None 
Category:MySQL Cluster Manager: Agent Severity:S3 (Non-critical)
Version:MCM 1.1.0 OS:Linux (Ubuntu 10.0.4)
Assigned to: MySQL Verification Team CPU Architecture:Any

[10 Feb 2011 10:49] Andrew Morgan
Description:
Using MCM 1.1.0 for RHEL5 32 bit from E-Delivery on Ubuntu 10.0.4

Attempted to create cluster but fails with a core dump when trying to start the Cluster

mysql> create site --hosts=192.168.1.5 mysite;
+---------------------------+
| Command result            |
+---------------------------+
| Site created successfully | 
+---------------------------+
1 row in set (0.13 sec)

mysql> add package --basedir=/usr/local/mysql_6_3_39 6_3;
+----------------------------+
| Command result             |
+----------------------------+
| Package added successfully | 
+----------------------------+
1 row in set (0.71 sec)

mysql> add package --basedir=/usr/local/mysql_7_1_9a 7_1;
+----------------------------+
| Command result             |
+----------------------------+
| Package added successfully | 
+----------------------------+
1 row in set (1.26 sec)

mysql> create cluster --package=6_3 --processhosts=ndb_mgmd@192.168.1.5,ndbd@192.168.1.5,ndbd@192.168.1.5,mysqld@192.168.1.5,mysqld@192.168.1.5 mycluster;
+------------------------------+
| Command result               |
+------------------------------+
| Cluster created successfully | 
+------------------------------+
1 row in set (3.77 sec)

mysql> start cluster mycluster;
mysql-proxy: malloc.c:4630: _int_malloc: Assertion `(unsigned long)(size) >= (unsigned long)(nb)' failed.
ERROR 2013 (HY000): Lost connection to MySQL server during query

Can't see anything interesting in the log files; core file available if required.

How to repeat:
Follow instructions above
[10 Feb 2011 11:26] Andrew Morgan
Tried again but using the SUSE binary and got the error information below. Had debug level logging enabled and so will attach the log file.

mysql> start cluster mycluster;
*** glibc detected *** /home/billy/mysql/mcm2/libexec/mysql-proxy: malloc(): memory corruption: 0x097488a8 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6(+0x6b591)[0x6a8591]
/lib/tls/i686/cmov/libc.so.6(+0x6e395)[0x6ab395]
/lib/tls/i686/cmov/libc.so.6(__libc_malloc+0x5c)[0x6acf9c]
/lib/tls/i686/cmov/libc.so.6(vasprintf+0x118)[0x69d1a8]
/home/billy/mysql/mcm2/lib/libglib-2.0.so.0(g_vasprintf+0x37)[0x234df7]
/home/billy/mysql/mcm2/lib/libglib-2.0.so.0(g_string_append_vprintf+0x3e)[0x222e74]
/home/billy/mysql/mcm2/lib/libglib-2.0.so.0(g_string_append_printf+0x1f)[0x222f20]
/home/billy/mysql/mcm2/lib/mysql-cluster-manager/libmanager.so(mysqld_open_connection+0x157)[0x9190ac]
/home/billy/mysql/mcm2/lib/mysql-cluster-manager/libmanager.so(+0xaf265)[0x8f6265]
/home/billy/mysql/mcm2/lib/mysql-cluster-manager/libmanager.so(start_status_thread+0x1714)[0x8f8559]
/home/billy/mysql/mcm2/lib/libglib-2.0.so.0(+0x608f4)[0x2298f4]
/lib/tls/i686/cmov/libpthread.so.0(+0x596e)[0x83396e]
/lib/tls/i686/cmov/libc.so.6(clone+0x5e)[0x70aa4e]
======= Memory map: ========
00110000-00132000 r-xp 00000000 08:05 1831619    /home/billy/mysql/mcm2/lib/liblua-5.1.so
00132000-00133000 r--p 00021000 08:05 1831619    /home/billy/mysql/mcm2/lib/liblua-5.1.so
00133000-00134000 rw-p 00022000 08:05 1831619    /home/billy/mysql/mcm2/lib/liblua-5.1.so
00134000-0015a000 r-xp 00000000 08:05 1831632    /home/billy/mysql/mcm2/lib/libpcre.so.0.0.1
0015a000-0015b000 r--p 00025000 08:05 1831632    /home/billy/mysql/mcm2/lib/libpcre.so.0.0.1
0015b000-0015c000 rw-p 00026000 08:05 1831632    /home/billy/mysql/mcm2/lib/libpcre.so.0.0.1
0015c000-00165000 r-xp 00000000 08:05 1700614    /lib/tls/i686/cmov/libcrypt-2.11.1.so
00165000-00166000 r--p 00008000 08:05 1700614    /lib/tls/i686/cmov/libcrypt-2.11.1.so
00166000-00167000 rw-p 00009000 08:05 1700614    /lib/tls/i686/cmov/libcrypt-2.11.1.so
00167000-0018e000 rw-p 00000000 00:00 0 
0018e000-001aa000 r-xp 00000000 08:05 1831629    /home/billy/mysql/mcm2/lib/libsigar.so.0.0.0
001aa000-001ab000 r--p 0001b000 08:05 1831629    /home/billy/mysql/mcm2/lib/libsigar.so.0.0.0
001ab000-001b0000 rw-p 0001c000 08:05 1831629    /home/billy/mysql/mcm2/lib/libsigar.so.0.0.0
001b0000-001b2000 rw-p 00000000 00:00 0 
001c8000-001c9000 r-xp 00000000 00:00 0          [vdso]
001c9000-00279000 r-xp 00000000 08:05 1831596    /home/billy/mysql/mcm2/lib/libglib-2.0.so.0.1600.6
00279000-0027a000 r--p 000af000 08:05 1831596    /home/billy/mysql/mcm2/lib/libglib-2.0.so.0.1600.6
0027a000-0027b000 rw-p 000b0000 08:05 1831596    /home/billy/mysql/mcm2/lib/libglib-2.0.so.0.1600.6
0027b000-00298000 r-xp 00000000 08:05 1684394    /lib/libgcc_s.so.1
00298000-00299000 r--p 0001c000 08:05 1684394    /lib/libgcc_s.so.1
00299000-0029a000 rw-p 0001d000 08:05 1684394    /lib/libgcc_s.so.1
002a3000-002ab000 r-xp 00000000 08:05 1700623    /lib/tls/i686/cmov/libnss_nis-2.11.1.so
002ab000-002ac000 r--p 00007000 08:05 1700623    /lib/tls/i686/cmov/libnss_nis-2.11.1.so
002ac000-002ad000 rw-p 00008000 08:05 1700623    /lib/tls/i686/cmov/libnss_nis-2.11.1.so
002d3000-002d5000 r-xp 00000000 08:05 1831624    /home/billy/mysql/mcm2/lib/libmysql-chassis-timing.so.0.0.0
002d5000-002d6000 r--p 00002000 08:05 1831624    /home/billy/mysql/mcm2/lib/libmysql-chassis-timing.so.0.0.0
002d6000-002d7000 rw-p 00003000 08:05 1831624    /home/billy/mysql/mcm2/lib/libmysql-chassis-timing.so.0.0.0
00337000-0034a000 r-xp 00000000 08:05 1700618    /lib/tls/i686/cmov/libnsl-2.11.1.so
0034a000-0034b000 r--p 00012000 08:05 1700618    /lib/tls/i686/cmov/libnsl-2.11.1.so
0034b000-0034c000 rw-p 00013000 08:05 1700618    /lib/tls/i686/cmov/libnsl-2.11.1.so
0034c000-0034e000 rw-p 00000000 00:00 0 
0034e000-003b4000 r-xp 00000000 08:05 353431     /usr/local/mysql/lib/mysql/libmysqlclient_r.so.16.0.0
003b4000-003b5000 ---p 00066000 08:05 353431     /usr/local/mysql/lib/mysql/libmysqlclient_r.so.16.0.0
003b5000-003b6000 r--p 00066000 08:05 353431     /usr/local/mysql/lib/mysql/libmysqlclient_r.so.16.0.0
003b6000-003e4000 rw-p 00067000 08:05 353431     /usr/local/mysql/lib/mysql/libmysqlclient_r.so.16.0.0
003e4000-003e5000 rw-p 00000000 00:00 0 
003fb000-003fd000 r-xp 00000000 08:05 1700615    /lib/tls/i686/cmov/libdl-2.11.1.so
003fd000-003fe000 r--p 00001000 08:05 1700615    /lib/tls/i686/cmov/libdl-2.11.1.so
003fe000-003ff000 rw-p 00002000 08:05 1700615    /lib/tls/i686/cmov/libdl-2.11.1.so
00520000-00544000 r-xp 00000000 08:05 1700616    /lib/tls/i686/cmov/libm-2.11.1.so
00544000-00545000 r--p 00023000 08:05 1700616    /lib/tls/i686/cmov/libm-2.11.1.so
00545000-00546000 rw-p 00024000 08:05 1700616    /lib/tls/i686/cmov/libm-2.11.1.so
005cd000-005e9000 r-xp 00000000 08:05 1831622    /home/billy/mysql/mcm2/lib/libmysql-proxy.so.0.0.0
005e9000-005ea000 r--p 0001b000 08:05 1831622    /home/billy/mysql/mcm2/lib/libmysql-proxy.so.0.0.0
005ea000-005eb000 rw-p 0001c000 08:05 1831622    /home/billy/mysql/mcm2/lib/libmysql-proxy.so.0.0.0
00639000-0063b000 r-xp 00000000 08:05 1831610    /home/billy/mysql/mcm2/lib/libmysql-chassis-glibext.so.0.0.0
0063b000-0063c000 r--p 00001000 08:05 1831610    /home/billy/mysql/mcm2/lib/libmysql-chassis-glibext.so.0.0.0
0063c000-0063d000 rw-p 00002000 08:05 1831610    /home/billy/mysql/mcm2/lib/libmysql-chassis-glibext.so.0.0.0
0063d000-00790000 r-xp 00000000 08:05 1700612    /lib/tls/i686/cmov/libc-2.11.1.so
00790000-00791000 ---p 00153000 08:05 1700612    /lib/tls/i686/cmov/libc-2.11.1.so
00791000-00793000 r--p 00153000 08:05 1700612    /lib/tls/i686/cmov/libc-2.11.1.so
00793000-00794000 rw-p 00155000 08:05 1700612    /lib/tls/i686/cmov/libc-2.11.1.so
00794000-00797000 rw-p 00000000 00:00 0 
0082e000-00843000 r-xp 00000000 08:05 1700626    /lib/tls/i686/cmov/libpthread-2.11.1.so
00843000-00844000 r--p 00014000 08:05 1700626    /lib/tls/i686/cmov/libpthread-2.11.1.so
00844000-00845000 rw-p 00015000 08:05 1700626    /lib/tls/i686/cmov/libpthread-2.11.1.so
00845000-00847000 rw-p 00000000 00:00 0 
00847000-00978000 r-xp 00000000 08:05 1831627    /home/billy/mysql/mcm2/lib/mysql-cluster-manager/libmanager.so
00978000-00979000 ---p 00131000 08:05 1831627    /home/billy/mysql/mcm2/lib/mysql-cluster-manager/libmanager.so
00979000-0097a000 r--p 00131000 08:05 1831627    /home/billy/mysql/mcm2/lib/mysql-cluster-manager/libmanager.so
0097a000-0097c000 rw-p 00132000 08:05 1831627    /home/billy/mysql/mcm2/lib/mysql-cluster-manager/libmanager.so
0097c000-00a1c000 rw-p 00000000 00:00 0 
00ac2000-00ac9000 r-xp 00000000 08:05 1700628    /lib/tls/i686/cmov/librt-2.11.1.so
00ac9000-00aca000 r--p 00006000 08:05 1700628    /lib/tls/i686/cmov/librt-2.11.1.so
00aca000-00acb000 rw-p 00007000 08:05 1700628    /lib/tls/i686/cmov/librt-2.11.1.soERROR 2013 (HY000): Lost connection to MySQL server during query
[10 Feb 2011 11:27] Andrew Morgan
MCM log using SUSE binaries

Attachment: mysql-cluster-manager.log (text/x-log), 210.31 KiB.

[16 Feb 2011 20:33] Kari Juul Wedde
The MCM fails because you have a C runtime that is different from the one glib is built with. The glib build is inherited from proxy.
[24 Jan 2018 23:53] MySQL Verification Team
Hi Andrew,

I can verify this behavior but why do you expect RHEL binary to work on those systems?

All best
Bogdan
[25 Feb 2018 1:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".