Description:
Bus error occurs while unpacking configuration in NDB.
Platform dependent.
$ gdb /usr/local/mysql/libexec/ndbd core
GNU gdb 6.1.1
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "sparc-sun-solaris2.9"...(no debugging symbols
found)...
Core was generated by `/usr/local/mysql/libexec/ndbd'.
Program terminated with signal 10, Bus error.
Reading symbols from /usr/lib/libpthread.so.1...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libpthread.so.1
Reading symbols from /usr/lib/libthread.so.1...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libthread.so.1
Reading symbols from /usr/local/lib/./libstdc++.so.5...done.
Loaded symbols for /usr/local/lib/./libstdc++.so.5
Reading symbols from /usr/lib/libm.so.1...done.
Loaded symbols for /usr/lib/libm.so.1
Reading symbols from /usr/local/lib/./libgcc_s.so.1...done.
Loaded symbols for /usr/local/lib/./libgcc_s.so.1
Reading symbols from /usr/lib/librt.so.1...done.
Loaded symbols for /usr/lib/librt.so.1
Reading symbols from /usr/lib/libcrypt_i.so.1...done.
Loaded symbols for /usr/lib/libcrypt_i.so.1
Reading symbols from /usr/lib/libgen.so.1...done.
Loaded symbols for /usr/lib/libgen.so.1
Reading symbols from /usr/lib/libsocket.so.1...done.
Loaded symbols for /usr/lib/libsocket.so.1
Reading symbols from /usr/lib/libnsl.so.1...done.
Loaded symbols for /usr/lib/libnsl.so.1
Reading symbols from /usr/lib/libc.so.1...done.
Loaded symbols for /usr/lib/libc.so.1
Reading symbols from /usr/lib/libdl.so.1...done.
Loaded symbols for /usr/lib/libdl.so.1
Reading symbols from /usr/lib/libaio.so.1...done.
Loaded symbols for /usr/lib/libaio.so.1
Reading symbols from /usr/lib/libmd5.so.1...done.
Loaded symbols for /usr/lib/libmd5.so.1
Reading symbols from /usr/lib/libmp.so.2...done.
Loaded symbols for /usr/lib/libmp.so.2
Reading symbols from /usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1...done.
Loaded symbols for /usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1
#0 0x001c2f00 in ConfigValuesFactory::put ()
(gdb) where
#0 0x001c2f00 in ConfigValuesFactory::put ()
#1 0x001c368c in ConfigValuesFactory::unpack ()
#2 0x001b829c in ndb_mgm_get_configuration ()
#3 0x001b2ae8 in ConfigRetriever::getConfig ()
#4 0x001b2a38 in ConfigRetriever::getConfig ()
#5 0x0019d898 in Configuration::setupConfiguration ()
#6 0x0005827c in main ()
config.ini:
[COMPUTER]
Id:1
HostName: icarus
[MGM]
Id:1
ExecuteOnComputer: 1
PortNumber: 10000
[DB DEFAULT]
NoOfReplicas: 2
[DB]
Id: 2
ExecuteOnComputer: 1
FileSystemPath: /usr/local/mysql/ndb/db-1/data
[API DEFAULT]
ArbitrationRank: 1
[API]
Id: 3
ExecuteOnComputer: 1
How to repeat:
Start NDB, will crash while unpacking configuration fetched from MGM.