Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I can not complie mysql-5.6-webscalesql-5.6.24.97 #17

Closed
joanney1 opened this issue Aug 21, 2015 · 4 comments
Closed

I can not complie mysql-5.6-webscalesql-5.6.24.97 #17

joanney1 opened this issue Aug 21, 2015 · 4 comments
Assignees

Comments

@joanney1
Copy link

cmake version 2.8.12
I installed devtoolset-1.1
gcc version 4.7.2-5
glibc 2.12-1
OS Red hat Enterprise Linux Server release 6.7

cmake command
cmake -DCMAKE_INSTALL_PREFIX=/db/mysql-5.6-webscalesql-5.6.24.97
-DSYSCONFDIR=/etc
-DMYSQL_TCP_PORT=3306
-DDEFAULT_CHARSET=utf8
-DENABLED_LOCAL_INFILE=1
-DWITH_EXTRA_CHARSETS=all
-DDEFAULT_COLLATION=utf8_general_ci
-DMYSQL_UNIX_ADDR=/tmp/mysql.sock
-DMYSQL_DATADIR=/data/mysql
-DWITH_SSL=system
-DENABLE_DOWNLOADS=1

cmake output

..
..
-- Performing Test HAVE_LLVM_LIBCPP - Failed
..
..
..
-- Check size of int8 - failed
-- Check size of int16 - failed
-- Check size of uint8 - failed
-- Check size of uint16 - failed
-- Check size of int32 - failed
-- Check size of uint32 - failed
-- Check size of int64 - failed
-- Check size of uint64 - failed
-- Check size of bool - failed
..
-- Performing Test TIME_T_UNSIGNED - Failed
..
-- Performing Test HAVE_TIMESPEC_TS_SEC - Failed
..
--Performing Test HAVE_SOLAROS_STYLE_GETHOST - Failed
..
..
--Configuring done
--Generating done
-- Build files have been written to: /db/mysql-5.6-webscalesql-5.6.24.97

@G33KS44n
Copy link

lemme check it....I will get back to this issue

@joanney1
Copy link
Author

CMakeError.log

Performing C++ SOURCE FILE Test HAVE_LLVM_LIBCPP failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec1933946438/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec1933946438.dir/build.make CMakeFiles/cmTryCompileExec1933946438.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building CXX object CMakeFiles/cmTryCompileExec1933946438.dir/src.cxx.o /opt/centos/devtoolset-1.1/root/usr/bin/c++ -DHAVE_LLVM_LIBCPP -o CMakeFiles/cmTryCompileExec1933946438.dir/src.cxx.o -c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/src.cxx Linking CXX executable cmTryCompileExec1933946438 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec1933946438.dir/link.txt --verbose=1 /opt/centos/devtoolset-1.1/root/usr/bin/c++ -DHAVE_LLVM_LIBCPP CMakeFiles/cmTryCompileExec1933946438.dir/src.cxx.o -o cmTryCompileExec1933946438 -rdynamic gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'

Return value: 1
Source file was:

#include
int main()
{
#ifdef _LIBCPP_VERSION
return 0;
#else
return 1;
#endif
}
Determining if the function floor exists failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec1985774081/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec1985774081.dir/build.make CMakeFiles/cmTryCompileExec1985774081.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec1985774081.dir/CheckFunctionExists.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=floor -o CMakeFiles/cmTryCompileExec1985774081.dir/CheckFunctionExists.c.o -c /usr/share/cmake/Modules/CheckFunctionExists.c /usr/share/cmake/Modules/CheckFunctionExists.c:3:6: warning: conflicting types for built-in function ‘floor’ [enabled by default] Linking C executable cmTryCompileExec1985774081 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec1985774081.dir/link.txt --verbose=1 /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=floor CMakeFiles/cmTryCompileExec1985774081.dir/CheckFunctionExists.c.o -o cmTryCompileExec1985774081 -rdynamic CMakeFiles/cmTryCompileExec1985774081.dir/CheckFunctionExists.c.o: In functionmain':
CheckFunctionExists.c:(.text+0x15): undefined reference to floor' collect2: error: ld returned 1 exit status gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [cmTryCompileExec1985774081] Error 1
gmake: *** [cmTryCompileExec1985774081/fast] Error 2

Determining if the function crypt exists failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec2350004874/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec2350004874.dir/build.make CMakeFiles/cmTryCompileExec2350004874.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec2350004874.dir/CheckFunctionExists.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=crypt -o CMakeFiles/cmTryCompileExec2350004874.dir/CheckFunctionExists.c.o -c /usr/share/cmake/Modules/CheckFunctionExists.c Linking C executable cmTryCompileExec2350004874 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec2350004874.dir/link.txt --verbose=1 /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=crypt CMakeFiles/cmTryCompileExec2350004874.dir/CheckFunctionExists.c.o -o cmTryCompileExec2350004874 -rdynamic CMakeFiles/cmTryCompileExec2350004874.dir/CheckFunctionExists.c.o: In functionmain':
CheckFunctionExists.c:(.text+0x15): undefined reference to crypt' collect2: error: ld returned 1 exit status gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [cmTryCompileExec2350004874] Error 1
gmake: *** [cmTryCompileExec2350004874/fast] Error 2

Determining if the function dlopen exists failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec1319602236/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec1319602236.dir/build.make CMakeFiles/cmTryCompileExec1319602236.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec1319602236.dir/CheckFunctionExists.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=dlopen -o CMakeFiles/cmTryCompileExec1319602236.dir/CheckFunctionExists.c.o -c /usr/share/cmake/Modules/CheckFunctionExists.c Linking C executable cmTryCompileExec1319602236 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec1319602236.dir/link.txt --verbose=1 /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=dlopen CMakeFiles/cmTryCompileExec1319602236.dir/CheckFunctionExists.c.o -o cmTryCompileExec1319602236 -rdynamic CMakeFiles/cmTryCompileExec1319602236.dir/CheckFunctionExists.c.o: In functionmain':
CheckFunctionExists.c:(.text+0x15): undefined reference to dlopen' collect2: error: ld returned 1 exit status gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [cmTryCompileExec1319602236] Error 1
gmake: *** [cmTryCompileExec1319602236/fast] Error 2

Determining if the function clock_gettime exists failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec1304723837/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec1304723837.dir/build.make CMakeFiles/cmTryCompileExec1304723837.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec1304723837.dir/CheckFunctionExists.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=clock_gettime -o CMakeFiles/cmTryCompileExec1304723837.dir/CheckFunctionExists.c.o -c /usr/share/cmake/Modules/CheckFunctionExists.c Linking C executable cmTryCompileExec1304723837 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec1304723837.dir/link.txt --verbose=1 /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=clock_gettime CMakeFiles/cmTryCompileExec1304723837.dir/CheckFunctionExists.c.o -o cmTryCompileExec1304723837 -rdynamic CMakeFiles/cmTryCompileExec1304723837.dir/CheckFunctionExists.c.o: In functionmain':
CheckFunctionExists.c:(.text+0x15): undefined reference to clock_gettime' collect2: error: ld returned 1 exit status gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [cmTryCompileExec1304723837] Error 1
gmake: *** [cmTryCompileExec1304723837/fast] Error 2

Determining if the function timer_create exists failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec1964946117/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec1964946117.dir/build.make CMakeFiles/cmTryCompileExec1964946117.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec1964946117.dir/CheckFunctionExists.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=timer_create -o CMakeFiles/cmTryCompileExec1964946117.dir/CheckFunctionExists.c.o -c /usr/share/cmake/Modules/CheckFunctionExists.c Linking C executable cmTryCompileExec1964946117 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec1964946117.dir/link.txt --verbose=1 /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=timer_create CMakeFiles/cmTryCompileExec1964946117.dir/CheckFunctionExists.c.o -o cmTryCompileExec1964946117 -rdynamic CMakeFiles/cmTryCompileExec1964946117.dir/CheckFunctionExists.c.o: In functionmain':
CheckFunctionExists.c:(.text+0x15): undefined reference to timer_create' collect2: error: ld returned 1 exit status gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [cmTryCompileExec1964946117] Error 1
gmake: *** [cmTryCompileExec1964946117/fast] Error 2

Determining if the pthread_create exist failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec2467831732/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec2467831732.dir/build.make CMakeFiles/cmTryCompileExec2467831732.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec2467831732.dir/CheckSymbolExists.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -o CMakeFiles/cmTryCompileExec2467831732.dir/CheckSymbolExists.c.o -c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTryCompileExec2467831732 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec2467831732.dir/link.txt --verbose=1 /opt/centos/devtoolset-1.1/root/usr/bin/cc CMakeFiles/cmTryCompileExec2467831732.dir/CheckSymbolExists.c.o -o cmTryCompileExec2467831732 -rdynamic CMakeFiles/cmTryCompileExec2467831732.dir/CheckSymbolExists.c.o: In functionmain':
CheckSymbolExists.c:(.text+0x16): undefined reference to pthread_create' collect2: error: ld returned 1 exit status gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [cmTryCompileExec2467831732] Error 1
gmake: *** [cmTryCompileExec2467831732/fast] Error 2

File /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <pthread.h>

int main(int argc, char** argv)
{
(void)argv;
#ifndef pthread_create
return ((int*)(&pthread_create))[argc];
#else
(void)argc;
return 0;
#endif
}

Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec3623431204/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec3623431204.dir/build.make CMakeFiles/cmTryCompileExec3623431204.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec3623431204.dir/CheckFunctionExists.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTryCompileExec3623431204.dir/CheckFunctionExists.c.o -c /usr/share/cmake/Modules/CheckFunctionExists.c Linking C executable cmTryCompileExec3623431204 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec3623431204.dir/link.txt --verbose=1 /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTryCompileExec3623431204.dir/CheckFunctionExists.c.o -o cmTryCompileExec3623431204 -rdynamic -lpthreads /opt/centos/devtoolset-1.1/root/usr/libexec/gcc/x86_64-redhat-linux/4.7.2/ld: cannot find -lpthreads collect2: error: ld returned 1 exit status gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [cmTryCompileExec3623431204] Error 1
gmake: *** [cmTryCompileExec3623431204/fast] Error 2

Determining if files cxxabi.h exist failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec429882174/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec429882174.dir/build.make CMakeFiles/cmTryCompileExec429882174.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec429882174.dir/CheckIncludeFiles.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -o CMakeFiles/cmTryCompileExec429882174.dir/CheckIncludeFiles.c.o -c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckIncludeFiles.c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckIncludeFiles.c:2:20: fatal error: cxxabi.h: No such file or directory compilation terminated. gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [CMakeFiles/cmTryCompileExec429882174.dir/CheckIncludeFiles.c.o] Error 1
gmake: *** [cmTryCompileExec429882174/fast] Error 2

Source:
/* */
#include <cxxabi.h>

int main(){return 0;}

Determining if files floatingpoint.h exist failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec1993740071/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec1993740071.dir/build.make CMakeFiles/cmTryCompileExec1993740071.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec1993740071.dir/CheckIncludeFiles.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -o CMakeFiles/cmTryCompileExec1993740071.dir/CheckIncludeFiles.c.o -c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckIncludeFiles.c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckIncludeFiles.c:2:27: fatal error: floatingpoint.h: No such file or directory compilation terminated. gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [CMakeFiles/cmTryCompileExec1993740071.dir/CheckIncludeFiles.c.o] Error 1
gmake: *** [cmTryCompileExec1993740071/fast] Error 2

Source:
/* */
#include <floatingpoint.h>

int main(){return 0;}

Determining if files ieeefp.h exist failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec2854798669/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec2854798669.dir/build.make CMakeFiles/cmTryCompileExec2854798669.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec2854798669.dir/CheckIncludeFiles.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -o CMakeFiles/cmTryCompileExec2854798669.dir/CheckIncludeFiles.c.o -c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckIncludeFiles.c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckIncludeFiles.c:2:20: fatal error: ieeefp.h: No such file or directory compilation terminated. gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [CMakeFiles/cmTryCompileExec2854798669.dir/CheckIncludeFiles.c.o] Error 1
gmake: *** [cmTryCompileExec2854798669/fast] Error 2

Source:
/* */
#include <ieeefp.h>

int main(){return 0;}

Determining if files ndir.h exist failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec360647751/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec360647751.dir/build.make CMakeFiles/cmTryCompileExec360647751.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec360647751.dir/CheckIncludeFiles.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -o CMakeFiles/cmTryCompileExec360647751.dir/CheckIncludeFiles.c.o -c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckIncludeFiles.c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckIncludeFiles.c:2:18: fatal error: ndir.h: No such file or directory compilation terminated. gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [CMakeFiles/cmTryCompileExec360647751.dir/CheckIncludeFiles.c.o] Error 1
gmake: *** [cmTryCompileExec360647751/fast] Error 2

Source:
/* */
#include <ndir.h>

int main(){return 0;}

Determining if files port.h exist failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec4236774966/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec4236774966.dir/build.make CMakeFiles/cmTryCompileExec4236774966.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec4236774966.dir/CheckIncludeFiles.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -o CMakeFiles/cmTryCompileExec4236774966.dir/CheckIncludeFiles.c.o -c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckIncludeFiles.c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckIncludeFiles.c:2:18: fatal error: port.h: No such file or directory compilation terminated. gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [CMakeFiles/cmTryCompileExec4236774966.dir/CheckIncludeFiles.c.o] Error 1
gmake: *** [cmTryCompileExec4236774966/fast] Error 2

Source:
/* */
#include <port.h>

int main(){return 0;}

Determining if files select.h exist failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec2039324008/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec2039324008.dir/build.make CMakeFiles/cmTryCompileExec2039324008.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec2039324008.dir/CheckIncludeFiles.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -o CMakeFiles/cmTryCompileExec2039324008.dir/CheckIncludeFiles.c.o -c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckIncludeFiles.c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckIncludeFiles.c:2:20: fatal error: select.h: No such file or directory compilation terminated. gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [CMakeFiles/cmTryCompileExec2039324008.dir/CheckIncludeFiles.c.o] Error 1
gmake: *** [cmTryCompileExec2039324008/fast] Error 2

Source:
/* */
#include <select.h>

int main(){return 0;}

Determining if files sys/ndir.h exist failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec506555463/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec506555463.dir/build.make CMakeFiles/cmTryCompileExec506555463.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec506555463.dir/CheckIncludeFiles.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -o CMakeFiles/cmTryCompileExec506555463.dir/CheckIncludeFiles.c.o -c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckIncludeFiles.c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckIncludeFiles.c:2:22: fatal error: sys/ndir.h: No such file or directory compilation terminated. gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [CMakeFiles/cmTryCompileExec506555463.dir/CheckIncludeFiles.c.o] Error 1
gmake: *** [cmTryCompileExec506555463/fast] Error 2

Source:
/* */
#include <sys/ndir.h>

int main(){return 0;}

Determining if files sys/pte.h exist failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec847349261/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec847349261.dir/build.make CMakeFiles/cmTryCompileExec847349261.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec847349261.dir/CheckIncludeFiles.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -o CMakeFiles/cmTryCompileExec847349261.dir/CheckIncludeFiles.c.o -c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckIncludeFiles.c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckIncludeFiles.c:2:21: fatal error: sys/pte.h: No such file or directory compilation terminated. gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [CMakeFiles/cmTryCompileExec847349261.dir/CheckIncludeFiles.c.o] Error 1
gmake: *** [cmTryCompileExec847349261/fast] Error 2

Source:
/* */
#include <sys/pte.h>

int main(){return 0;}

Determining if files synch.h exist failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec114681467/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec114681467.dir/build.make CMakeFiles/cmTryCompileExec114681467.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec114681467.dir/CheckIncludeFiles.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -o CMakeFiles/cmTryCompileExec114681467.dir/CheckIncludeFiles.c.o -c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckIncludeFiles.c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckIncludeFiles.c:2:19: fatal error: synch.h: No such file or directory compilation terminated. gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [CMakeFiles/cmTryCompileExec114681467.dir/CheckIncludeFiles.c.o] Error 1
gmake: *** [cmTryCompileExec114681467/fast] Error 2

Source:
/* */
#include <synch.h>

int main(){return 0;}

Determining if files sysent.h exist failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec3410798774/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec3410798774.dir/build.make CMakeFiles/cmTryCompileExec3410798774.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec3410798774.dir/CheckIncludeFiles.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -o CMakeFiles/cmTryCompileExec3410798774.dir/CheckIncludeFiles.c.o -c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckIncludeFiles.c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckIncludeFiles.c:2:20: fatal error: sysent.h: No such file or directory compilation terminated. gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [CMakeFiles/cmTryCompileExec3410798774.dir/CheckIncludeFiles.c.o] Error 1
gmake: *** [cmTryCompileExec3410798774/fast] Error 2

Source:
/* */
#include <sysent.h>

int main(){return 0;}

Determining if files sys/fpu.h exist failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec2305832218/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec2305832218.dir/build.make CMakeFiles/cmTryCompileExec2305832218.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec2305832218.dir/CheckIncludeFiles.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -o CMakeFiles/cmTryCompileExec2305832218.dir/CheckIncludeFiles.c.o -c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckIncludeFiles.c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckIncludeFiles.c:2:21: fatal error: sys/fpu.h: No such file or directory compilation terminated. gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [CMakeFiles/cmTryCompileExec2305832218.dir/CheckIncludeFiles.c.o] Error 1
gmake: *** [cmTryCompileExec2305832218/fast] Error 2

Source:
/* */
#include <sys/fpu.h>

int main(){return 0;}

Determining if files sys/malloc.h exist failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec3470174842/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec3470174842.dir/build.make CMakeFiles/cmTryCompileExec3470174842.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec3470174842.dir/CheckIncludeFiles.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -o CMakeFiles/cmTryCompileExec3470174842.dir/CheckIncludeFiles.c.o -c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckIncludeFiles.c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckIncludeFiles.c:2:24: fatal error: sys/malloc.h: No such file or directory compilation terminated. gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [CMakeFiles/cmTryCompileExec3470174842.dir/CheckIncludeFiles.c.o] Error 1
gmake: *** [cmTryCompileExec3470174842/fast] Error 2

Source:
/* */
#include <sys/malloc.h>

int main(){return 0;}

Determining if files sys/stream.h exist failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec2178702181/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec2178702181.dir/build.make CMakeFiles/cmTryCompileExec2178702181.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec2178702181.dir/CheckIncludeFiles.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -o CMakeFiles/cmTryCompileExec2178702181.dir/CheckIncludeFiles.c.o -c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckIncludeFiles.c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckIncludeFiles.c:2:24: fatal error: sys/stream.h: No such file or directory compilation terminated. gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [CMakeFiles/cmTryCompileExec2178702181.dir/CheckIncludeFiles.c.o] Error 1
gmake: *** [cmTryCompileExec2178702181/fast] Error 2

Source:
/* */
#include <sys/stream.h>

int main(){return 0;}

Determining if files sys/termcap.h exist failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec1675212648/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec1675212648.dir/build.make CMakeFiles/cmTryCompileExec1675212648.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec1675212648.dir/CheckIncludeFiles.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -o CMakeFiles/cmTryCompileExec1675212648.dir/CheckIncludeFiles.c.o -c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckIncludeFiles.c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckIncludeFiles.c:2:25: fatal error: sys/termcap.h: No such file or directory compilation terminated. gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [CMakeFiles/cmTryCompileExec1675212648.dir/CheckIncludeFiles.c.o] Error 1
gmake: *** [cmTryCompileExec1675212648/fast] Error 2

Source:
/* */
#include <sys/termcap.h>

int main(){return 0;}

Determining if files termbits.h exist failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec2832316743/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec2832316743.dir/build.make CMakeFiles/cmTryCompileExec2832316743.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec2832316743.dir/CheckIncludeFiles.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -o CMakeFiles/cmTryCompileExec2832316743.dir/CheckIncludeFiles.c.o -c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckIncludeFiles.c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckIncludeFiles.c:2:22: fatal error: termbits.h: No such file or directory compilation terminated. gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [CMakeFiles/cmTryCompileExec2832316743.dir/CheckIncludeFiles.c.o] Error 1
gmake: *** [cmTryCompileExec2832316743/fast] Error 2

Source:
/* */
#include <termbits.h>

int main(){return 0;}

Determining if files varargs.h exist failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec892876218/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec892876218.dir/build.make CMakeFiles/cmTryCompileExec892876218.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec892876218.dir/CheckIncludeFiles.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -o CMakeFiles/cmTryCompileExec892876218.dir/CheckIncludeFiles.c.o -c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckIncludeFiles.c In file included from /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckIncludeFiles.c:2:0: /opt/centos/devtoolset-1.1/root/usr/lib/gcc/x86_64-redhat-linux/4.7.2/include/varargs.h:4:2: error: #error "GCC no longer implements <varargs.h>." /opt/centos/devtoolset-1.1/root/usr/lib/gcc/x86_64-redhat-linux/4.7.2/include/varargs.h:5:2: error: #error "Revise your code to use <stdarg.h>." gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [CMakeFiles/cmTryCompileExec892876218.dir/CheckIncludeFiles.c.o] Error 1
gmake: *** [cmTryCompileExec892876218/fast] Error 2

Source:
/* */
#include <varargs.h>

int main(){return 0;}

Determining if files sys/utime.h exist failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec902350756/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec902350756.dir/build.make CMakeFiles/cmTryCompileExec902350756.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec902350756.dir/CheckIncludeFiles.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -o CMakeFiles/cmTryCompileExec902350756.dir/CheckIncludeFiles.c.o -c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckIncludeFiles.c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckIncludeFiles.c:2:23: fatal error: sys/utime.h: No such file or directory compilation terminated. gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [CMakeFiles/cmTryCompileExec902350756.dir/CheckIncludeFiles.c.o] Error 1
gmake: *** [cmTryCompileExec902350756/fast] Error 2

Source:
/* */
#include <sys/utime.h>

int main(){return 0;}

Determining if files sys/vadvise.h exist failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec2592123161/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec2592123161.dir/build.make CMakeFiles/cmTryCompileExec2592123161.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec2592123161.dir/CheckIncludeFiles.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -o CMakeFiles/cmTryCompileExec2592123161.dir/CheckIncludeFiles.c.o -c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckIncludeFiles.c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckIncludeFiles.c:2:25: fatal error: sys/vadvise.h: No such file or directory compilation terminated. gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [CMakeFiles/cmTryCompileExec2592123161.dir/CheckIncludeFiles.c.o] Error 1
gmake: *** [cmTryCompileExec2592123161/fast] Error 2

Source:
/* */
#include <sys/vadvise.h>

int main(){return 0;}

Determining if files vis.h exist failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec431206002/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec431206002.dir/build.make CMakeFiles/cmTryCompileExec431206002.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec431206002.dir/CheckIncludeFiles.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -o CMakeFiles/cmTryCompileExec431206002.dir/CheckIncludeFiles.c.o -c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckIncludeFiles.c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckIncludeFiles.c:2:17: fatal error: vis.h: No such file or directory compilation terminated. gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [CMakeFiles/cmTryCompileExec431206002.dir/CheckIncludeFiles.c.o] Error 1
gmake: *** [cmTryCompileExec431206002/fast] Error 2

Source:
/* */
#include <vis.h>

int main(){return 0;}

Determining if files sasl/sasl.h exist failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec1223278509/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec1223278509.dir/build.make CMakeFiles/cmTryCompileExec1223278509.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec1223278509.dir/CheckIncludeFiles.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -o CMakeFiles/cmTryCompileExec1223278509.dir/CheckIncludeFiles.c.o -c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckIncludeFiles.c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckIncludeFiles.c:2:23: fatal error: sasl/sasl.h: No such file or directory compilation terminated. gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [CMakeFiles/cmTryCompileExec1223278509.dir/CheckIncludeFiles.c.o] Error 1
gmake: *** [cmTryCompileExec1223278509/fast] Error 2

Source:
/* */
#include <sasl/sasl.h>

int main(){return 0;}

Determining if files sys/devpoll.h exist failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec3624963129/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec3624963129.dir/build.make CMakeFiles/cmTryCompileExec3624963129.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec3624963129.dir/CheckIncludeFiles.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -o CMakeFiles/cmTryCompileExec3624963129.dir/CheckIncludeFiles.c.o -c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckIncludeFiles.c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckIncludeFiles.c:2:25: fatal error: sys/devpoll.h: No such file or directory compilation terminated. gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [CMakeFiles/cmTryCompileExec3624963129.dir/CheckIncludeFiles.c.o] Error 1
gmake: *** [cmTryCompileExec3624963129/fast] Error 2

Source:
/* */
#include <sys/devpoll.h>

int main(){return 0;}

Determining if files sys/devpoll.h exist failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec220895156/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec220895156.dir/build.make CMakeFiles/cmTryCompileExec220895156.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec220895156.dir/CheckIncludeFiles.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -o CMakeFiles/cmTryCompileExec220895156.dir/CheckIncludeFiles.c.o -c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckIncludeFiles.c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckIncludeFiles.c:2:25: fatal error: sys/devpoll.h: No such file or directory compilation terminated. gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [CMakeFiles/cmTryCompileExec220895156.dir/CheckIncludeFiles.c.o] Error 1
gmake: *** [cmTryCompileExec220895156/fast] Error 2

Source:
/* */
#include <sys/devpoll.h>

int main(){return 0;}

Determining if files sys/event.h exist failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec2375563833/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec2375563833.dir/build.make CMakeFiles/cmTryCompileExec2375563833.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec2375563833.dir/CheckIncludeFiles.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -o CMakeFiles/cmTryCompileExec2375563833.dir/CheckIncludeFiles.c.o -c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckIncludeFiles.c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckIncludeFiles.c:2:23: fatal error: sys/event.h: No such file or directory compilation terminated. gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [CMakeFiles/cmTryCompileExec2375563833.dir/CheckIncludeFiles.c.o] Error 1
gmake: *** [cmTryCompileExec2375563833/fast] Error 2

Source:
/* */
#include <sys/event.h>

int main(){return 0;}

Determining if files sys/ptem.h exist failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec1678842303/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec1678842303.dir/build.make CMakeFiles/cmTryCompileExec1678842303.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec1678842303.dir/CheckIncludeFiles.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -o CMakeFiles/cmTryCompileExec1678842303.dir/CheckIncludeFiles.c.o -c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckIncludeFiles.c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckIncludeFiles.c:2:22: fatal error: sys/ptem.h: No such file or directory compilation terminated. gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [CMakeFiles/cmTryCompileExec1678842303.dir/CheckIncludeFiles.c.o] Error 1
gmake: *** [cmTryCompileExec1678842303/fast] Error 2

Source:
/* */
#include <sys/ptem.h>

int main(){return 0;}

Determining if the function _aligned_malloc exists failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec458804155/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec458804155.dir/build.make CMakeFiles/cmTryCompileExec458804155.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec458804155.dir/CheckFunctionExists.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=_aligned_malloc -o CMakeFiles/cmTryCompileExec458804155.dir/CheckFunctionExists.c.o -c /usr/share/cmake/Modules/CheckFunctionExists.c Linking C executable cmTryCompileExec458804155 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec458804155.dir/link.txt --verbose=1 /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=_aligned_malloc CMakeFiles/cmTryCompileExec458804155.dir/CheckFunctionExists.c.o -o cmTryCompileExec458804155 -rdynamic -lm -lcrypt -ldl -lpthread -lrt CMakeFiles/cmTryCompileExec458804155.dir/CheckFunctionExists.c.o: In functionmain':
CheckFunctionExists.c:(.text+0x15): undefined reference to _aligned_malloc' collect2: error: ld returned 1 exit status gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [cmTryCompileExec458804155] Error 1
gmake: *** [cmTryCompileExec458804155/fast] Error 2

Determining if the function _aligned_free exists failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec3901235707/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec3901235707.dir/build.make CMakeFiles/cmTryCompileExec3901235707.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec3901235707.dir/CheckFunctionExists.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=_aligned_free -o CMakeFiles/cmTryCompileExec3901235707.dir/CheckFunctionExists.c.o -c /usr/share/cmake/Modules/CheckFunctionExists.c Linking C executable cmTryCompileExec3901235707 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec3901235707.dir/link.txt --verbose=1 /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=_aligned_free CMakeFiles/cmTryCompileExec3901235707.dir/CheckFunctionExists.c.o -o cmTryCompileExec3901235707 -rdynamic -lm -lcrypt -ldl -lpthread -lrt CMakeFiles/cmTryCompileExec3901235707.dir/CheckFunctionExists.c.o: In functionmain':
CheckFunctionExists.c:(.text+0x15): undefined reference to _aligned_free' collect2: error: ld returned 1 exit status gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [cmTryCompileExec3901235707] Error 1
gmake: *** [cmTryCompileExec3901235707/fast] Error 2

Determining if the function printstack exists failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec4225443009/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec4225443009.dir/build.make CMakeFiles/cmTryCompileExec4225443009.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec4225443009.dir/CheckFunctionExists.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=printstack -o CMakeFiles/cmTryCompileExec4225443009.dir/CheckFunctionExists.c.o -c /usr/share/cmake/Modules/CheckFunctionExists.c Linking C executable cmTryCompileExec4225443009 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec4225443009.dir/link.txt --verbose=1 /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=printstack CMakeFiles/cmTryCompileExec4225443009.dir/CheckFunctionExists.c.o -o cmTryCompileExec4225443009 -rdynamic -lm -lcrypt -ldl -lpthread -lrt CMakeFiles/cmTryCompileExec4225443009.dir/CheckFunctionExists.c.o: In functionmain':
CheckFunctionExists.c:(.text+0x15): undefined reference to printstack' collect2: error: ld returned 1 exit status gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [cmTryCompileExec4225443009] Error 1
gmake: *** [cmTryCompileExec4225443009/fast] Error 2

Determining if the function bmove exists failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec2132196476/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec2132196476.dir/build.make CMakeFiles/cmTryCompileExec2132196476.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec2132196476.dir/CheckFunctionExists.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=bmove -o CMakeFiles/cmTryCompileExec2132196476.dir/CheckFunctionExists.c.o -c /usr/share/cmake/Modules/CheckFunctionExists.c Linking C executable cmTryCompileExec2132196476 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec2132196476.dir/link.txt --verbose=1 /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=bmove CMakeFiles/cmTryCompileExec2132196476.dir/CheckFunctionExists.c.o -o cmTryCompileExec2132196476 -rdynamic -lm -lcrypt -ldl -lpthread -lrt CMakeFiles/cmTryCompileExec2132196476.dir/CheckFunctionExists.c.o: In functionmain':
CheckFunctionExists.c:(.text+0x15): undefined reference to bmove' collect2: error: ld returned 1 exit status gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [cmTryCompileExec2132196476] Error 1
gmake: *** [cmTryCompileExec2132196476/fast] Error 2

Determining if the function directio exists failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec51436746/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec51436746.dir/build.make CMakeFiles/cmTryCompileExec51436746.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec51436746.dir/CheckFunctionExists.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=directio -o CMakeFiles/cmTryCompileExec51436746.dir/CheckFunctionExists.c.o -c /usr/share/cmake/Modules/CheckFunctionExists.c Linking C executable cmTryCompileExec51436746 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec51436746.dir/link.txt --verbose=1 /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=directio CMakeFiles/cmTryCompileExec51436746.dir/CheckFunctionExists.c.o -o cmTryCompileExec51436746 -rdynamic -lm -lcrypt -ldl -lpthread -lrt CMakeFiles/cmTryCompileExec51436746.dir/CheckFunctionExists.c.o: In functionmain':
CheckFunctionExists.c:(.text+0x15): undefined reference to directio' collect2: error: ld returned 1 exit status gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [cmTryCompileExec51436746] Error 1
gmake: *** [cmTryCompileExec51436746/fast] Error 2

Determining if the function _doprnt exists failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec459308938/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec459308938.dir/build.make CMakeFiles/cmTryCompileExec459308938.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec459308938.dir/CheckFunctionExists.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=_doprnt -o CMakeFiles/cmTryCompileExec459308938.dir/CheckFunctionExists.c.o -c /usr/share/cmake/Modules/CheckFunctionExists.c Linking C executable cmTryCompileExec459308938 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec459308938.dir/link.txt --verbose=1 /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=_doprnt CMakeFiles/cmTryCompileExec459308938.dir/CheckFunctionExists.c.o -o cmTryCompileExec459308938 -rdynamic -lm -lcrypt -ldl -lpthread -lrt CMakeFiles/cmTryCompileExec459308938.dir/CheckFunctionExists.c.o: In functionmain':
CheckFunctionExists.c:(.text+0x15): undefined reference to _doprnt' collect2: error: ld returned 1 exit status gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [cmTryCompileExec459308938] Error 1
gmake: *** [cmTryCompileExec459308938/fast] Error 2

Determining if the function compress exists failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec2800892763/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec2800892763.dir/build.make CMakeFiles/cmTryCompileExec2800892763.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec2800892763.dir/CheckFunctionExists.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=compress -o CMakeFiles/cmTryCompileExec2800892763.dir/CheckFunctionExists.c.o -c /usr/share/cmake/Modules/CheckFunctionExists.c Linking C executable cmTryCompileExec2800892763 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec2800892763.dir/link.txt --verbose=1 /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=compress CMakeFiles/cmTryCompileExec2800892763.dir/CheckFunctionExists.c.o -o cmTryCompileExec2800892763 -rdynamic -lm -lcrypt -ldl -lpthread -lrt CMakeFiles/cmTryCompileExec2800892763.dir/CheckFunctionExists.c.o: In functionmain':
CheckFunctionExists.c:(.text+0x15): undefined reference to compress' collect2: error: ld returned 1 exit status gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [cmTryCompileExec2800892763] Error 1
gmake: *** [cmTryCompileExec2800892763/fast] Error 2

Determining if the function fconvert exists failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec2025567143/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec2025567143.dir/build.make CMakeFiles/cmTryCompileExec2025567143.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec2025567143.dir/CheckFunctionExists.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=fconvert -o CMakeFiles/cmTryCompileExec2025567143.dir/CheckFunctionExists.c.o -c /usr/share/cmake/Modules/CheckFunctionExists.c Linking C executable cmTryCompileExec2025567143 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec2025567143.dir/link.txt --verbose=1 /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=fconvert CMakeFiles/cmTryCompileExec2025567143.dir/CheckFunctionExists.c.o -o cmTryCompileExec2025567143 -rdynamic -lm -lcrypt -ldl -lpthread -lrt CMakeFiles/cmTryCompileExec2025567143.dir/CheckFunctionExists.c.o: In functionmain':
CheckFunctionExists.c:(.text+0x15): undefined reference to fconvert' collect2: error: ld returned 1 exit status gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [cmTryCompileExec2025567143] Error 1
gmake: *** [cmTryCompileExec2025567143/fast] Error 2

Determining if the function fpsetmask exists failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec761649779/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec761649779.dir/build.make CMakeFiles/cmTryCompileExec761649779.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec761649779.dir/CheckFunctionExists.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=fpsetmask -o CMakeFiles/cmTryCompileExec761649779.dir/CheckFunctionExists.c.o -c /usr/share/cmake/Modules/CheckFunctionExists.c Linking C executable cmTryCompileExec761649779 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec761649779.dir/link.txt --verbose=1 /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=fpsetmask CMakeFiles/cmTryCompileExec761649779.dir/CheckFunctionExists.c.o -o cmTryCompileExec761649779 -rdynamic -lm -lcrypt -ldl -lpthread -lrt CMakeFiles/cmTryCompileExec761649779.dir/CheckFunctionExists.c.o: In functionmain':
CheckFunctionExists.c:(.text+0x15): undefined reference to fpsetmask' collect2: error: ld returned 1 exit status gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [cmTryCompileExec761649779] Error 1
gmake: *** [cmTryCompileExec761649779/fast] Error 2

Determining if the function gethrtime exists failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec1678078900/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec1678078900.dir/build.make CMakeFiles/cmTryCompileExec1678078900.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec1678078900.dir/CheckFunctionExists.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=gethrtime -o CMakeFiles/cmTryCompileExec1678078900.dir/CheckFunctionExists.c.o -c /usr/share/cmake/Modules/CheckFunctionExists.c Linking C executable cmTryCompileExec1678078900 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec1678078900.dir/link.txt --verbose=1 /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=gethrtime CMakeFiles/cmTryCompileExec1678078900.dir/CheckFunctionExists.c.o -o cmTryCompileExec1678078900 -rdynamic -lm -lcrypt -ldl -lpthread -lrt CMakeFiles/cmTryCompileExec1678078900.dir/CheckFunctionExists.c.o: In functionmain':
CheckFunctionExists.c:(.text+0x15): undefined reference to gethrtime' collect2: error: ld returned 1 exit status gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [cmTryCompileExec1678078900] Error 1
gmake: *** [cmTryCompileExec1678078900/fast] Error 2

Determining if the function getpassphrase exists failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec1323141859/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec1323141859.dir/build.make CMakeFiles/cmTryCompileExec1323141859.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec1323141859.dir/CheckFunctionExists.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=getpassphrase -o CMakeFiles/cmTryCompileExec1323141859.dir/CheckFunctionExists.c.o -c /usr/share/cmake/Modules/CheckFunctionExists.c Linking C executable cmTryCompileExec1323141859 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec1323141859.dir/link.txt --verbose=1 /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=getpassphrase CMakeFiles/cmTryCompileExec1323141859.dir/CheckFunctionExists.c.o -o cmTryCompileExec1323141859 -rdynamic -lm -lcrypt -ldl -lpthread -lrt CMakeFiles/cmTryCompileExec1323141859.dir/CheckFunctionExists.c.o: In functionmain':
CheckFunctionExists.c:(.text+0x15): undefined reference to getpassphrase' collect2: error: ld returned 1 exit status gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [cmTryCompileExec1323141859] Error 1
gmake: *** [cmTryCompileExec1323141859/fast] Error 2

Determining if the function issetugid exists failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec1195296342/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec1195296342.dir/build.make CMakeFiles/cmTryCompileExec1195296342.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec1195296342.dir/CheckFunctionExists.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=issetugid -o CMakeFiles/cmTryCompileExec1195296342.dir/CheckFunctionExists.c.o -c /usr/share/cmake/Modules/CheckFunctionExists.c Linking C executable cmTryCompileExec1195296342 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec1195296342.dir/link.txt --verbose=1 /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=issetugid CMakeFiles/cmTryCompileExec1195296342.dir/CheckFunctionExists.c.o -o cmTryCompileExec1195296342 -rdynamic -lm -lcrypt -ldl -lpthread -lrt CMakeFiles/cmTryCompileExec1195296342.dir/CheckFunctionExists.c.o: In functionmain':
CheckFunctionExists.c:(.text+0x15): undefined reference to issetugid' collect2: error: ld returned 1 exit status gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [cmTryCompileExec1195296342] Error 1
gmake: *** [cmTryCompileExec1195296342/fast] Error 2

Determining if the function port_create exists failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec1468689976/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec1468689976.dir/build.make CMakeFiles/cmTryCompileExec1468689976.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec1468689976.dir/CheckFunctionExists.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=port_create -o CMakeFiles/cmTryCompileExec1468689976.dir/CheckFunctionExists.c.o -c /usr/share/cmake/Modules/CheckFunctionExists.c Linking C executable cmTryCompileExec1468689976 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec1468689976.dir/link.txt --verbose=1 /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=port_create CMakeFiles/cmTryCompileExec1468689976.dir/CheckFunctionExists.c.o -o cmTryCompileExec1468689976 -rdynamic -lm -lcrypt -ldl -lpthread -lrt CMakeFiles/cmTryCompileExec1468689976.dir/CheckFunctionExists.c.o: In functionmain':
CheckFunctionExists.c:(.text+0x15): undefined reference to port_create' collect2: error: ld returned 1 exit status gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [cmTryCompileExec1468689976] Error 1
gmake: *** [cmTryCompileExec1468689976/fast] Error 2

Determining if the function pthread_attr_create exists failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec1433359055/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec1433359055.dir/build.make CMakeFiles/cmTryCompileExec1433359055.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec1433359055.dir/CheckFunctionExists.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_attr_create -o CMakeFiles/cmTryCompileExec1433359055.dir/CheckFunctionExists.c.o -c /usr/share/cmake/Modules/CheckFunctionExists.c Linking C executable cmTryCompileExec1433359055 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec1433359055.dir/link.txt --verbose=1 /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_attr_create CMakeFiles/cmTryCompileExec1433359055.dir/CheckFunctionExists.c.o -o cmTryCompileExec1433359055 -rdynamic -lm -lcrypt -ldl -lpthread -lrt CMakeFiles/cmTryCompileExec1433359055.dir/CheckFunctionExists.c.o: In functionmain':
CheckFunctionExists.c:(.text+0x15): undefined reference to pthread_attr_create' collect2: error: ld returned 1 exit status gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [cmTryCompileExec1433359055] Error 1
gmake: *** [cmTryCompileExec1433359055/fast] Error 2

Determining if the function pthread_condattr_create exists failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec948466688/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec948466688.dir/build.make CMakeFiles/cmTryCompileExec948466688.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec948466688.dir/CheckFunctionExists.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_condattr_create -o CMakeFiles/cmTryCompileExec948466688.dir/CheckFunctionExists.c.o -c /usr/share/cmake/Modules/CheckFunctionExists.c Linking C executable cmTryCompileExec948466688 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec948466688.dir/link.txt --verbose=1 /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_condattr_create CMakeFiles/cmTryCompileExec948466688.dir/CheckFunctionExists.c.o -o cmTryCompileExec948466688 -rdynamic -lm -lcrypt -ldl -lpthread -lrt CMakeFiles/cmTryCompileExec948466688.dir/CheckFunctionExists.c.o: In functionmain':
CheckFunctionExists.c:(.text+0x15): undefined reference to pthread_condattr_create' collect2: error: ld returned 1 exit status gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [cmTryCompileExec948466688] Error 1
gmake: *** [cmTryCompileExec948466688/fast] Error 2

Determining if the function pthread_threadmask exists failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec2607942497/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec2607942497.dir/build.make CMakeFiles/cmTryCompileExec2607942497.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec2607942497.dir/CheckFunctionExists.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_threadmask -o CMakeFiles/cmTryCompileExec2607942497.dir/CheckFunctionExists.c.o -c /usr/share/cmake/Modules/CheckFunctionExists.c Linking C executable cmTryCompileExec2607942497 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec2607942497.dir/link.txt --verbose=1 /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_threadmask CMakeFiles/cmTryCompileExec2607942497.dir/CheckFunctionExists.c.o -o cmTryCompileExec2607942497 -rdynamic -lm -lcrypt -ldl -lpthread -lrt CMakeFiles/cmTryCompileExec2607942497.dir/CheckFunctionExists.c.o: In functionmain':
CheckFunctionExists.c:(.text+0x15): undefined reference to pthread_threadmask' collect2: error: ld returned 1 exit status gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [cmTryCompileExec2607942497] Error 1
gmake: *** [cmTryCompileExec2607942497/fast] Error 2

Determining if the function pthread_yield_np exists failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec2027346744/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec2027346744.dir/build.make CMakeFiles/cmTryCompileExec2027346744.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec2027346744.dir/CheckFunctionExists.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_yield_np -o CMakeFiles/cmTryCompileExec2027346744.dir/CheckFunctionExists.c.o -c /usr/share/cmake/Modules/CheckFunctionExists.c Linking C executable cmTryCompileExec2027346744 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec2027346744.dir/link.txt --verbose=1 /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_yield_np CMakeFiles/cmTryCompileExec2027346744.dir/CheckFunctionExists.c.o -o cmTryCompileExec2027346744 -rdynamic -lm -lcrypt -ldl -lpthread -lrt CMakeFiles/cmTryCompileExec2027346744.dir/CheckFunctionExists.c.o: In functionmain':
CheckFunctionExists.c:(.text+0x15): undefined reference to pthread_yield_np' collect2: error: ld returned 1 exit status gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [cmTryCompileExec2027346744] Error 1
gmake: *** [cmTryCompileExec2027346744/fast] Error 2

Determining if the function rwlock_init exists failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec3180340543/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec3180340543.dir/build.make CMakeFiles/cmTryCompileExec3180340543.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec3180340543.dir/CheckFunctionExists.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=rwlock_init -o CMakeFiles/cmTryCompileExec3180340543.dir/CheckFunctionExists.c.o -c /usr/share/cmake/Modules/CheckFunctionExists.c Linking C executable cmTryCompileExec3180340543 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec3180340543.dir/link.txt --verbose=1 /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=rwlock_init CMakeFiles/cmTryCompileExec3180340543.dir/CheckFunctionExists.c.o -o cmTryCompileExec3180340543 -rdynamic -lm -lcrypt -ldl -lpthread -lrt CMakeFiles/cmTryCompileExec3180340543.dir/CheckFunctionExists.c.o: In functionmain':
CheckFunctionExists.c:(.text+0x15): undefined reference to rwlock_init' collect2: error: ld returned 1 exit status gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [cmTryCompileExec3180340543] Error 1
gmake: *** [cmTryCompileExec3180340543/fast] Error 2

Determining if the function setfd exists failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec2029890727/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec2029890727.dir/build.make CMakeFiles/cmTryCompileExec2029890727.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec2029890727.dir/CheckFunctionExists.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=setfd -o CMakeFiles/cmTryCompileExec2029890727.dir/CheckFunctionExists.c.o -c /usr/share/cmake/Modules/CheckFunctionExists.c Linking C executable cmTryCompileExec2029890727 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec2029890727.dir/link.txt --verbose=1 /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=setfd CMakeFiles/cmTryCompileExec2029890727.dir/CheckFunctionExists.c.o -o cmTryCompileExec2029890727 -rdynamic -lm -lcrypt -ldl -lpthread -lrt CMakeFiles/cmTryCompileExec2029890727.dir/CheckFunctionExists.c.o: In functionmain':
CheckFunctionExists.c:(.text+0x15): undefined reference to setfd' collect2: error: ld returned 1 exit status gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [cmTryCompileExec2029890727] Error 1
gmake: *** [cmTryCompileExec2029890727/fast] Error 2

Determining if the function sigthreadmask exists failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec737205015/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec737205015.dir/build.make CMakeFiles/cmTryCompileExec737205015.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec737205015.dir/CheckFunctionExists.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=sigthreadmask -o CMakeFiles/cmTryCompileExec737205015.dir/CheckFunctionExists.c.o -c /usr/share/cmake/Modules/CheckFunctionExists.c Linking C executable cmTryCompileExec737205015 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec737205015.dir/link.txt --verbose=1 /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=sigthreadmask CMakeFiles/cmTryCompileExec737205015.dir/CheckFunctionExists.c.o -o cmTryCompileExec737205015 -rdynamic -lm -lcrypt -ldl -lpthread -lrt CMakeFiles/cmTryCompileExec737205015.dir/CheckFunctionExists.c.o: In functionmain':
CheckFunctionExists.c:(.text+0x15): undefined reference to sigthreadmask' collect2: error: ld returned 1 exit status gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [cmTryCompileExec737205015] Error 1
gmake: *** [cmTryCompileExec737205015/fast] Error 2

Determining if the function strlcpy exists failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec3152929281/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec3152929281.dir/build.make CMakeFiles/cmTryCompileExec3152929281.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec3152929281.dir/CheckFunctionExists.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=strlcpy -o CMakeFiles/cmTryCompileExec3152929281.dir/CheckFunctionExists.c.o -c /usr/share/cmake/Modules/CheckFunctionExists.c Linking C executable cmTryCompileExec3152929281 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec3152929281.dir/link.txt --verbose=1 /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=strlcpy CMakeFiles/cmTryCompileExec3152929281.dir/CheckFunctionExists.c.o -o cmTryCompileExec3152929281 -rdynamic -lm -lcrypt -ldl -lpthread -lrt CMakeFiles/cmTryCompileExec3152929281.dir/CheckFunctionExists.c.o: In functionmain':
CheckFunctionExists.c:(.text+0x15): undefined reference to strlcpy' collect2: error: ld returned 1 exit status gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [cmTryCompileExec3152929281] Error 1
gmake: *** [cmTryCompileExec3152929281/fast] Error 2

Determining if the function strlcat exists failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec1681351155/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec1681351155.dir/build.make CMakeFiles/cmTryCompileExec1681351155.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec1681351155.dir/CheckFunctionExists.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=strlcat -o CMakeFiles/cmTryCompileExec1681351155.dir/CheckFunctionExists.c.o -c /usr/share/cmake/Modules/CheckFunctionExists.c Linking C executable cmTryCompileExec1681351155 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec1681351155.dir/link.txt --verbose=1 /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=strlcat CMakeFiles/cmTryCompileExec1681351155.dir/CheckFunctionExists.c.o -o cmTryCompileExec1681351155 -rdynamic -lm -lcrypt -ldl -lpthread -lrt CMakeFiles/cmTryCompileExec1681351155.dir/CheckFunctionExists.c.o: In functionmain':
CheckFunctionExists.c:(.text+0x15): undefined reference to strlcat' collect2: error: ld returned 1 exit status gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [cmTryCompileExec1681351155] Error 1
gmake: *** [cmTryCompileExec1681351155/fast] Error 2

Determining if the function fgetln exists failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec1681091827/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec1681091827.dir/build.make CMakeFiles/cmTryCompileExec1681091827.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec1681091827.dir/CheckFunctionExists.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=fgetln -o CMakeFiles/cmTryCompileExec1681091827.dir/CheckFunctionExists.c.o -c /usr/share/cmake/Modules/CheckFunctionExists.c Linking C executable cmTryCompileExec1681091827 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec1681091827.dir/link.txt --verbose=1 /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=fgetln CMakeFiles/cmTryCompileExec1681091827.dir/CheckFunctionExists.c.o -o cmTryCompileExec1681091827 -rdynamic -lm -lcrypt -ldl -lpthread -lrt CMakeFiles/cmTryCompileExec1681091827.dir/CheckFunctionExists.c.o: In functionmain':
CheckFunctionExists.c:(.text+0x15): undefined reference to fgetln' collect2: error: ld returned 1 exit status gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [cmTryCompileExec1681091827] Error 1
gmake: *** [cmTryCompileExec1681091827/fast] Error 2

Determining if the function tell exists failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec4021717864/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec4021717864.dir/build.make CMakeFiles/cmTryCompileExec4021717864.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec4021717864.dir/CheckFunctionExists.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=tell -o CMakeFiles/cmTryCompileExec4021717864.dir/CheckFunctionExists.c.o -c /usr/share/cmake/Modules/CheckFunctionExists.c Linking C executable cmTryCompileExec4021717864 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec4021717864.dir/link.txt --verbose=1 /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=tell CMakeFiles/cmTryCompileExec4021717864.dir/CheckFunctionExists.c.o -o cmTryCompileExec4021717864 -rdynamic -lm -lcrypt -ldl -lpthread -lrt CMakeFiles/cmTryCompileExec4021717864.dir/CheckFunctionExists.c.o: In functionmain':
CheckFunctionExists.c:(.text+0x15): undefined reference to tell' collect2: error: ld returned 1 exit status gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [cmTryCompileExec4021717864] Error 1
gmake: *** [cmTryCompileExec4021717864/fast] Error 2

Determining if the function thr_setconcurrency exists failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec128585127/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec128585127.dir/build.make CMakeFiles/cmTryCompileExec128585127.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec128585127.dir/CheckFunctionExists.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=thr_setconcurrency -o CMakeFiles/cmTryCompileExec128585127.dir/CheckFunctionExists.c.o -c /usr/share/cmake/Modules/CheckFunctionExists.c Linking C executable cmTryCompileExec128585127 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec128585127.dir/link.txt --verbose=1 /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=thr_setconcurrency CMakeFiles/cmTryCompileExec128585127.dir/CheckFunctionExists.c.o -o cmTryCompileExec128585127 -rdynamic -lm -lcrypt -ldl -lpthread -lrt CMakeFiles/cmTryCompileExec128585127.dir/CheckFunctionExists.c.o: In functionmain':
CheckFunctionExists.c:(.text+0x15): undefined reference to thr_setconcurrency' collect2: error: ld returned 1 exit status gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [cmTryCompileExec128585127] Error 1
gmake: *** [cmTryCompileExec128585127/fast] Error 2

Determining if the function thr_yield exists failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec1540290372/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec1540290372.dir/build.make CMakeFiles/cmTryCompileExec1540290372.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec1540290372.dir/CheckFunctionExists.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=thr_yield -o CMakeFiles/cmTryCompileExec1540290372.dir/CheckFunctionExists.c.o -c /usr/share/cmake/Modules/CheckFunctionExists.c Linking C executable cmTryCompileExec1540290372 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec1540290372.dir/link.txt --verbose=1 /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=thr_yield CMakeFiles/cmTryCompileExec1540290372.dir/CheckFunctionExists.c.o -o cmTryCompileExec1540290372 -rdynamic -lm -lcrypt -ldl -lpthread -lrt CMakeFiles/cmTryCompileExec1540290372.dir/CheckFunctionExists.c.o: In functionmain':
CheckFunctionExists.c:(.text+0x15): undefined reference to thr_yield' collect2: error: ld returned 1 exit status gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [cmTryCompileExec1540290372] Error 1
gmake: *** [cmTryCompileExec1540290372/fast] Error 2

Determining if the function ntohll exists failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec2644585962/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec2644585962.dir/build.make CMakeFiles/cmTryCompileExec2644585962.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec2644585962.dir/CheckFunctionExists.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=ntohll -o CMakeFiles/cmTryCompileExec2644585962.dir/CheckFunctionExists.c.o -c /usr/share/cmake/Modules/CheckFunctionExists.c Linking C executable cmTryCompileExec2644585962 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec2644585962.dir/link.txt --verbose=1 /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=ntohll CMakeFiles/cmTryCompileExec2644585962.dir/CheckFunctionExists.c.o -o cmTryCompileExec2644585962 -rdynamic -lm -lcrypt -ldl -lpthread -lrt CMakeFiles/cmTryCompileExec2644585962.dir/CheckFunctionExists.c.o: In functionmain':
CheckFunctionExists.c:(.text+0x15): undefined reference to ntohll' collect2: error: ld returned 1 exit status gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [cmTryCompileExec2644585962] Error 1
gmake: *** [cmTryCompileExec2644585962/fast] Error 2

Determining if the function kqueue exists failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec2381115715/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec2381115715.dir/build.make CMakeFiles/cmTryCompileExec2381115715.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec2381115715.dir/CheckFunctionExists.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=kqueue -o CMakeFiles/cmTryCompileExec2381115715.dir/CheckFunctionExists.c.o -c /usr/share/cmake/Modules/CheckFunctionExists.c Linking C executable cmTryCompileExec2381115715 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec2381115715.dir/link.txt --verbose=1 /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=kqueue CMakeFiles/cmTryCompileExec2381115715.dir/CheckFunctionExists.c.o -o cmTryCompileExec2381115715 -rdynamic -lm -lcrypt -ldl -lpthread -lrt CMakeFiles/cmTryCompileExec2381115715.dir/CheckFunctionExists.c.o: In functionmain':
CheckFunctionExists.c:(.text+0x15): undefined reference to kqueue' collect2: error: ld returned 1 exit status gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [cmTryCompileExec2381115715] Error 1
gmake: *** [cmTryCompileExec2381115715/fast] Error 2

Determining if the function kqueue exists failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec2722130194/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec2722130194.dir/build.make CMakeFiles/cmTryCompileExec2722130194.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec2722130194.dir/CheckFunctionExists.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=kqueue -o CMakeFiles/cmTryCompileExec2722130194.dir/CheckFunctionExists.c.o -c /usr/share/cmake/Modules/CheckFunctionExists.c Linking C executable cmTryCompileExec2722130194 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec2722130194.dir/link.txt --verbose=1 /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=kqueue CMakeFiles/cmTryCompileExec2722130194.dir/CheckFunctionExists.c.o -o cmTryCompileExec2722130194 -rdynamic -lm -lcrypt -ldl -lpthread -lrt CMakeFiles/cmTryCompileExec2722130194.dir/CheckFunctionExists.c.o: In functionmain':
CheckFunctionExists.c:(.text+0x15): undefined reference to kqueue' collect2: error: ld returned 1 exit status gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [cmTryCompileExec2722130194] Error 1
gmake: *** [cmTryCompileExec2722130194/fast] Error 2

Determining if files ia64intrin.h exist failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec689931881/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec689931881.dir/build.make CMakeFiles/cmTryCompileExec689931881.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec689931881.dir/CheckIncludeFiles.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -o CMakeFiles/cmTryCompileExec689931881.dir/CheckIncludeFiles.c.o -c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckIncludeFiles.c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckIncludeFiles.c:2:24: fatal error: ia64intrin.h: No such file or directory compilation terminated. gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [CMakeFiles/cmTryCompileExec689931881.dir/CheckIncludeFiles.c.o] Error 1
gmake: *** [cmTryCompileExec689931881/fast] Error 2

Source:
/* */
#include <ia64intrin.h>

int main(){return 0;}

Determining if the function read_real_time exists failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec916264613/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec916264613.dir/build.make CMakeFiles/cmTryCompileExec916264613.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec916264613.dir/CheckFunctionExists.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=read_real_time -o CMakeFiles/cmTryCompileExec916264613.dir/CheckFunctionExists.c.o -c /usr/share/cmake/Modules/CheckFunctionExists.c Linking C executable cmTryCompileExec916264613 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec916264613.dir/link.txt --verbose=1 /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=read_real_time CMakeFiles/cmTryCompileExec916264613.dir/CheckFunctionExists.c.o -o cmTryCompileExec916264613 -rdynamic -lm -lcrypt -ldl -lpthread -lrt CMakeFiles/cmTryCompileExec916264613.dir/CheckFunctionExists.c.o: In functionmain':
CheckFunctionExists.c:(.text+0x15): undefined reference to read_real_time' collect2: error: ld returned 1 exit status gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [cmTryCompileExec916264613] Error 1
gmake: *** [cmTryCompileExec916264613/fast] Error 2

Determining if the function rdtscll exists failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec3931102647/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec3931102647.dir/build.make CMakeFiles/cmTryCompileExec3931102647.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec3931102647.dir/CheckFunctionExists.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=rdtscll -o CMakeFiles/cmTryCompileExec3931102647.dir/CheckFunctionExists.c.o -c /usr/share/cmake/Modules/CheckFunctionExists.c Linking C executable cmTryCompileExec3931102647 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec3931102647.dir/link.txt --verbose=1 /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=rdtscll CMakeFiles/cmTryCompileExec3931102647.dir/CheckFunctionExists.c.o -o cmTryCompileExec3931102647 -rdynamic -lm -lcrypt -ldl -lpthread -lrt CMakeFiles/cmTryCompileExec3931102647.dir/CheckFunctionExists.c.o: In functionmain':
CheckFunctionExists.c:(.text+0x15): undefined reference to rdtscll' collect2: error: ld returned 1 exit status gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [cmTryCompileExec3931102647] Error 1
gmake: *** [cmTryCompileExec3931102647/fast] Error 2

Determining if the TIOCSTAT exist failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec983316188/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec983316188.dir/build.make CMakeFiles/cmTryCompileExec983316188.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec983316188.dir/CheckSymbolExists.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -o CMakeFiles/cmTryCompileExec983316188.dir/CheckSymbolExists.c.o -c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckSymbolExists.c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckSymbolExists.c: In function ‘main’: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: error: ‘TIOCSTAT’ undeclared (first use in this function) /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: note: each undeclared identifier is reported only once for each function it appears in gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [CMakeFiles/cmTryCompileExec983316188.dir/CheckSymbolExists.c.o] Error 1
gmake: *** [cmTryCompileExec983316188/fast] Error 2

File /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <sys/ioctl.h>

int main(int argc, char** argv)
{
(void)argv;
#ifndef TIOCSTAT
return ((int*)(&TIOCSTAT))[argc];
#else
(void)argc;
return 0;
#endif
}

Determining if the FIONREAD exist failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec1518453214/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec1518453214.dir/build.make CMakeFiles/cmTryCompileExec1518453214.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec1518453214.dir/CheckSymbolExists.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -o CMakeFiles/cmTryCompileExec1518453214.dir/CheckSymbolExists.c.o -c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckSymbolExists.c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckSymbolExists.c:2:23: fatal error: sys/filio.h: No such file or directory compilation terminated. gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [CMakeFiles/cmTryCompileExec1518453214.dir/CheckSymbolExists.c.o] Error 1
gmake: *** [cmTryCompileExec1518453214/fast] Error 2

File /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <sys/filio.h>

int main(int argc, char** argv)
{
(void)argv;
#ifndef FIONREAD
return ((int*)(&FIONREAD))[argc];
#else
(void)argc;
return 0;
#endif
}

Determining if the SIGEV_PORT exist failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec2627423824/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec2627423824.dir/build.make CMakeFiles/cmTryCompileExec2627423824.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec2627423824.dir/CheckSymbolExists.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -o CMakeFiles/cmTryCompileExec2627423824.dir/CheckSymbolExists.c.o -c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckSymbolExists.c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckSymbolExists.c: In function ‘main’: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckSymbolExists.c:9:19: error: ‘SIGEV_PORT’ undeclared (first use in this function) /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckSymbolExists.c:9:19: note: each undeclared identifier is reported only once for each function it appears in gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [CMakeFiles/cmTryCompileExec2627423824.dir/CheckSymbolExists.c.o] Error 1
gmake: *** [cmTryCompileExec2627423824/fast] Error 2

File /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <signal.h>
#include <time.h>

int main(int argc, char** argv)
{
(void)argv;
#ifndef SIGEV_PORT
return ((int*)(&SIGEV_PORT))[argc];
#else
(void)argc;
return 0;
#endif
}

Determining if the EVFILT_TIMER exist failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec120341039/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec120341039.dir/build.make CMakeFiles/cmTryCompileExec120341039.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec120341039.dir/CheckSymbolExists.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -o CMakeFiles/cmTryCompileExec120341039.dir/CheckSymbolExists.c.o -c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckSymbolExists.c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckSymbolExists.c:3:23: fatal error: sys/event.h: No such file or directory compilation terminated. gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [CMakeFiles/cmTryCompileExec120341039.dir/CheckSymbolExists.c.o] Error 1
gmake: *** [cmTryCompileExec120341039/fast] Error 2

File /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <sys/types.h>
#include <sys/event.h>
#include <sys/time.h>

int main(int argc, char** argv)
{
(void)argv;
#ifndef EVFILT_TIMER
return ((int*)(&EVFILT_TIMER))[argc];
#else
(void)argc;
return 0;
#endif
}

Determining if the system is big endian passed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec3305064601/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec3305064601.dir/build.make CMakeFiles/cmTryCompileExec3305064601.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec3305064601.dir/TestEndianess.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -o CMakeFiles/cmTryCompileExec3305064601.dir/TestEndianess.c.o -c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/TestEndianess.c Linking C executable cmTryCompileExec3305064601 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec3305064601.dir/link.txt --verbose=1 /opt/centos/devtoolset-1.1/root/usr/bin/cc CMakeFiles/cmTryCompileExec3305064601.dir/TestEndianess.c.o -o cmTryCompileExec3305064601 -rdynamic gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'

TestEndianess.c:
/* A 16 bit integer is required. */
typedef unsigned short cmakeint16;

/* On a little endian machine, these 16bit ints will give "THIS IS LITTLE ENDIAN."
On a big endian machine the characters will be exchanged pairwise. */
const cmakeint16 info_little[] = {0x4854, 0x5349, 0x4920, 0x2053, 0x494c, 0x5454, 0x454c, 0x4520, 0x444e, 0x4149, 0x2e4e, 0x0000};

/* on a big endian machine, these 16bit ints will give "THIS IS BIG ENDIAN."
On a little endian machine the characters will be exchanged pairwise. */
const cmakeint16 info_big[] = {0x5448, 0x4953, 0x2049, 0x5320, 0x4249, 0x4720, 0x454e, 0x4449, 0x414e, 0x2e2e, 0x0000};

#ifdef CLASSIC_C
int main(argc, argv) int argc; char *argv[];
#else
int main(int argc, char *argv[])
#endif
{
int require = 0;
require += info_little[argc];
require += info_big[argc];
(void)argv;
return require;
}

Determining size of uchar failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec2911080631/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec2911080631.dir/build.make CMakeFiles/cmTryCompileExec2911080631.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec2911080631.dir/SIZEOF_UCHAR.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -o CMakeFiles/cmTryCompileExec2911080631.dir/SIZEOF_UCHAR.c.o -c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CheckTypeSize/SIZEOF_UCHAR.c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CheckTypeSize/SIZEOF_UCHAR.c:21:12: error: ‘uchar’ undeclared here (not in a function) gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [CMakeFiles/cmTryCompileExec2911080631.dir/SIZEOF_UCHAR.c.o] Error 1
gmake: *** [cmTryCompileExec2911080631/fast] Error 2

/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CheckTypeSize/SIZEOF_UCHAR.c:
#include <sys/types.h>
#include <stdint.h>
#include <stddef.h>
#include "stdio.h"
#include "sys/types.h"

#undef KEY
#if defined(__i386)

define KEY '','','i','3','8','6'

#elif defined(__x86_64)

define KEY '','','x','8','6','_','6','4'

#elif defined(ppc)

define KEY '','','p','p','c','',''

#elif defined(ppc64)

define KEY '','','p','p','c','6','4','',''

#endif

#define SIZE (sizeof(uchar))
char info_size[] = {'I', 'N', 'F', 'O', ':', 's','i','z','e','[',
('0' + ((SIZE / 10000)%10)),
('0' + ((SIZE / 1000)%10)),
('0' + ((SIZE / 100)%10)),
('0' + ((SIZE / 10)%10)),
('0' + (SIZE % 10)),
']',
#ifdef KEY
' ','k','e','y','[', KEY, ']',
#endif
'\0'};

#ifdef CLASSIC_C
int main(argc, argv) int argc; char *argv[];
#else
int main(int argc, char *argv[])
#endif
{
int require = 0;
require += info_size[argc];
(void)argv;
return require;
}

Determining size of int8 failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec2837398248/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec2837398248.dir/build.make CMakeFiles/cmTryCompileExec2837398248.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec2837398248.dir/SIZEOF_INT8.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -o CMakeFiles/cmTryCompileExec2837398248.dir/SIZEOF_INT8.c.o -c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CheckTypeSize/SIZEOF_INT8.c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CheckTypeSize/SIZEOF_INT8.c:21:12: error: ‘int8’ undeclared here (not in a function) gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [CMakeFiles/cmTryCompileExec2837398248.dir/SIZEOF_INT8.c.o] Error 1
gmake: *** [cmTryCompileExec2837398248/fast] Error 2

/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CheckTypeSize/SIZEOF_INT8.c:
#include <sys/types.h>
#include <stdint.h>
#include <stddef.h>
#include "stdio.h"
#include "sys/types.h"

#undef KEY
#if defined(__i386)

define KEY '','','i','3','8','6'

#elif defined(__x86_64)

define KEY '','','x','8','6','_','6','4'

#elif defined(ppc)

define KEY '','','p','p','c','',''

#elif defined(ppc64)

define KEY '','','p','p','c','6','4','',''

#endif

#define SIZE (sizeof(int8))
char info_size[] = {'I', 'N', 'F', 'O', ':', 's','i','z','e','[',
('0' + ((SIZE / 10000)%10)),
('0' + ((SIZE / 1000)%10)),
('0' + ((SIZE / 100)%10)),
('0' + ((SIZE / 10)%10)),
('0' + (SIZE % 10)),
']',
#ifdef KEY
' ','k','e','y','[', KEY, ']',
#endif
'\0'};

#ifdef CLASSIC_C
int main(argc, argv) int argc; char *argv[];
#else
int main(int argc, char *argv[])
#endif
{
int require = 0;
require += info_size[argc];
(void)argv;
return require;
}

Determining size of uint8 failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec4228924843/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec4228924843.dir/build.make CMakeFiles/cmTryCompileExec4228924843.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec4228924843.dir/SIZEOF_UINT8.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -o CMakeFiles/cmTryCompileExec4228924843.dir/SIZEOF_UINT8.c.o -c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CheckTypeSize/SIZEOF_UINT8.c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CheckTypeSize/SIZEOF_UINT8.c:21:12: error: ‘uint8’ undeclared here (not in a function) gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [CMakeFiles/cmTryCompileExec4228924843.dir/SIZEOF_UINT8.c.o] Error 1
gmake: *** [cmTryCompileExec4228924843/fast] Error 2

/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CheckTypeSize/SIZEOF_UINT8.c:
#include <sys/types.h>
#include <stdint.h>
#include <stddef.h>
#include "stdio.h"
#include "sys/types.h"

#undef KEY
#if defined(__i386)

define KEY '','','i','3','8','6'

#elif defined(__x86_64)

define KEY '','','x','8','6','_','6','4'

#elif defined(ppc)

define KEY '','','p','p','c','',''

#elif defined(ppc64)

define KEY '','','p','p','c','6','4','',''

#endif

#define SIZE (sizeof(uint8))
char info_size[] = {'I', 'N', 'F', 'O', ':', 's','i','z','e','[',
('0' + ((SIZE / 10000)%10)),
('0' + ((SIZE / 1000)%10)),
('0' + ((SIZE / 100)%10)),
('0' + ((SIZE / 10)%10)),
('0' + (SIZE % 10)),
']',
#ifdef KEY
' ','k','e','y','[', KEY, ']',
#endif
'\0'};

#ifdef CLASSIC_C
int main(argc, argv) int argc; char *argv[];
#else
int main(int argc, char *argv[])
#endif
{
int require = 0;
require += info_size[argc];
(void)argv;
return require;
}

Determining size of int16 failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec1337165139/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec1337165139.dir/build.make CMakeFiles/cmTryCompileExec1337165139.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec1337165139.dir/SIZEOF_INT16.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -o CMakeFiles/cmTryCompileExec1337165139.dir/SIZEOF_INT16.c.o -c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CheckTypeSize/SIZEOF_INT16.c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CheckTypeSize/SIZEOF_INT16.c:21:12: error: ‘int16’ undeclared here (not in a function) gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [CMakeFiles/cmTryCompileExec1337165139.dir/SIZEOF_INT16.c.o] Error 1
gmake: *** [cmTryCompileExec1337165139/fast] Error 2

/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CheckTypeSize/SIZEOF_INT16.c:
#include <sys/types.h>
#include <stdint.h>
#include <stddef.h>
#include "stdio.h"
#include "sys/types.h"

#undef KEY
#if defined(__i386)

define KEY '','','i','3','8','6'

#elif defined(__x86_64)

define KEY '','','x','8','6','_','6','4'

#elif defined(ppc)

define KEY '','','p','p','c','',''

#elif defined(ppc64)

define KEY '','','p','p','c','6','4','',''

#endif

#define SIZE (sizeof(int16))
char info_size[] = {'I', 'N', 'F', 'O', ':', 's','i','z','e','[',
('0' + ((SIZE / 10000)%10)),
('0' + ((SIZE / 1000)%10)),
('0' + ((SIZE / 100)%10)),
('0' + ((SIZE / 10)%10)),
('0' + (SIZE % 10)),
']',
#ifdef KEY
' ','k','e','y','[', KEY, ']',
#endif
'\0'};

#ifdef CLASSIC_C
int main(argc, argv) int argc; char *argv[];
#else
int main(int argc, char *argv[])
#endif
{
int require = 0;
require += info_size[argc];
(void)argv;
return require;
}

Determining size of uint16 failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec4183169177/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec4183169177.dir/build.make CMakeFiles/cmTryCompileExec4183169177.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec4183169177.dir/SIZEOF_UINT16.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -o CMakeFiles/cmTryCompileExec4183169177.dir/SIZEOF_UINT16.c.o -c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CheckTypeSize/SIZEOF_UINT16.c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CheckTypeSize/SIZEOF_UINT16.c:21:12: error: ‘uint16’ undeclared here (not in a function) gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [CMakeFiles/cmTryCompileExec4183169177.dir/SIZEOF_UINT16.c.o] Error 1
gmake: *** [cmTryCompileExec4183169177/fast] Error 2

/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CheckTypeSize/SIZEOF_UINT16.c:
#include <sys/types.h>
#include <stdint.h>
#include <stddef.h>
#include "stdio.h"
#include "sys/types.h"

#undef KEY
#if defined(__i386)

define KEY '','','i','3','8','6'

#elif defined(__x86_64)

define KEY '','','x','8','6','_','6','4'

#elif defined(ppc)

define KEY '','','p','p','c','',''

#elif defined(ppc64)

define KEY '','','p','p','c','6','4','',''

#endif

#define SIZE (sizeof(uint16))
char info_size[] = {'I', 'N', 'F', 'O', ':', 's','i','z','e','[',
('0' + ((SIZE / 10000)%10)),
('0' + ((SIZE / 1000)%10)),
('0' + ((SIZE / 100)%10)),
('0' + ((SIZE / 10)%10)),
('0' + (SIZE % 10)),
']',
#ifdef KEY
' ','k','e','y','[', KEY, ']',
#endif
'\0'};

#ifdef CLASSIC_C
int main(argc, argv) int argc; char *argv[];
#else
int main(int argc, char *argv[])
#endif
{
int require = 0;
require += info_size[argc];
(void)argv;
return require;
}

Determining size of int32 failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec1086141673/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec1086141673.dir/build.make CMakeFiles/cmTryCompileExec1086141673.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec1086141673.dir/SIZEOF_INT32.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -o CMakeFiles/cmTryCompileExec1086141673.dir/SIZEOF_INT32.c.o -c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CheckTypeSize/SIZEOF_INT32.c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CheckTypeSize/SIZEOF_INT32.c:21:12: error: ‘int32’ undeclared here (not in a function) gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [CMakeFiles/cmTryCompileExec1086141673.dir/SIZEOF_INT32.c.o] Error 1
gmake: *** [cmTryCompileExec1086141673/fast] Error 2

/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CheckTypeSize/SIZEOF_INT32.c:
#include <sys/types.h>
#include <stdint.h>
#include <stddef.h>
#include "stdio.h"
#include "sys/types.h"

#undef KEY
#if defined(__i386)

define KEY '','','i','3','8','6'

#elif defined(__x86_64)

define KEY '','','x','8','6','_','6','4'

#elif defined(ppc)

define KEY '','','p','p','c','',''

#elif defined(ppc64)

define KEY '','','p','p','c','6','4','',''

#endif

#define SIZE (sizeof(int32))
char info_size[] = {'I', 'N', 'F', 'O', ':', 's','i','z','e','[',
('0' + ((SIZE / 10000)%10)),
('0' + ((SIZE / 1000)%10)),
('0' + ((SIZE / 100)%10)),
('0' + ((SIZE / 10)%10)),
('0' + (SIZE % 10)),
']',
#ifdef KEY
' ','k','e','y','[', KEY, ']',
#endif
'\0'};

#ifdef CLASSIC_C
int main(argc, argv) int argc; char *argv[];
#else
int main(int argc, char *argv[])
#endif
{
int require = 0;
require += info_size[argc];
(void)argv;
return require;
}

Determining size of uint32 failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec1609384869/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec1609384869.dir/build.make CMakeFiles/cmTryCompileExec1609384869.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec1609384869.dir/SIZEOF_UINT32.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -o CMakeFiles/cmTryCompileExec1609384869.dir/SIZEOF_UINT32.c.o -c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CheckTypeSize/SIZEOF_UINT32.c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CheckTypeSize/SIZEOF_UINT32.c:21:12: error: ‘uint32’ undeclared here (not in a function) gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [CMakeFiles/cmTryCompileExec1609384869.dir/SIZEOF_UINT32.c.o] Error 1
gmake: *** [cmTryCompileExec1609384869/fast] Error 2

/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CheckTypeSize/SIZEOF_UINT32.c:
#include <sys/types.h>
#include <stdint.h>
#include <stddef.h>
#include "stdio.h"
#include "sys/types.h"

#undef KEY
#if defined(__i386)

define KEY '','','i','3','8','6'

#elif defined(__x86_64)

define KEY '','','x','8','6','_','6','4'

#elif defined(ppc)

define KEY '','','p','p','c','',''

#elif defined(ppc64)

define KEY '','','p','p','c','6','4','',''

#endif

#define SIZE (sizeof(uint32))
char info_size[] = {'I', 'N', 'F', 'O', ':', 's','i','z','e','[',
('0' + ((SIZE / 10000)%10)),
('0' + ((SIZE / 1000)%10)),
('0' + ((SIZE / 100)%10)),
('0' + ((SIZE / 10)%10)),
('0' + (SIZE % 10)),
']',
#ifdef KEY
' ','k','e','y','[', KEY, ']',
#endif
'\0'};

#ifdef CLASSIC_C
int main(argc, argv) int argc; char *argv[];
#else
int main(int argc, char *argv[])
#endif
{
int require = 0;
require += info_size[argc];
(void)argv;
return require;
}

Determining size of int64 failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec827733275/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec827733275.dir/build.make CMakeFiles/cmTryCompileExec827733275.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec827733275.dir/SIZEOF_INT64.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -o CMakeFiles/cmTryCompileExec827733275.dir/SIZEOF_INT64.c.o -c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CheckTypeSize/SIZEOF_INT64.c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CheckTypeSize/SIZEOF_INT64.c:21:12: error: ‘int64’ undeclared here (not in a function) gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [CMakeFiles/cmTryCompileExec827733275.dir/SIZEOF_INT64.c.o] Error 1
gmake: *** [cmTryCompileExec827733275/fast] Error 2

/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CheckTypeSize/SIZEOF_INT64.c:
#include <sys/types.h>
#include <stdint.h>
#include <stddef.h>
#include "stdio.h"
#include "sys/types.h"

#undef KEY
#if defined(__i386)

define KEY '','','i','3','8','6'

#elif defined(__x86_64)

define KEY '','','x','8','6','_','6','4'

#elif defined(ppc)

define KEY '','','p','p','c','',''

#elif defined(ppc64)

define KEY '','','p','p','c','6','4','',''

#endif

#define SIZE (sizeof(int64))
char info_size[] = {'I', 'N', 'F', 'O', ':', 's','i','z','e','[',
('0' + ((SIZE / 10000)%10)),
('0' + ((SIZE / 1000)%10)),
('0' + ((SIZE / 100)%10)),
('0' + ((SIZE / 10)%10)),
('0' + (SIZE % 10)),
']',
#ifdef KEY
' ','k','e','y','[', KEY, ']',
#endif
'\0'};

#ifdef CLASSIC_C
int main(argc, argv) int argc; char *argv[];
#else
int main(int argc, char *argv[])
#endif
{
int require = 0;
require += info_size[argc];
(void)argv;
return require;
}

Determining size of uint64 failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec389407935/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec389407935.dir/build.make CMakeFiles/cmTryCompileExec389407935.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec389407935.dir/SIZEOF_UINT64.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -o CMakeFiles/cmTryCompileExec389407935.dir/SIZEOF_UINT64.c.o -c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CheckTypeSize/SIZEOF_UINT64.c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CheckTypeSize/SIZEOF_UINT64.c:21:12: error: ‘uint64’ undeclared here (not in a function) gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [CMakeFiles/cmTryCompileExec389407935.dir/SIZEOF_UINT64.c.o] Error 1
gmake: *** [cmTryCompileExec389407935/fast] Error 2

/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CheckTypeSize/SIZEOF_UINT64.c:
#include <sys/types.h>
#include <stdint.h>
#include <stddef.h>
#include "stdio.h"
#include "sys/types.h"

#undef KEY
#if defined(__i386)

define KEY '','','i','3','8','6'

#elif defined(__x86_64)

define KEY '','','x','8','6','_','6','4'

#elif defined(ppc)

define KEY '','','p','p','c','',''

#elif defined(ppc64)

define KEY '','','p','p','c','6','4','',''

#endif

#define SIZE (sizeof(uint64))
char info_size[] = {'I', 'N', 'F', 'O', ':', 's','i','z','e','[',
('0' + ((SIZE / 10000)%10)),
('0' + ((SIZE / 1000)%10)),
('0' + ((SIZE / 100)%10)),
('0' + ((SIZE / 10)%10)),
('0' + (SIZE % 10)),
']',
#ifdef KEY
' ','k','e','y','[', KEY, ']',
#endif
'\0'};

#ifdef CLASSIC_C
int main(argc, argv) int argc; char *argv[];
#else
int main(int argc, char *argv[])
#endif
{
int require = 0;
require += info_size[argc];
(void)argv;
return require;
}

Determining size of bool failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec1765575830/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec1765575830.dir/build.make CMakeFiles/cmTryCompileExec1765575830.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec1765575830.dir/SIZEOF_BOOL.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -o CMakeFiles/cmTryCompileExec1765575830.dir/SIZEOF_BOOL.c.o -c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CheckTypeSize/SIZEOF_BOOL.c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CheckTypeSize/SIZEOF_BOOL.c:20:12: error: ‘bool’ undeclared here (not in a function) gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [CMakeFiles/cmTryCompileExec1765575830.dir/SIZEOF_BOOL.c.o] Error 1
gmake: *** [cmTryCompileExec1765575830/fast] Error 2

/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CheckTypeSize/SIZEOF_BOOL.c:
#include <sys/types.h>
#include <stdint.h>
#include <stddef.h>
#include "sys/types.h"

#undef KEY
#if defined(__i386)

define KEY '','','i','3','8','6'

#elif defined(__x86_64)

define KEY '','','x','8','6','_','6','4'

#elif defined(ppc)

define KEY '','','p','p','c','',''

#elif defined(ppc64)

define KEY '','','p','p','c','6','4','',''

#endif

#define SIZE (sizeof(bool))
char info_size[] = {'I', 'N', 'F', 'O', ':', 's','i','z','e','[',
('0' + ((SIZE / 10000)%10)),
('0' + ((SIZE / 1000)%10)),
('0' + ((SIZE / 100)%10)),
('0' + ((SIZE / 10)%10)),
('0' + (SIZE % 10)),
']',
#ifdef KEY
' ','k','e','y','[', KEY, ']',
#endif
'\0'};

#ifdef CLASSIC_C
int main(argc, argv) int argc; char *argv[];
#else
int main(int argc, char *argv[])
#endif
{
int require = 0;
require += info_size[argc];
(void)argv;
return require;
}

Performing C SOURCE FILE Test TIME_T_UNSIGNED failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec2052500613/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec2052500613.dir/build.make CMakeFiles/cmTryCompileExec2052500613.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec2052500613.dir/src.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -DTIME_T_UNSIGNED -o CMakeFiles/cmTryCompileExec2052500613.dir/src.c.o -c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/src.c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/src.c: In function ‘main’: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/src.c:5:7: error: size of array ‘array’ is negative gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [CMakeFiles/cmTryCompileExec2052500613.dir/src.c.o] Error 1
gmake: *** [cmTryCompileExec2052500613/fast] Error 2

Source file was:

#include <time.h>
int main()
{
int array[(((time_t)-1) > 0) ? 1 : -1];
return 0;
}
Performing C SOURCE FILE Test HAVE_TIMESPEC_TS_SEC failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec2267347160/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec2267347160.dir/build.make CMakeFiles/cmTryCompileExec2267347160.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec2267347160.dir/src.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -DHAVE_TIMESPEC_TS_SEC -o CMakeFiles/cmTryCompileExec2267347160.dir/src.c.o -c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/src.c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/src.c: In function ‘main’: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/src.c:7:10: error: ‘struct timespec’ has no member named ‘ts_sec’ /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/src.c:8:10: error: ‘struct timespec’ has no member named ‘ts_nsec’ gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [CMakeFiles/cmTryCompileExec2267347160.dir/src.c.o] Error 1
gmake: *** [cmTryCompileExec2267347160/fast] Error 2

Source file was:

#include <pthread.h>

int main(int ac, char **av)
{
struct timespec abstime;
abstime.ts_sec = time(NULL)+1;
abstime.ts_nsec = 0;
}

Performing C++ SOURCE FILE Test HAVE_SOLARIS_STYLE_GETHOST failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec1610582650/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec1610582650.dir/build.make CMakeFiles/cmTryCompileExec1610582650.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building CXX object CMakeFiles/cmTryCompileExec1610582650.dir/src.cxx.o /opt/centos/devtoolset-1.1/root/usr/bin/c++ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -DHAVE_SOLARIS_STYLE_GETHOST -o CMakeFiles/cmTryCompileExec1610582650.dir/src.cxx.o -c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/src.cxx /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/src.cxx: In function ‘int main()’: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/src.cxx:17:66: error: cannot convert ‘int*’ to ‘hostent**’ for argument ‘7’ to ‘int gethostbyaddr_r(const void*, __socklen_t, int, hostent*, char*, size_t, hostent**, int*)’ gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [CMakeFiles/cmTryCompileExec1610582650.dir/src.cxx.o] Error 1
gmake: *** [cmTryCompileExec1610582650/fast] Error 2

Source file was:

#undef inline
#if !defined(SCO) && !defined(__osf__) && !defined(_REENTRANT)
#define _REENTRANT
#endif
#include <pthread.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
int main()
{

   struct hostent *foo =
   gethostbyaddr_r((const char *) 0,
      0, 0, (struct hostent *) 0, (char *) NULL,  0, (int *)0);
   return 0;
}

Determining if the include file netinet/in6.h exists failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec38560120/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec38560120.dir/build.make CMakeFiles/cmTryCompileExec38560120.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec38560120.dir/CheckIncludeFile.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -o CMakeFiles/cmTryCompileExec38560120.dir/CheckIncludeFile.c.o -c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckIncludeFile.c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:25: fatal error: netinet/in6.h: No such file or directory compilation terminated. gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [CMakeFiles/cmTryCompileExec38560120.dir/CheckIncludeFile.c.o] Error 1
gmake: *** [cmTryCompileExec38560120/fast] Error 2

Performing C SOURCE FILE Test HAVE_SOCKADDR_IN_SIN_LEN failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec1511869410/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec1511869410.dir/build.make CMakeFiles/cmTryCompileExec1511869410.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec1511869410.dir/src.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -DHAVE_SOCKADDR_IN_SIN_LEN -o CMakeFiles/cmTryCompileExec1511869410.dir/src.c.o -c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/src.c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/src.c: In function ‘main’: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/src.c:9:7: error: ‘struct sockaddr_in’ has no member named ‘sin_len’ gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [CMakeFiles/cmTryCompileExec1511869410.dir/src.c.o] Error 1
gmake: *** [cmTryCompileExec1511869410/fast] Error 2

Source file was:

#include <sys/types.h>
#include <netinet/in.h>
#include <sys/socket.h>

int main()
{
struct sockaddr_in* tmp;
tmp->sin_len;
return 0;
}

Performing C SOURCE FILE Test HAVE_SOCKADDR_IN6_SIN6_LEN failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec3881125736/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec3881125736.dir/build.make CMakeFiles/cmTryCompileExec3881125736.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec3881125736.dir/src.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -DHAVE_SOCKADDR_IN6_SIN6_LEN -o CMakeFiles/cmTryCompileExec3881125736.dir/src.c.o -c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/src.c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/src.c: In function ‘main’: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/src.c:9:7: error: ‘struct sockaddr_in6’ has no member named ‘sin6_len’ gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [CMakeFiles/cmTryCompileExec3881125736.dir/src.c.o] Error 1
gmake: *** [cmTryCompileExec3881125736/fast] Error 2

Source file was:

#include <sys/types.h>
#include <netinet/in.h>
#include <sys/socket.h>

int main()
{
struct sockaddr_in6* tmp;
tmp->sin6_len;
return 0;
}

Performing C SOURCE FILE Test STRUCT_DIRENT_HAS_D_NAMLEN failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec3389990028/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec3389990028.dir/build.make CMakeFiles/cmTryCompileExec3389990028.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec3389990028.dir/src.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -DSTRUCT_DIRENT_HAS_D_NAMLEN -o CMakeFiles/cmTryCompileExec3389990028.dir/src.c.o -c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/src.c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/src.c: In function ‘main’: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/src.c:7:7: error: ‘struct dirent’ has no member named ‘d_namlen’ gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [CMakeFiles/cmTryCompileExec3389990028.dir/src.c.o] Error 1
gmake: *** [cmTryCompileExec3389990028/fast] Error 2

Source file was:

#include <dirent.h>

int main()
{
struct dirent* tmp;
tmp->d_namlen;
return 0;
}

Determining if the function mbscmp exists failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec1294293015/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec1294293015.dir/build.make CMakeFiles/cmTryCompileExec1294293015.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec1294293015.dir/CheckFunctionExists.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -DCHECK_FUNCTION_EXISTS=mbscmp -o CMakeFiles/cmTryCompileExec1294293015.dir/CheckFunctionExists.c.o -c /usr/share/cmake/Modules/CheckFunctionExists.c Linking C executable cmTryCompileExec1294293015 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec1294293015.dir/link.txt --verbose=1 /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=mbscmp CMakeFiles/cmTryCompileExec1294293015.dir/CheckFunctionExists.c.o -o cmTryCompileExec1294293015 -rdynamic -lm -lcrypt -ldl -lpthread -lrt CMakeFiles/cmTryCompileExec1294293015.dir/CheckFunctionExists.c.o: In functionmain':
CheckFunctionExists.c:(.text+0x15): undefined reference to mbscmp' collect2: error: ld returned 1 exit status gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [cmTryCompileExec1294293015] Error 1
gmake: *** [cmTryCompileExec1294293015/fast] Error 2

Determining if the function tputs exists in the /usr/lib64/libcurses.so failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec1936160680/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec1936160680.dir/build.make CMakeFiles/cmTryCompileExec1936160680.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec1936160680.dir/CheckFunctionExists.c.o /opt/centos/devtoolset-1.1/root/usr/bin/cc -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -DCHECK_FUNCTION_EXISTS=tputs -o CMakeFiles/cmTryCompileExec1936160680.dir/CheckFunctionExists.c.o -c /usr/share/cmake/Modules/CheckFunctionExists.c Linking C executable cmTryCompileExec1936160680 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec1936160680.dir/link.txt --verbose=1 /opt/centos/devtoolset-1.1/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=tputs CMakeFiles/cmTryCompileExec1936160680.dir/CheckFunctionExists.c.o -o cmTryCompileExec1936160680 -rdynamic -lcurses -lm -lcrypt -ldl -lpthread -lrt /opt/centos/devtoolset-1.1/root/usr/libexec/gcc/x86_64-redhat-linux/4.7.2/ld: CMakeFiles/cmTryCompileExec1936160680.dir/CheckFunctionExists.c.o: undefined reference to symbol 'tputs' /opt/centos/devtoolset-1.1/root/usr/libexec/gcc/x86_64-redhat-linux/4.7.2/ld: note: 'tputs' is defined in DSO /lib64/libtinfo.so.5 so try adding it to the linker command line /lib64/libtinfo.so.5: could not read symbols: Invalid operation collect2: error: ld returned 1 exit status gmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'
gmake[1]: *** [cmTryCompileExec1936160680] Error 1
gmake: *** [cmTryCompileExec1936160680/fast] Error 2

Performing C++ SOURCE FILE Test edit_USE_LIBEDIT_INTERFACE failed with the following output:
Change Dir: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec3635023094/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec3635023094.dir/build.make CMakeFiles/cmTryCompileExec3635023094.dir/build
gmake[1]: Entering directory /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/CMakeFiles 1 Building CXX object CMakeFiles/cmTryCompileExec3635023094.dir/src.cxx.o /opt/centos/devtoolset-1.1/root/usr/bin/c++ -DHAVE_READLINE_HISTORY_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Dedit_USE_LIBEDIT_INTERFACE -o CMakeFiles/cmTryCompileExec3635023094.dir/src.cxx.o -c /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/src.cxx /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/src.cxx: In function ‘int main(int, char**)’: /db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp/src.cxx:7:29: error: ‘completion_matches’ was not declared in this scopegmake[1]: Leaving directory/db/mysql-5.6-webscalesql-5.6.24.97/CMakeFiles/CMakeTmp'

gmake[1]: *** [CMakeFiles/cmTryCompileExec3635023094.dir/src.cxx.o] Error 1
gmake: *** [cmTryCompileExec3635023094/fast] Error 2

Source file was:

#include <stdio.h>
#include <readline/readline.h>
int main(int argc, char **argv)
{
  char res= *(*rl_completion_entry_function)(0,0);
  completion_matches(0,0);

@joanney1
Copy link
Author

I did cmake without options.
So I compiled without problems.
What's the problems?

@jtolmer jtolmer self-assigned this Aug 28, 2015
@jtolmer
Copy link
Contributor

jtolmer commented Aug 28, 2015

All of the errors and failures I see in this report are cmake working as intended while it tests for the [un]availability of different features/options/flags/etc. That is further supported by cmake reporting:

--Configuring done
--Generating done
-- Build files have been written to: /db/mysql-5.6-webscalesql-5.6.24.97

I am closing this issue since you didn't make any mention of the subsequent make command returning any errors.

In case you haven't seen it before before, this page may be useful: http://dev.mysql.com/doc/internals/en/cmake.html.

@jtolmer jtolmer closed this as completed Aug 28, 2015
hermanlee pushed a commit that referenced this issue Sep 14, 2015
Add support for INDEX idx(col1, ...) COMMENT '$per_index_cf'
spetrunia added a commit that referenced this issue Jan 5, 2016
Add support for INDEX idx(col1, ...) COMMENT '$per_index_cf'
hermanlee pushed a commit that referenced this issue Jan 31, 2017
Add support for INDEX idx(col1, ...) COMMENT '$per_index_cf'
VitaliyLi pushed a commit to VitaliyLi/mysql-5.6 that referenced this issue Feb 9, 2017
Add support for INDEX idx(col1, ...) COMMENT '$per_index_cf'
inikep pushed a commit to inikep/mysql-5.6 that referenced this issue Dec 27, 2019
inikep pushed a commit to inikep/mysql-5.6 that referenced this issue Aug 12, 2020
inikep pushed a commit to inikep/mysql-5.6 that referenced this issue Mar 11, 2021
inikep pushed a commit to inikep/mysql-5.6 that referenced this issue Aug 16, 2021
inikep pushed a commit to inikep/mysql-5.6 that referenced this issue Aug 30, 2021
inikep pushed a commit to inikep/mysql-5.6 that referenced this issue Sep 1, 2021
inikep pushed a commit to inikep/mysql-5.6 that referenced this issue Sep 2, 2021
inikep pushed a commit to inikep/mysql-5.6 that referenced this issue Jan 17, 2022
inikep pushed a commit to inikep/mysql-5.6 that referenced this issue Apr 26, 2022
laurynas-biveinis pushed a commit to laurynas-biveinis/mysql-5.6 that referenced this issue Aug 11, 2022
laurynas-biveinis added a commit to laurynas-biveinis/mysql-5.6 that referenced this issue Apr 5, 2023
Before this fix, rpl.rpl_semi_sync_alias test under ASan with

```
=================================================================
==65389==ERROR: AddressSanitizer: heap-use-after-free on address 0x0001742e17d4 at pc 0x000107febaf0 bp 0x00016ea8f710 sp 0x00016ea8f708
READ of size 4 at 0x0001742e17d4 thread T80
    #0 0x107febaec in my_free(void*) my_malloc.cc:135
    facebook#1 0x103cb9828 in free_latency_histogram_sysvars(SHOW_VAR*) mysqld.cc:4668
    facebook#2 0x103cb99bc in prepare_latency_histogram_vars(latency_histogram*, SHOW_VAR*, unsigned long long*) mysqld.cc:4692
    facebook#3 0x17c65826c in rpl_semi_sync_master_trx_wait_histogram(THD*, SHOW_VAR*, char*) semisync_source_plugin.cc:581
    facebook#4 0x10be1b4cc in PFS_status_variable_cache::manifest(THD*, SHOW_VAR const*, System_status_var*, char const*, bool, bool) pfs_variable.cc:1366
    facebook#5 0x10be1ba90 in PFS_status_variable_cache::do_materialize_all(THD*) pfs_variable.cc:1172
    facebook#6 0x10c0ab33c in PFS_variable_cache<Status_variable>::materialize_all(THD*) pfs_variable.h:536
    facebook#7 0x10c0ab294 in table_session_status::rnd_init(bool) table_session_status.cc:111
    facebook#8 0x10bceb790 in ha_perfschema::rnd_init(bool) ha_perfschema.cc:1686
    facebook#9 0x1033c7cec in handler::ha_rnd_init(bool) handler.cc:3157
    facebook#10 0x103975380 in TableScanIterator::Init() basic_row_iterators.cc:230
    facebook#11 0x103a33a18 in FilterIterator::Init() composite_iterators.h:82
    facebook#12 0x103982ec0 in MaterializeIterator::MaterializeQueryBlock(MaterializeIterator::QueryBlock const&, unsigned long long*) composite_iterators.cc:845
    facebook#13 0x103981410 in MaterializeIterator::Init() composite_iterators.cc:660
    facebook#14 0x1049fc518 in Query_expression::ExecuteIteratorQuery(THD*) sql_union.cc:1293
    facebook#15 0x1049fd358 in Query_expression::execute(THD*) sql_union.cc:1355
    facebook#16 0x1047ae7ac in Sql_cmd_dml::execute_inner(THD*) sql_select.cc:870
    facebook#17 0x1047ac344 in Sql_cmd_dml::execute(THD*) sql_select.cc:618
    facebook#18 0x1047ffcc8 in Sql_cmd_show::execute(THD*) sql_show.cc:232
    facebook#19 0x10480ab58 in Sql_cmd_show_status::execute(THD*) sql_show.cc:894
    facebook#20 0x1045cea6c in mysql_execute_command(THD*, bool, unsigned long long*) sql_parse.cc:5323
    facebook#21 0x1045c5dcc in dispatch_sql_command(THD*, Parser_state*, unsigned long long*) sql_parse.cc:6093
    facebook#22 0x1045bb92c in dispatch_command(THD*, COM_DATA const*, enum_server_command) sql_parse.cc:2444
    facebook#23 0x1045c06f8 in do_command(THD*) sql_parse.cc:1636
    facebook#24 0x104cc4cc4 in handle_connection(void*) connection_handler_per_thread.cc:307
    facebook#25 0x10bd130d4 in pfs_spawn_thread(void*) pfs.cc:2983
    facebook#26 0x18ad47fa4 in _pthread_start+0x90 (libsystem_pthread.dylib:arm64e+0x6fa4)
    facebook#27 0x18ad42d9c in thread_start+0x4 (libsystem_pthread.dylib:arm64e+0x1d9c)

0x0001742e17d4 is located 4 bytes inside of 40-byte region [0x0001742e17d0,0x0001742e17f8)
freed by thread T80 here:
    #0 0x139ff6de4 in wrap_free+0x98 (libclang_rt.asan_osx_dynamic.dylib:arm64e+0x3ede4)
    facebook#1 0x107febcfc in my_raw_free(void*) my_malloc.cc:269
    facebook#2 0x107feba48 in my_free(void*) my_malloc.cc:141
    facebook#3 0x103cb9828 in free_latency_histogram_sysvars(SHOW_VAR*) mysqld.cc:4668
    facebook#4 0x17c6231e8 in ReplSemiSyncMaster::~ReplSemiSyncMaster() semisync_source.cc:517
    facebook#5 0x17c623488 in ReplSemiSyncMaster::~ReplSemiSyncMaster() semisync_source.cc:516
    facebook#6 0x17c651484 in semi_sync_master_plugin_deinit(void*) semisync_source_plugin.cc:833
    facebook#7 0x10467aa90 in plugin_deinitialize(st_plugin_int*, bool) sql_plugin.cc:1123
    facebook#8 0x1046730b0 in reap_plugins() sql_plugin.cc:1192
    facebook#9 0x1046863b4 in mysql_uninstall_plugin(THD*, MYSQL_LEX_CSTRING) sql_plugin.cc:2602
    facebook#10 0x104685374 in Sql_cmd_uninstall_plugin::execute(THD*) sql_plugin.cc:3731
    facebook#11 0x1045cea6c in mysql_execute_command(THD*, bool, unsigned long long*) sql_parse.cc:5323
    facebook#12 0x1045c5dcc in dispatch_sql_command(THD*, Parser_state*, unsigned long long*) sql_parse.cc:6093
    facebook#13 0x1045bb92c in dispatch_command(THD*, COM_DATA const*, enum_server_command) sql_parse.cc:2444
    facebook#14 0x1045c06f8 in do_command(THD*) sql_parse.cc:1636
    facebook#15 0x104cc4cc4 in handle_connection(void*) connection_handler_per_thread.cc:307
    facebook#16 0x10bd130d4 in pfs_spawn_thread(void*) pfs.cc:2983
    facebook#17 0x18ad47fa4 in _pthread_start+0x90 (libsystem_pthread.dylib:arm64e+0x6fa4)
    facebook#18 0x18ad42d9c in thread_start+0x4 (libsystem_pthread.dylib:arm64e+0x1d9c)
```

It seems that the double invocation of `free_latency_histogram_sysvars` is
correct in this case, thus protect against the double free with resetting the
pointers to nullptr.

Squash with 19345e3
laurynas-biveinis added a commit to laurynas-biveinis/mysql-5.6 that referenced this issue Apr 25, 2023
Before the fix, if semisync_source plugin is installed, used, and uninstalled
repeatedly, querying its status variables on a second or later installation
would result in a double free error on macOS. This was because plugin
uninstallation freed the histogram name variables but left their pointers
around, which got picked up on the later status variable query. This was not
visible under Linux because there the dynamic linker would clear the plugin
variables on every load.

rpl.rpl_semi_sync_alias test error under ASan:

```
=================================================================
==65389==ERROR: AddressSanitizer: heap-use-after-free on address 0x0001742e17d4 at pc 0x000107febaf0 bp 0x00016ea8f710 sp 0x00016ea8f708
READ of size 4 at 0x0001742e17d4 thread T80
    #0 0x107febaec in my_free(void*) my_malloc.cc:135
    facebook#1 0x103cb9828 in free_latency_histogram_sysvars(SHOW_VAR*) mysqld.cc:4668
    facebook#2 0x103cb99bc in prepare_latency_histogram_vars(latency_histogram*, SHOW_VAR*, unsigned long long*) mysqld.cc:4692
    facebook#3 0x17c65826c in rpl_semi_sync_master_trx_wait_histogram(THD*, SHOW_VAR*, char*) semisync_source_plugin.cc:581
    facebook#4 0x10be1b4cc in PFS_status_variable_cache::manifest(THD*, SHOW_VAR const*, System_status_var*, char const*, bool, bool) pfs_variable.cc:1366
    facebook#5 0x10be1ba90 in PFS_status_variable_cache::do_materialize_all(THD*) pfs_variable.cc:1172
    facebook#6 0x10c0ab33c in PFS_variable_cache<Status_variable>::materialize_all(THD*) pfs_variable.h:536
    facebook#7 0x10c0ab294 in table_session_status::rnd_init(bool) table_session_status.cc:111
    facebook#8 0x10bceb790 in ha_perfschema::rnd_init(bool) ha_perfschema.cc:1686
    facebook#9 0x1033c7cec in handler::ha_rnd_init(bool) handler.cc:3157
    facebook#10 0x103975380 in TableScanIterator::Init() basic_row_iterators.cc:230
    facebook#11 0x103a33a18 in FilterIterator::Init() composite_iterators.h:82
    facebook#12 0x103982ec0 in MaterializeIterator::MaterializeQueryBlock(MaterializeIterator::QueryBlock const&, unsigned long long*) composite_iterators.cc:845
    facebook#13 0x103981410 in MaterializeIterator::Init() composite_iterators.cc:660
    facebook#14 0x1049fc518 in Query_expression::ExecuteIteratorQuery(THD*) sql_union.cc:1293
    facebook#15 0x1049fd358 in Query_expression::execute(THD*) sql_union.cc:1355
    facebook#16 0x1047ae7ac in Sql_cmd_dml::execute_inner(THD*) sql_select.cc:870
    facebook#17 0x1047ac344 in Sql_cmd_dml::execute(THD*) sql_select.cc:618
    facebook#18 0x1047ffcc8 in Sql_cmd_show::execute(THD*) sql_show.cc:232
    facebook#19 0x10480ab58 in Sql_cmd_show_status::execute(THD*) sql_show.cc:894
    facebook#20 0x1045cea6c in mysql_execute_command(THD*, bool, unsigned long long*) sql_parse.cc:5323
    facebook#21 0x1045c5dcc in dispatch_sql_command(THD*, Parser_state*, unsigned long long*) sql_parse.cc:6093
    facebook#22 0x1045bb92c in dispatch_command(THD*, COM_DATA const*, enum_server_command) sql_parse.cc:2444
    facebook#23 0x1045c06f8 in do_command(THD*) sql_parse.cc:1636
    facebook#24 0x104cc4cc4 in handle_connection(void*) connection_handler_per_thread.cc:307
    facebook#25 0x10bd130d4 in pfs_spawn_thread(void*) pfs.cc:2983
    facebook#26 0x18ad47fa4 in _pthread_start+0x90 (libsystem_pthread.dylib:arm64e+0x6fa4)
    facebook#27 0x18ad42d9c in thread_start+0x4 (libsystem_pthread.dylib:arm64e+0x1d9c)

0x0001742e17d4 is located 4 bytes inside of 40-byte region [0x0001742e17d0,0x0001742e17f8)
freed by thread T80 here:
    #0 0x139ff6de4 in wrap_free+0x98 (libclang_rt.asan_osx_dynamic.dylib:arm64e+0x3ede4)
    facebook#1 0x107febcfc in my_raw_free(void*) my_malloc.cc:269
    facebook#2 0x107feba48 in my_free(void*) my_malloc.cc:141
    facebook#3 0x103cb9828 in free_latency_histogram_sysvars(SHOW_VAR*) mysqld.cc:4668
    facebook#4 0x17c6231e8 in ReplSemiSyncMaster::~ReplSemiSyncMaster() semisync_source.cc:517
    facebook#5 0x17c623488 in ReplSemiSyncMaster::~ReplSemiSyncMaster() semisync_source.cc:516
    facebook#6 0x17c651484 in semi_sync_master_plugin_deinit(void*) semisync_source_plugin.cc:833
    facebook#7 0x10467aa90 in plugin_deinitialize(st_plugin_int*, bool) sql_plugin.cc:1123
    facebook#8 0x1046730b0 in reap_plugins() sql_plugin.cc:1192
    facebook#9 0x1046863b4 in mysql_uninstall_plugin(THD*, MYSQL_LEX_CSTRING) sql_plugin.cc:2602
    facebook#10 0x104685374 in Sql_cmd_uninstall_plugin::execute(THD*) sql_plugin.cc:3731
    facebook#11 0x1045cea6c in mysql_execute_command(THD*, bool, unsigned long long*) sql_parse.cc:5323
    facebook#12 0x1045c5dcc in dispatch_sql_command(THD*, Parser_state*, unsigned long long*) sql_parse.cc:6093
    facebook#13 0x1045bb92c in dispatch_command(THD*, COM_DATA const*, enum_server_command) sql_parse.cc:2444
    facebook#14 0x1045c06f8 in do_command(THD*) sql_parse.cc:1636
    facebook#15 0x104cc4cc4 in handle_connection(void*) connection_handler_per_thread.cc:307
    facebook#16 0x10bd130d4 in pfs_spawn_thread(void*) pfs.cc:2983
    facebook#17 0x18ad47fa4 in _pthread_start+0x90 (libsystem_pthread.dylib:arm64e+0x6fa4)
    facebook#18 0x18ad42d9c in thread_start+0x4 (libsystem_pthread.dylib:arm64e+0x1d9c)
```

Squash with 19345e3
facebook-github-bot pushed a commit that referenced this issue Apr 28, 2023
Summary:
Avoid double free on latency histogram data

Before this fix, rpl.rpl_semi_sync_alias test under ASan with

```
=================================================================
==65389==ERROR: AddressSanitizer: heap-use-after-free on address 0x0001742e17d4 at pc 0x000107febaf0 bp 0x00016ea8f710 sp 0x00016ea8f708
READ of size 4 at 0x0001742e17d4 thread T80
    #0 0x107febaec in my_free(void*) my_malloc.cc:135
    #1 0x103cb9828 in free_latency_histogram_sysvars(SHOW_VAR*) mysqld.cc:4668
    #2 0x103cb99bc in prepare_latency_histogram_vars(latency_histogram*, SHOW_VAR*, unsigned long long*) mysqld.cc:4692
    #3 0x17c65826c in rpl_semi_sync_master_trx_wait_histogram(THD*, SHOW_VAR*, char*) semisync_source_plugin.cc:581
    #4 0x10be1b4cc in PFS_status_variable_cache::manifest(THD*, SHOW_VAR const*, System_status_var*, char const*, bool, bool) pfs_variable.cc:1366
    #5 0x10be1ba90 in PFS_status_variable_cache::do_materialize_all(THD*) pfs_variable.cc:1172
    #6 0x10c0ab33c in PFS_variable_cache<Status_variable>::materialize_all(THD*) pfs_variable.h:536
    #7 0x10c0ab294 in table_session_status::rnd_init(bool) table_session_status.cc:111
    #8 0x10bceb790 in ha_perfschema::rnd_init(bool) ha_perfschema.cc:1686
    #9 0x1033c7cec in handler::ha_rnd_init(bool) handler.cc:3157
    #10 0x103975380 in TableScanIterator::Init() basic_row_iterators.cc:230
    #11 0x103a33a18 in FilterIterator::Init() composite_iterators.h:82
    #12 0x103982ec0 in MaterializeIterator::MaterializeQueryBlock(MaterializeIterator::QueryBlock const&, unsigned long long*) composite_iterators.cc:845
    #13 0x103981410 in MaterializeIterator::Init() composite_iterators.cc:660
    #14 0x1049fc518 in Query_expression::ExecuteIteratorQuery(THD*) sql_union.cc:1293
    #15 0x1049fd358 in Query_expression::execute(THD*) sql_union.cc:1355
    #16 0x1047ae7ac in Sql_cmd_dml::execute_inner(THD*) sql_select.cc:870
    #17 0x1047ac344 in Sql_cmd_dml::execute(THD*) sql_select.cc:618
    #18 0x1047ffcc8 in Sql_cmd_show::execute(THD*) sql_show.cc:232
    #19 0x10480ab58 in Sql_cmd_show_status::execute(THD*) sql_show.cc:894
    #20 0x1045cea6c in mysql_execute_command(THD*, bool, unsigned long long*) sql_parse.cc:5323
    #21 0x1045c5dcc in dispatch_sql_command(THD*, Parser_state*, unsigned long long*) sql_parse.cc:6093
    #22 0x1045bb92c in dispatch_command(THD*, COM_DATA const*, enum_server_command) sql_parse.cc:2444
    #23 0x1045c06f8 in do_command(THD*) sql_parse.cc:1636
    #24 0x104cc4cc4 in handle_connection(void*) connection_handler_per_thread.cc:307
    #25 0x10bd130d4 in pfs_spawn_thread(void*) pfs.cc:2983
    #26 0x18ad47fa4 in _pthread_start+0x90 (libsystem_pthread.dylib:arm64e+0x6fa4)
    #27 0x18ad42d9c in thread_start+0x4 (libsystem_pthread.dylib:arm64e+0x1d9c)

0x0001742e17d4 is located 4 bytes inside of 40-byte region [0x0001742e17d0,0x0001742e17f8)
freed by thread T80 here:
    #0 0x139ff6de4 in wrap_free+0x98 (libclang_rt.asan_osx_dynamic.dylib:arm64e+0x3ede4)
    #1 0x107febcfc in my_raw_free(void*) my_malloc.cc:269
    #2 0x107feba48 in my_free(void*) my_malloc.cc:141
    #3 0x103cb9828 in free_latency_histogram_sysvars(SHOW_VAR*) mysqld.cc:4668
    #4 0x17c6231e8 in ReplSemiSyncMaster::~ReplSemiSyncMaster() semisync_source.cc:517
    #5 0x17c623488 in ReplSemiSyncMaster::~ReplSemiSyncMaster() semisync_source.cc:516
    #6 0x17c651484 in semi_sync_master_plugin_deinit(void*) semisync_source_plugin.cc:833
    #7 0x10467aa90 in plugin_deinitialize(st_plugin_int*, bool) sql_plugin.cc:1123
    #8 0x1046730b0 in reap_plugins() sql_plugin.cc:1192
    #9 0x1046863b4 in mysql_uninstall_plugin(THD*, MYSQL_LEX_CSTRING) sql_plugin.cc:2602
    #10 0x104685374 in Sql_cmd_uninstall_plugin::execute(THD*) sql_plugin.cc:3731
    #11 0x1045cea6c in mysql_execute_command(THD*, bool, unsigned long long*) sql_parse.cc:5323
    #12 0x1045c5dcc in dispatch_sql_command(THD*, Parser_state*, unsigned long long*) sql_parse.cc:6093
    #13 0x1045bb92c in dispatch_command(THD*, COM_DATA const*, enum_server_command) sql_parse.cc:2444
    #14 0x1045c06f8 in do_command(THD*) sql_parse.cc:1636
    #15 0x104cc4cc4 in handle_connection(void*) connection_handler_per_thread.cc:307
    #16 0x10bd130d4 in pfs_spawn_thread(void*) pfs.cc:2983
    #17 0x18ad47fa4 in _pthread_start+0x90 (libsystem_pthread.dylib:arm64e+0x6fa4)
    #18 0x18ad42d9c in thread_start+0x4 (libsystem_pthread.dylib:arm64e+0x1d9c)
```

It seems that the double invocation of `free_latency_histogram_sysvars` is
correct in this case, thus protect against the double free with resetting the
pointers to nullptr.

Squash with D21832889

Pull Request resolved: #1290

Reviewed By: sunshine-Chun

Differential Revision: D45277600

Pulled By: hermanlee

fbshipit-source-id: 37524d0
inikep pushed a commit to inikep/mysql-5.6 that referenced this issue May 17, 2023
Summary:
add histogram for rpl_semi_sync_master_trx_wait.

8.0 porting notes: Keeps the same histogram status variables as before
since these are already being read by various applications. We should
eventually remove this.

Reference Patch: facebook@d1a1394
Reference Patch: facebook@15333b2e6f9

Differential Revision: D21832889

----------------------------------------------------------------------

Fix semi_sync histogram reporting

Summary:
Fix a porting bug with semi_sync histograms.

Reviewed By: george-reynya

Differential Revision: D40964563

fbshipit-source-id: 8d4f7ff

----------------------------------------------------------------------

Semisync histogram double free (facebook#1290)

Summary:
Avoid double free on latency histogram data

Before this fix, rpl.rpl_semi_sync_alias test under ASan with

```
=================================================================
==65389==ERROR: AddressSanitizer: heap-use-after-free on address 0x0001742e17d4 at pc 0x000107febaf0 bp 0x00016ea8f710 sp 0x00016ea8f708
READ of size 4 at 0x0001742e17d4 thread T80
    #0 0x107febaec in my_free(void*) my_malloc.cc:135
    facebook#1 0x103cb9828 in free_latency_histogram_sysvars(SHOW_VAR*) mysqld.cc:4668
    facebook#2 0x103cb99bc in prepare_latency_histogram_vars(latency_histogram*, SHOW_VAR*, unsigned long long*) mysqld.cc:4692
    facebook#3 0x17c65826c in rpl_semi_sync_master_trx_wait_histogram(THD*, SHOW_VAR*, char*) semisync_source_plugin.cc:581
    facebook#4 0x10be1b4cc in PFS_status_variable_cache::manifest(THD*, SHOW_VAR const*, System_status_var*, char const*, bool, bool) pfs_variable.cc:1366
    facebook#5 0x10be1ba90 in PFS_status_variable_cache::do_materialize_all(THD*) pfs_variable.cc:1172
    facebook#6 0x10c0ab33c in PFS_variable_cache<Status_variable>::materialize_all(THD*) pfs_variable.h:536
    facebook#7 0x10c0ab294 in table_session_status::rnd_init(bool) table_session_status.cc:111
    facebook#8 0x10bceb790 in ha_perfschema::rnd_init(bool) ha_perfschema.cc:1686
    facebook#9 0x1033c7cec in handler::ha_rnd_init(bool) handler.cc:3157
    facebook#10 0x103975380 in TableScanIterator::Init() basic_row_iterators.cc:230
    facebook#11 0x103a33a18 in FilterIterator::Init() composite_iterators.h:82
    facebook#12 0x103982ec0 in MaterializeIterator::MaterializeQueryBlock(MaterializeIterator::QueryBlock const&, unsigned long long*) composite_iterators.cc:845
    facebook#13 0x103981410 in MaterializeIterator::Init() composite_iterators.cc:660
    facebook#14 0x1049fc518 in Query_expression::ExecuteIteratorQuery(THD*) sql_union.cc:1293
    facebook#15 0x1049fd358 in Query_expression::execute(THD*) sql_union.cc:1355
    facebook#16 0x1047ae7ac in Sql_cmd_dml::execute_inner(THD*) sql_select.cc:870
    facebook#17 0x1047ac344 in Sql_cmd_dml::execute(THD*) sql_select.cc:618
    facebook#18 0x1047ffcc8 in Sql_cmd_show::execute(THD*) sql_show.cc:232
    facebook#19 0x10480ab58 in Sql_cmd_show_status::execute(THD*) sql_show.cc:894
    facebook#20 0x1045cea6c in mysql_execute_command(THD*, bool, unsigned long long*) sql_parse.cc:5323
    facebook#21 0x1045c5dcc in dispatch_sql_command(THD*, Parser_state*, unsigned long long*) sql_parse.cc:6093
    facebook#22 0x1045bb92c in dispatch_command(THD*, COM_DATA const*, enum_server_command) sql_parse.cc:2444
    facebook#23 0x1045c06f8 in do_command(THD*) sql_parse.cc:1636
    facebook#24 0x104cc4cc4 in handle_connection(void*) connection_handler_per_thread.cc:307
    facebook#25 0x10bd130d4 in pfs_spawn_thread(void*) pfs.cc:2983
    facebook#26 0x18ad47fa4 in _pthread_start+0x90 (libsystem_pthread.dylib:arm64e+0x6fa4)
    facebook#27 0x18ad42d9c in thread_start+0x4 (libsystem_pthread.dylib:arm64e+0x1d9c)

0x0001742e17d4 is located 4 bytes inside of 40-byte region [0x0001742e17d0,0x0001742e17f8)
freed by thread T80 here:
    #0 0x139ff6de4 in wrap_free+0x98 (libclang_rt.asan_osx_dynamic.dylib:arm64e+0x3ede4)
    facebook#1 0x107febcfc in my_raw_free(void*) my_malloc.cc:269
    facebook#2 0x107feba48 in my_free(void*) my_malloc.cc:141
    facebook#3 0x103cb9828 in free_latency_histogram_sysvars(SHOW_VAR*) mysqld.cc:4668
    facebook#4 0x17c6231e8 in ReplSemiSyncMaster::~ReplSemiSyncMaster() semisync_source.cc:517
    facebook#5 0x17c623488 in ReplSemiSyncMaster::~ReplSemiSyncMaster() semisync_source.cc:516
    facebook#6 0x17c651484 in semi_sync_master_plugin_deinit(void*) semisync_source_plugin.cc:833
    facebook#7 0x10467aa90 in plugin_deinitialize(st_plugin_int*, bool) sql_plugin.cc:1123
    facebook#8 0x1046730b0 in reap_plugins() sql_plugin.cc:1192
    facebook#9 0x1046863b4 in mysql_uninstall_plugin(THD*, MYSQL_LEX_CSTRING) sql_plugin.cc:2602
    facebook#10 0x104685374 in Sql_cmd_uninstall_plugin::execute(THD*) sql_plugin.cc:3731
    facebook#11 0x1045cea6c in mysql_execute_command(THD*, bool, unsigned long long*) sql_parse.cc:5323
    facebook#12 0x1045c5dcc in dispatch_sql_command(THD*, Parser_state*, unsigned long long*) sql_parse.cc:6093
    facebook#13 0x1045bb92c in dispatch_command(THD*, COM_DATA const*, enum_server_command) sql_parse.cc:2444
    facebook#14 0x1045c06f8 in do_command(THD*) sql_parse.cc:1636
    facebook#15 0x104cc4cc4 in handle_connection(void*) connection_handler_per_thread.cc:307
    facebook#16 0x10bd130d4 in pfs_spawn_thread(void*) pfs.cc:2983
    facebook#17 0x18ad47fa4 in _pthread_start+0x90 (libsystem_pthread.dylib:arm64e+0x6fa4)
    facebook#18 0x18ad42d9c in thread_start+0x4 (libsystem_pthread.dylib:arm64e+0x1d9c)
```

It seems that the double invocation of `free_latency_histogram_sysvars` is
correct in this case, thus protect against the double free with resetting the
pointers to nullptr.

Pull Request resolved: facebook#1290

Reviewed By: sunshine-Chun

Differential Revision: D45277600

Pulled By: hermanlee

fbshipit-source-id: 37524d0
inikep pushed a commit to inikep/mysql-5.6 that referenced this issue May 18, 2023
Summary:
add histogram for rpl_semi_sync_master_trx_wait.

8.0 porting notes: Keeps the same histogram status variables as before
since these are already being read by various applications. We should
eventually remove this.

Reference Patch: facebook@d1a1394
Reference Patch: facebook@15333b2e6f9

Differential Revision: D21832889

----------------------------------------------------------------------

Fix semi_sync histogram reporting

Summary:
Fix a porting bug with semi_sync histograms.

Reviewed By: george-reynya

Differential Revision: D40964563

fbshipit-source-id: 8d4f7ff

----------------------------------------------------------------------

Semisync histogram double free (facebook#1290)

Summary:
Avoid double free on latency histogram data

Before this fix, rpl.rpl_semi_sync_alias test under ASan with

```
=================================================================
==65389==ERROR: AddressSanitizer: heap-use-after-free on address 0x0001742e17d4 at pc 0x000107febaf0 bp 0x00016ea8f710 sp 0x00016ea8f708
READ of size 4 at 0x0001742e17d4 thread T80
    #0 0x107febaec in my_free(void*) my_malloc.cc:135
    facebook#1 0x103cb9828 in free_latency_histogram_sysvars(SHOW_VAR*) mysqld.cc:4668
    facebook#2 0x103cb99bc in prepare_latency_histogram_vars(latency_histogram*, SHOW_VAR*, unsigned long long*) mysqld.cc:4692
    facebook#3 0x17c65826c in rpl_semi_sync_master_trx_wait_histogram(THD*, SHOW_VAR*, char*) semisync_source_plugin.cc:581
    facebook#4 0x10be1b4cc in PFS_status_variable_cache::manifest(THD*, SHOW_VAR const*, System_status_var*, char const*, bool, bool) pfs_variable.cc:1366
    facebook#5 0x10be1ba90 in PFS_status_variable_cache::do_materialize_all(THD*) pfs_variable.cc:1172
    facebook#6 0x10c0ab33c in PFS_variable_cache<Status_variable>::materialize_all(THD*) pfs_variable.h:536
    facebook#7 0x10c0ab294 in table_session_status::rnd_init(bool) table_session_status.cc:111
    facebook#8 0x10bceb790 in ha_perfschema::rnd_init(bool) ha_perfschema.cc:1686
    facebook#9 0x1033c7cec in handler::ha_rnd_init(bool) handler.cc:3157
    facebook#10 0x103975380 in TableScanIterator::Init() basic_row_iterators.cc:230
    facebook#11 0x103a33a18 in FilterIterator::Init() composite_iterators.h:82
    facebook#12 0x103982ec0 in MaterializeIterator::MaterializeQueryBlock(MaterializeIterator::QueryBlock const&, unsigned long long*) composite_iterators.cc:845
    facebook#13 0x103981410 in MaterializeIterator::Init() composite_iterators.cc:660
    facebook#14 0x1049fc518 in Query_expression::ExecuteIteratorQuery(THD*) sql_union.cc:1293
    facebook#15 0x1049fd358 in Query_expression::execute(THD*) sql_union.cc:1355
    facebook#16 0x1047ae7ac in Sql_cmd_dml::execute_inner(THD*) sql_select.cc:870
    facebook#17 0x1047ac344 in Sql_cmd_dml::execute(THD*) sql_select.cc:618
    facebook#18 0x1047ffcc8 in Sql_cmd_show::execute(THD*) sql_show.cc:232
    facebook#19 0x10480ab58 in Sql_cmd_show_status::execute(THD*) sql_show.cc:894
    facebook#20 0x1045cea6c in mysql_execute_command(THD*, bool, unsigned long long*) sql_parse.cc:5323
    facebook#21 0x1045c5dcc in dispatch_sql_command(THD*, Parser_state*, unsigned long long*) sql_parse.cc:6093
    facebook#22 0x1045bb92c in dispatch_command(THD*, COM_DATA const*, enum_server_command) sql_parse.cc:2444
    facebook#23 0x1045c06f8 in do_command(THD*) sql_parse.cc:1636
    facebook#24 0x104cc4cc4 in handle_connection(void*) connection_handler_per_thread.cc:307
    facebook#25 0x10bd130d4 in pfs_spawn_thread(void*) pfs.cc:2983
    facebook#26 0x18ad47fa4 in _pthread_start+0x90 (libsystem_pthread.dylib:arm64e+0x6fa4)
    facebook#27 0x18ad42d9c in thread_start+0x4 (libsystem_pthread.dylib:arm64e+0x1d9c)

0x0001742e17d4 is located 4 bytes inside of 40-byte region [0x0001742e17d0,0x0001742e17f8)
freed by thread T80 here:
    #0 0x139ff6de4 in wrap_free+0x98 (libclang_rt.asan_osx_dynamic.dylib:arm64e+0x3ede4)
    facebook#1 0x107febcfc in my_raw_free(void*) my_malloc.cc:269
    facebook#2 0x107feba48 in my_free(void*) my_malloc.cc:141
    facebook#3 0x103cb9828 in free_latency_histogram_sysvars(SHOW_VAR*) mysqld.cc:4668
    facebook#4 0x17c6231e8 in ReplSemiSyncMaster::~ReplSemiSyncMaster() semisync_source.cc:517
    facebook#5 0x17c623488 in ReplSemiSyncMaster::~ReplSemiSyncMaster() semisync_source.cc:516
    facebook#6 0x17c651484 in semi_sync_master_plugin_deinit(void*) semisync_source_plugin.cc:833
    facebook#7 0x10467aa90 in plugin_deinitialize(st_plugin_int*, bool) sql_plugin.cc:1123
    facebook#8 0x1046730b0 in reap_plugins() sql_plugin.cc:1192
    facebook#9 0x1046863b4 in mysql_uninstall_plugin(THD*, MYSQL_LEX_CSTRING) sql_plugin.cc:2602
    facebook#10 0x104685374 in Sql_cmd_uninstall_plugin::execute(THD*) sql_plugin.cc:3731
    facebook#11 0x1045cea6c in mysql_execute_command(THD*, bool, unsigned long long*) sql_parse.cc:5323
    facebook#12 0x1045c5dcc in dispatch_sql_command(THD*, Parser_state*, unsigned long long*) sql_parse.cc:6093
    facebook#13 0x1045bb92c in dispatch_command(THD*, COM_DATA const*, enum_server_command) sql_parse.cc:2444
    facebook#14 0x1045c06f8 in do_command(THD*) sql_parse.cc:1636
    facebook#15 0x104cc4cc4 in handle_connection(void*) connection_handler_per_thread.cc:307
    facebook#16 0x10bd130d4 in pfs_spawn_thread(void*) pfs.cc:2983
    facebook#17 0x18ad47fa4 in _pthread_start+0x90 (libsystem_pthread.dylib:arm64e+0x6fa4)
    facebook#18 0x18ad42d9c in thread_start+0x4 (libsystem_pthread.dylib:arm64e+0x1d9c)
```

It seems that the double invocation of `free_latency_histogram_sysvars` is
correct in this case, thus protect against the double free with resetting the
pointers to nullptr.

Pull Request resolved: facebook#1290

Reviewed By: sunshine-Chun

Differential Revision: D45277600

Pulled By: hermanlee

fbshipit-source-id: 37524d0
inikep pushed a commit to inikep/mysql-5.6 that referenced this issue May 26, 2023
Summary:
add histogram for rpl_semi_sync_master_trx_wait.

8.0 porting notes: Keeps the same histogram status variables as before
since these are already being read by various applications. We should
eventually remove this.

Reference Patch: facebook@d1a1394
Reference Patch: facebook@15333b2e6f9

Differential Revision: D21832889

----------------------------------------------------------------------

Fix semi_sync histogram reporting

Summary:
Fix a porting bug with semi_sync histograms.

Reviewed By: george-reynya

Differential Revision: D40964563

fbshipit-source-id: 8d4f7ff

----------------------------------------------------------------------

Semisync histogram double free (facebook#1290)

Summary:
Avoid double free on latency histogram data

Before this fix, rpl.rpl_semi_sync_alias test under ASan with

```
=================================================================
==65389==ERROR: AddressSanitizer: heap-use-after-free on address 0x0001742e17d4 at pc 0x000107febaf0 bp 0x00016ea8f710 sp 0x00016ea8f708
READ of size 4 at 0x0001742e17d4 thread T80
    #0 0x107febaec in my_free(void*) my_malloc.cc:135
    facebook#1 0x103cb9828 in free_latency_histogram_sysvars(SHOW_VAR*) mysqld.cc:4668
    facebook#2 0x103cb99bc in prepare_latency_histogram_vars(latency_histogram*, SHOW_VAR*, unsigned long long*) mysqld.cc:4692
    facebook#3 0x17c65826c in rpl_semi_sync_master_trx_wait_histogram(THD*, SHOW_VAR*, char*) semisync_source_plugin.cc:581
    facebook#4 0x10be1b4cc in PFS_status_variable_cache::manifest(THD*, SHOW_VAR const*, System_status_var*, char const*, bool, bool) pfs_variable.cc:1366
    facebook#5 0x10be1ba90 in PFS_status_variable_cache::do_materialize_all(THD*) pfs_variable.cc:1172
    facebook#6 0x10c0ab33c in PFS_variable_cache<Status_variable>::materialize_all(THD*) pfs_variable.h:536
    facebook#7 0x10c0ab294 in table_session_status::rnd_init(bool) table_session_status.cc:111
    facebook#8 0x10bceb790 in ha_perfschema::rnd_init(bool) ha_perfschema.cc:1686
    facebook#9 0x1033c7cec in handler::ha_rnd_init(bool) handler.cc:3157
    facebook#10 0x103975380 in TableScanIterator::Init() basic_row_iterators.cc:230
    facebook#11 0x103a33a18 in FilterIterator::Init() composite_iterators.h:82
    facebook#12 0x103982ec0 in MaterializeIterator::MaterializeQueryBlock(MaterializeIterator::QueryBlock const&, unsigned long long*) composite_iterators.cc:845
    facebook#13 0x103981410 in MaterializeIterator::Init() composite_iterators.cc:660
    facebook#14 0x1049fc518 in Query_expression::ExecuteIteratorQuery(THD*) sql_union.cc:1293
    facebook#15 0x1049fd358 in Query_expression::execute(THD*) sql_union.cc:1355
    facebook#16 0x1047ae7ac in Sql_cmd_dml::execute_inner(THD*) sql_select.cc:870
    facebook#17 0x1047ac344 in Sql_cmd_dml::execute(THD*) sql_select.cc:618
    facebook#18 0x1047ffcc8 in Sql_cmd_show::execute(THD*) sql_show.cc:232
    facebook#19 0x10480ab58 in Sql_cmd_show_status::execute(THD*) sql_show.cc:894
    facebook#20 0x1045cea6c in mysql_execute_command(THD*, bool, unsigned long long*) sql_parse.cc:5323
    facebook#21 0x1045c5dcc in dispatch_sql_command(THD*, Parser_state*, unsigned long long*) sql_parse.cc:6093
    facebook#22 0x1045bb92c in dispatch_command(THD*, COM_DATA const*, enum_server_command) sql_parse.cc:2444
    facebook#23 0x1045c06f8 in do_command(THD*) sql_parse.cc:1636
    facebook#24 0x104cc4cc4 in handle_connection(void*) connection_handler_per_thread.cc:307
    facebook#25 0x10bd130d4 in pfs_spawn_thread(void*) pfs.cc:2983
    facebook#26 0x18ad47fa4 in _pthread_start+0x90 (libsystem_pthread.dylib:arm64e+0x6fa4)
    facebook#27 0x18ad42d9c in thread_start+0x4 (libsystem_pthread.dylib:arm64e+0x1d9c)

0x0001742e17d4 is located 4 bytes inside of 40-byte region [0x0001742e17d0,0x0001742e17f8)
freed by thread T80 here:
    #0 0x139ff6de4 in wrap_free+0x98 (libclang_rt.asan_osx_dynamic.dylib:arm64e+0x3ede4)
    facebook#1 0x107febcfc in my_raw_free(void*) my_malloc.cc:269
    facebook#2 0x107feba48 in my_free(void*) my_malloc.cc:141
    facebook#3 0x103cb9828 in free_latency_histogram_sysvars(SHOW_VAR*) mysqld.cc:4668
    facebook#4 0x17c6231e8 in ReplSemiSyncMaster::~ReplSemiSyncMaster() semisync_source.cc:517
    facebook#5 0x17c623488 in ReplSemiSyncMaster::~ReplSemiSyncMaster() semisync_source.cc:516
    facebook#6 0x17c651484 in semi_sync_master_plugin_deinit(void*) semisync_source_plugin.cc:833
    facebook#7 0x10467aa90 in plugin_deinitialize(st_plugin_int*, bool) sql_plugin.cc:1123
    facebook#8 0x1046730b0 in reap_plugins() sql_plugin.cc:1192
    facebook#9 0x1046863b4 in mysql_uninstall_plugin(THD*, MYSQL_LEX_CSTRING) sql_plugin.cc:2602
    facebook#10 0x104685374 in Sql_cmd_uninstall_plugin::execute(THD*) sql_plugin.cc:3731
    facebook#11 0x1045cea6c in mysql_execute_command(THD*, bool, unsigned long long*) sql_parse.cc:5323
    facebook#12 0x1045c5dcc in dispatch_sql_command(THD*, Parser_state*, unsigned long long*) sql_parse.cc:6093
    facebook#13 0x1045bb92c in dispatch_command(THD*, COM_DATA const*, enum_server_command) sql_parse.cc:2444
    facebook#14 0x1045c06f8 in do_command(THD*) sql_parse.cc:1636
    facebook#15 0x104cc4cc4 in handle_connection(void*) connection_handler_per_thread.cc:307
    facebook#16 0x10bd130d4 in pfs_spawn_thread(void*) pfs.cc:2983
    facebook#17 0x18ad47fa4 in _pthread_start+0x90 (libsystem_pthread.dylib:arm64e+0x6fa4)
    facebook#18 0x18ad42d9c in thread_start+0x4 (libsystem_pthread.dylib:arm64e+0x1d9c)
```

It seems that the double invocation of `free_latency_histogram_sysvars` is
correct in this case, thus protect against the double free with resetting the
pointers to nullptr.

Pull Request resolved: facebook#1290

Reviewed By: sunshine-Chun

Differential Revision: D45277600

Pulled By: hermanlee

fbshipit-source-id: 37524d0
inikep pushed a commit to inikep/mysql-5.6 that referenced this issue Jun 1, 2023
inikep pushed a commit to inikep/mysql-5.6 that referenced this issue Jun 1, 2023
Summary:
add histogram for rpl_semi_sync_master_trx_wait.

8.0 porting notes: Keeps the same histogram status variables as before
since these are already being read by various applications. We should
eventually remove this.

Reference Patch: facebook@d1a1394
Reference Patch: facebook@15333b2e6f9

Differential Revision: D21832889

----------------------------------------------------------------------

Fix semi_sync histogram reporting

Summary:
Fix a porting bug with semi_sync histograms.

Reviewed By: george-reynya

Differential Revision: D40964563

fbshipit-source-id: 8d4f7ff

----------------------------------------------------------------------

Semisync histogram double free (facebook#1290)

Summary:
Avoid double free on latency histogram data

Before this fix, rpl.rpl_semi_sync_alias test under ASan with

```
=================================================================
==65389==ERROR: AddressSanitizer: heap-use-after-free on address 0x0001742e17d4 at pc 0x000107febaf0 bp 0x00016ea8f710 sp 0x00016ea8f708
READ of size 4 at 0x0001742e17d4 thread T80
    #0 0x107febaec in my_free(void*) my_malloc.cc:135
    facebook#1 0x103cb9828 in free_latency_histogram_sysvars(SHOW_VAR*) mysqld.cc:4668
    facebook#2 0x103cb99bc in prepare_latency_histogram_vars(latency_histogram*, SHOW_VAR*, unsigned long long*) mysqld.cc:4692
    facebook#3 0x17c65826c in rpl_semi_sync_master_trx_wait_histogram(THD*, SHOW_VAR*, char*) semisync_source_plugin.cc:581
    facebook#4 0x10be1b4cc in PFS_status_variable_cache::manifest(THD*, SHOW_VAR const*, System_status_var*, char const*, bool, bool) pfs_variable.cc:1366
    facebook#5 0x10be1ba90 in PFS_status_variable_cache::do_materialize_all(THD*) pfs_variable.cc:1172
    facebook#6 0x10c0ab33c in PFS_variable_cache<Status_variable>::materialize_all(THD*) pfs_variable.h:536
    facebook#7 0x10c0ab294 in table_session_status::rnd_init(bool) table_session_status.cc:111
    facebook#8 0x10bceb790 in ha_perfschema::rnd_init(bool) ha_perfschema.cc:1686
    facebook#9 0x1033c7cec in handler::ha_rnd_init(bool) handler.cc:3157
    facebook#10 0x103975380 in TableScanIterator::Init() basic_row_iterators.cc:230
    facebook#11 0x103a33a18 in FilterIterator::Init() composite_iterators.h:82
    facebook#12 0x103982ec0 in MaterializeIterator::MaterializeQueryBlock(MaterializeIterator::QueryBlock const&, unsigned long long*) composite_iterators.cc:845
    facebook#13 0x103981410 in MaterializeIterator::Init() composite_iterators.cc:660
    facebook#14 0x1049fc518 in Query_expression::ExecuteIteratorQuery(THD*) sql_union.cc:1293
    facebook#15 0x1049fd358 in Query_expression::execute(THD*) sql_union.cc:1355
    facebook#16 0x1047ae7ac in Sql_cmd_dml::execute_inner(THD*) sql_select.cc:870
    facebook#17 0x1047ac344 in Sql_cmd_dml::execute(THD*) sql_select.cc:618
    facebook#18 0x1047ffcc8 in Sql_cmd_show::execute(THD*) sql_show.cc:232
    facebook#19 0x10480ab58 in Sql_cmd_show_status::execute(THD*) sql_show.cc:894
    facebook#20 0x1045cea6c in mysql_execute_command(THD*, bool, unsigned long long*) sql_parse.cc:5323
    facebook#21 0x1045c5dcc in dispatch_sql_command(THD*, Parser_state*, unsigned long long*) sql_parse.cc:6093
    facebook#22 0x1045bb92c in dispatch_command(THD*, COM_DATA const*, enum_server_command) sql_parse.cc:2444
    facebook#23 0x1045c06f8 in do_command(THD*) sql_parse.cc:1636
    facebook#24 0x104cc4cc4 in handle_connection(void*) connection_handler_per_thread.cc:307
    facebook#25 0x10bd130d4 in pfs_spawn_thread(void*) pfs.cc:2983
    facebook#26 0x18ad47fa4 in _pthread_start+0x90 (libsystem_pthread.dylib:arm64e+0x6fa4)
    facebook#27 0x18ad42d9c in thread_start+0x4 (libsystem_pthread.dylib:arm64e+0x1d9c)

0x0001742e17d4 is located 4 bytes inside of 40-byte region [0x0001742e17d0,0x0001742e17f8)
freed by thread T80 here:
    #0 0x139ff6de4 in wrap_free+0x98 (libclang_rt.asan_osx_dynamic.dylib:arm64e+0x3ede4)
    facebook#1 0x107febcfc in my_raw_free(void*) my_malloc.cc:269
    facebook#2 0x107feba48 in my_free(void*) my_malloc.cc:141
    facebook#3 0x103cb9828 in free_latency_histogram_sysvars(SHOW_VAR*) mysqld.cc:4668
    facebook#4 0x17c6231e8 in ReplSemiSyncMaster::~ReplSemiSyncMaster() semisync_source.cc:517
    facebook#5 0x17c623488 in ReplSemiSyncMaster::~ReplSemiSyncMaster() semisync_source.cc:516
    facebook#6 0x17c651484 in semi_sync_master_plugin_deinit(void*) semisync_source_plugin.cc:833
    facebook#7 0x10467aa90 in plugin_deinitialize(st_plugin_int*, bool) sql_plugin.cc:1123
    facebook#8 0x1046730b0 in reap_plugins() sql_plugin.cc:1192
    facebook#9 0x1046863b4 in mysql_uninstall_plugin(THD*, MYSQL_LEX_CSTRING) sql_plugin.cc:2602
    facebook#10 0x104685374 in Sql_cmd_uninstall_plugin::execute(THD*) sql_plugin.cc:3731
    facebook#11 0x1045cea6c in mysql_execute_command(THD*, bool, unsigned long long*) sql_parse.cc:5323
    facebook#12 0x1045c5dcc in dispatch_sql_command(THD*, Parser_state*, unsigned long long*) sql_parse.cc:6093
    facebook#13 0x1045bb92c in dispatch_command(THD*, COM_DATA const*, enum_server_command) sql_parse.cc:2444
    facebook#14 0x1045c06f8 in do_command(THD*) sql_parse.cc:1636
    facebook#15 0x104cc4cc4 in handle_connection(void*) connection_handler_per_thread.cc:307
    facebook#16 0x10bd130d4 in pfs_spawn_thread(void*) pfs.cc:2983
    facebook#17 0x18ad47fa4 in _pthread_start+0x90 (libsystem_pthread.dylib:arm64e+0x6fa4)
    facebook#18 0x18ad42d9c in thread_start+0x4 (libsystem_pthread.dylib:arm64e+0x1d9c)
```

It seems that the double invocation of `free_latency_histogram_sysvars` is
correct in this case, thus protect against the double free with resetting the
pointers to nullptr.

Pull Request resolved: facebook#1290

Reviewed By: sunshine-Chun

Differential Revision: D45277600

Pulled By: hermanlee

fbshipit-source-id: 37524d0
luqun pushed a commit to luqun/mysql-5.6 that referenced this issue Jun 5, 2023
Summary:
Avoid double free on latency histogram data

Before this fix, rpl.rpl_semi_sync_alias test under ASan with

```
=================================================================
==65389==ERROR: AddressSanitizer: heap-use-after-free on address 0x0001742e17d4 at pc 0x000107febaf0 bp 0x00016ea8f710 sp 0x00016ea8f708
READ of size 4 at 0x0001742e17d4 thread T80
    #0 0x107febaec in my_free(void*) my_malloc.cc:135
    facebook#1 0x103cb9828 in free_latency_histogram_sysvars(SHOW_VAR*) mysqld.cc:4668
    facebook#2 0x103cb99bc in prepare_latency_histogram_vars(latency_histogram*, SHOW_VAR*, unsigned long long*) mysqld.cc:4692
    facebook#3 0x17c65826c in rpl_semi_sync_master_trx_wait_histogram(THD*, SHOW_VAR*, char*) semisync_source_plugin.cc:581
    facebook#4 0x10be1b4cc in PFS_status_variable_cache::manifest(THD*, SHOW_VAR const*, System_status_var*, char const*, bool, bool) pfs_variable.cc:1366
    facebook#5 0x10be1ba90 in PFS_status_variable_cache::do_materialize_all(THD*) pfs_variable.cc:1172
    facebook#6 0x10c0ab33c in PFS_variable_cache<Status_variable>::materialize_all(THD*) pfs_variable.h:536
    facebook#7 0x10c0ab294 in table_session_status::rnd_init(bool) table_session_status.cc:111
    facebook#8 0x10bceb790 in ha_perfschema::rnd_init(bool) ha_perfschema.cc:1686
    facebook#9 0x1033c7cec in handler::ha_rnd_init(bool) handler.cc:3157
    facebook#10 0x103975380 in TableScanIterator::Init() basic_row_iterators.cc:230
    facebook#11 0x103a33a18 in FilterIterator::Init() composite_iterators.h:82
    facebook#12 0x103982ec0 in MaterializeIterator::MaterializeQueryBlock(MaterializeIterator::QueryBlock const&, unsigned long long*) composite_iterators.cc:845
    facebook#13 0x103981410 in MaterializeIterator::Init() composite_iterators.cc:660
    facebook#14 0x1049fc518 in Query_expression::ExecuteIteratorQuery(THD*) sql_union.cc:1293
    facebook#15 0x1049fd358 in Query_expression::execute(THD*) sql_union.cc:1355
    facebook#16 0x1047ae7ac in Sql_cmd_dml::execute_inner(THD*) sql_select.cc:870
    facebook#17 0x1047ac344 in Sql_cmd_dml::execute(THD*) sql_select.cc:618
    facebook#18 0x1047ffcc8 in Sql_cmd_show::execute(THD*) sql_show.cc:232
    facebook#19 0x10480ab58 in Sql_cmd_show_status::execute(THD*) sql_show.cc:894
    facebook#20 0x1045cea6c in mysql_execute_command(THD*, bool, unsigned long long*) sql_parse.cc:5323
    facebook#21 0x1045c5dcc in dispatch_sql_command(THD*, Parser_state*, unsigned long long*) sql_parse.cc:6093
    facebook#22 0x1045bb92c in dispatch_command(THD*, COM_DATA const*, enum_server_command) sql_parse.cc:2444
    facebook#23 0x1045c06f8 in do_command(THD*) sql_parse.cc:1636
    facebook#24 0x104cc4cc4 in handle_connection(void*) connection_handler_per_thread.cc:307
    facebook#25 0x10bd130d4 in pfs_spawn_thread(void*) pfs.cc:2983
    facebook#26 0x18ad47fa4 in _pthread_start+0x90 (libsystem_pthread.dylib:arm64e+0x6fa4)
    facebook#27 0x18ad42d9c in thread_start+0x4 (libsystem_pthread.dylib:arm64e+0x1d9c)

0x0001742e17d4 is located 4 bytes inside of 40-byte region [0x0001742e17d0,0x0001742e17f8)
freed by thread T80 here:
    #0 0x139ff6de4 in wrap_free+0x98 (libclang_rt.asan_osx_dynamic.dylib:arm64e+0x3ede4)
    facebook#1 0x107febcfc in my_raw_free(void*) my_malloc.cc:269
    facebook#2 0x107feba48 in my_free(void*) my_malloc.cc:141
    facebook#3 0x103cb9828 in free_latency_histogram_sysvars(SHOW_VAR*) mysqld.cc:4668
    facebook#4 0x17c6231e8 in ReplSemiSyncMaster::~ReplSemiSyncMaster() semisync_source.cc:517
    facebook#5 0x17c623488 in ReplSemiSyncMaster::~ReplSemiSyncMaster() semisync_source.cc:516
    facebook#6 0x17c651484 in semi_sync_master_plugin_deinit(void*) semisync_source_plugin.cc:833
    facebook#7 0x10467aa90 in plugin_deinitialize(st_plugin_int*, bool) sql_plugin.cc:1123
    facebook#8 0x1046730b0 in reap_plugins() sql_plugin.cc:1192
    facebook#9 0x1046863b4 in mysql_uninstall_plugin(THD*, MYSQL_LEX_CSTRING) sql_plugin.cc:2602
    facebook#10 0x104685374 in Sql_cmd_uninstall_plugin::execute(THD*) sql_plugin.cc:3731
    facebook#11 0x1045cea6c in mysql_execute_command(THD*, bool, unsigned long long*) sql_parse.cc:5323
    facebook#12 0x1045c5dcc in dispatch_sql_command(THD*, Parser_state*, unsigned long long*) sql_parse.cc:6093
    facebook#13 0x1045bb92c in dispatch_command(THD*, COM_DATA const*, enum_server_command) sql_parse.cc:2444
    facebook#14 0x1045c06f8 in do_command(THD*) sql_parse.cc:1636
    facebook#15 0x104cc4cc4 in handle_connection(void*) connection_handler_per_thread.cc:307
    facebook#16 0x10bd130d4 in pfs_spawn_thread(void*) pfs.cc:2983
    facebook#17 0x18ad47fa4 in _pthread_start+0x90 (libsystem_pthread.dylib:arm64e+0x6fa4)
    facebook#18 0x18ad42d9c in thread_start+0x4 (libsystem_pthread.dylib:arm64e+0x1d9c)
```

It seems that the double invocation of `free_latency_histogram_sysvars` is
correct in this case, thus protect against the double free with resetting the
pointers to nullptr.

Squash with D21832889

Pull Request resolved: facebook#1290
GitHub Author: Laurynas Biveinis <laurynas.biveinis@gmail.com>

Test Plan: Imported from GitHub, without a `Test Plan:` line.

Reviewers: chni

Reviewed By: chni

Subscribers: webscalesql-eng@fb.com

Differential Revision: https://phabricator.intern.facebook.com/D45277600

Tags: aarch64, accept2ship
inikep pushed a commit to inikep/mysql-5.6 that referenced this issue Jun 14, 2023
inikep pushed a commit to inikep/mysql-5.6 that referenced this issue Jun 14, 2023
Summary:
add histogram for rpl_semi_sync_master_trx_wait.

8.0 porting notes: Keeps the same histogram status variables as before
since these are already being read by various applications. We should
eventually remove this.

Reference Patch: facebook@d1a1394
Reference Patch: facebook@15333b2e6f9

Differential Revision: D21832889

----------------------------------------------------------------------

Fix semi_sync histogram reporting

Summary:
Fix a porting bug with semi_sync histograms.

Reviewed By: george-reynya

Differential Revision: D40964563

fbshipit-source-id: 8d4f7ff

----------------------------------------------------------------------

Semisync histogram double free (facebook#1290)

Summary:
Avoid double free on latency histogram data

Before this fix, rpl.rpl_semi_sync_alias test under ASan with

```
=================================================================
==65389==ERROR: AddressSanitizer: heap-use-after-free on address 0x0001742e17d4 at pc 0x000107febaf0 bp 0x00016ea8f710 sp 0x00016ea8f708
READ of size 4 at 0x0001742e17d4 thread T80
    #0 0x107febaec in my_free(void*) my_malloc.cc:135
    facebook#1 0x103cb9828 in free_latency_histogram_sysvars(SHOW_VAR*) mysqld.cc:4668
    facebook#2 0x103cb99bc in prepare_latency_histogram_vars(latency_histogram*, SHOW_VAR*, unsigned long long*) mysqld.cc:4692
    facebook#3 0x17c65826c in rpl_semi_sync_master_trx_wait_histogram(THD*, SHOW_VAR*, char*) semisync_source_plugin.cc:581
    facebook#4 0x10be1b4cc in PFS_status_variable_cache::manifest(THD*, SHOW_VAR const*, System_status_var*, char const*, bool, bool) pfs_variable.cc:1366
    facebook#5 0x10be1ba90 in PFS_status_variable_cache::do_materialize_all(THD*) pfs_variable.cc:1172
    facebook#6 0x10c0ab33c in PFS_variable_cache<Status_variable>::materialize_all(THD*) pfs_variable.h:536
    facebook#7 0x10c0ab294 in table_session_status::rnd_init(bool) table_session_status.cc:111
    facebook#8 0x10bceb790 in ha_perfschema::rnd_init(bool) ha_perfschema.cc:1686
    facebook#9 0x1033c7cec in handler::ha_rnd_init(bool) handler.cc:3157
    facebook#10 0x103975380 in TableScanIterator::Init() basic_row_iterators.cc:230
    facebook#11 0x103a33a18 in FilterIterator::Init() composite_iterators.h:82
    facebook#12 0x103982ec0 in MaterializeIterator::MaterializeQueryBlock(MaterializeIterator::QueryBlock const&, unsigned long long*) composite_iterators.cc:845
    facebook#13 0x103981410 in MaterializeIterator::Init() composite_iterators.cc:660
    facebook#14 0x1049fc518 in Query_expression::ExecuteIteratorQuery(THD*) sql_union.cc:1293
    facebook#15 0x1049fd358 in Query_expression::execute(THD*) sql_union.cc:1355
    facebook#16 0x1047ae7ac in Sql_cmd_dml::execute_inner(THD*) sql_select.cc:870
    facebook#17 0x1047ac344 in Sql_cmd_dml::execute(THD*) sql_select.cc:618
    facebook#18 0x1047ffcc8 in Sql_cmd_show::execute(THD*) sql_show.cc:232
    facebook#19 0x10480ab58 in Sql_cmd_show_status::execute(THD*) sql_show.cc:894
    facebook#20 0x1045cea6c in mysql_execute_command(THD*, bool, unsigned long long*) sql_parse.cc:5323
    facebook#21 0x1045c5dcc in dispatch_sql_command(THD*, Parser_state*, unsigned long long*) sql_parse.cc:6093
    facebook#22 0x1045bb92c in dispatch_command(THD*, COM_DATA const*, enum_server_command) sql_parse.cc:2444
    facebook#23 0x1045c06f8 in do_command(THD*) sql_parse.cc:1636
    facebook#24 0x104cc4cc4 in handle_connection(void*) connection_handler_per_thread.cc:307
    facebook#25 0x10bd130d4 in pfs_spawn_thread(void*) pfs.cc:2983
    facebook#26 0x18ad47fa4 in _pthread_start+0x90 (libsystem_pthread.dylib:arm64e+0x6fa4)
    facebook#27 0x18ad42d9c in thread_start+0x4 (libsystem_pthread.dylib:arm64e+0x1d9c)

0x0001742e17d4 is located 4 bytes inside of 40-byte region [0x0001742e17d0,0x0001742e17f8)
freed by thread T80 here:
    #0 0x139ff6de4 in wrap_free+0x98 (libclang_rt.asan_osx_dynamic.dylib:arm64e+0x3ede4)
    facebook#1 0x107febcfc in my_raw_free(void*) my_malloc.cc:269
    facebook#2 0x107feba48 in my_free(void*) my_malloc.cc:141
    facebook#3 0x103cb9828 in free_latency_histogram_sysvars(SHOW_VAR*) mysqld.cc:4668
    facebook#4 0x17c6231e8 in ReplSemiSyncMaster::~ReplSemiSyncMaster() semisync_source.cc:517
    facebook#5 0x17c623488 in ReplSemiSyncMaster::~ReplSemiSyncMaster() semisync_source.cc:516
    facebook#6 0x17c651484 in semi_sync_master_plugin_deinit(void*) semisync_source_plugin.cc:833
    facebook#7 0x10467aa90 in plugin_deinitialize(st_plugin_int*, bool) sql_plugin.cc:1123
    facebook#8 0x1046730b0 in reap_plugins() sql_plugin.cc:1192
    facebook#9 0x1046863b4 in mysql_uninstall_plugin(THD*, MYSQL_LEX_CSTRING) sql_plugin.cc:2602
    facebook#10 0x104685374 in Sql_cmd_uninstall_plugin::execute(THD*) sql_plugin.cc:3731
    facebook#11 0x1045cea6c in mysql_execute_command(THD*, bool, unsigned long long*) sql_parse.cc:5323
    facebook#12 0x1045c5dcc in dispatch_sql_command(THD*, Parser_state*, unsigned long long*) sql_parse.cc:6093
    facebook#13 0x1045bb92c in dispatch_command(THD*, COM_DATA const*, enum_server_command) sql_parse.cc:2444
    facebook#14 0x1045c06f8 in do_command(THD*) sql_parse.cc:1636
    facebook#15 0x104cc4cc4 in handle_connection(void*) connection_handler_per_thread.cc:307
    facebook#16 0x10bd130d4 in pfs_spawn_thread(void*) pfs.cc:2983
    facebook#17 0x18ad47fa4 in _pthread_start+0x90 (libsystem_pthread.dylib:arm64e+0x6fa4)
    facebook#18 0x18ad42d9c in thread_start+0x4 (libsystem_pthread.dylib:arm64e+0x1d9c)
```

It seems that the double invocation of `free_latency_histogram_sysvars` is
correct in this case, thus protect against the double free with resetting the
pointers to nullptr.

Pull Request resolved: facebook#1290

Reviewed By: sunshine-Chun

Differential Revision: D45277600

Pulled By: hermanlee

fbshipit-source-id: 37524d0
inikep pushed a commit to inikep/mysql-5.6 that referenced this issue Jun 19, 2023
Summary:
add histogram for rpl_semi_sync_master_trx_wait.

8.0 porting notes: Keeps the same histogram status variables as before
since these are already being read by various applications. We should
eventually remove this.

Reference Patch: facebook@d1a1394
Reference Patch: facebook@15333b2e6f9

Differential Revision: D21832889

----------------------------------------------------------------------

Fix semi_sync histogram reporting

Summary:
Fix a porting bug with semi_sync histograms.

Reviewed By: george-reynya

Differential Revision: D40964563

fbshipit-source-id: 8d4f7ff

----------------------------------------------------------------------

Semisync histogram double free (facebook#1290)

Summary:
Avoid double free on latency histogram data

Before this fix, rpl.rpl_semi_sync_alias test under ASan with

```
=================================================================
==65389==ERROR: AddressSanitizer: heap-use-after-free on address 0x0001742e17d4 at pc 0x000107febaf0 bp 0x00016ea8f710 sp 0x00016ea8f708
READ of size 4 at 0x0001742e17d4 thread T80
    #0 0x107febaec in my_free(void*) my_malloc.cc:135
    facebook#1 0x103cb9828 in free_latency_histogram_sysvars(SHOW_VAR*) mysqld.cc:4668
    facebook#2 0x103cb99bc in prepare_latency_histogram_vars(latency_histogram*, SHOW_VAR*, unsigned long long*) mysqld.cc:4692
    facebook#3 0x17c65826c in rpl_semi_sync_master_trx_wait_histogram(THD*, SHOW_VAR*, char*) semisync_source_plugin.cc:581
    facebook#4 0x10be1b4cc in PFS_status_variable_cache::manifest(THD*, SHOW_VAR const*, System_status_var*, char const*, bool, bool) pfs_variable.cc:1366
    facebook#5 0x10be1ba90 in PFS_status_variable_cache::do_materialize_all(THD*) pfs_variable.cc:1172
    facebook#6 0x10c0ab33c in PFS_variable_cache<Status_variable>::materialize_all(THD*) pfs_variable.h:536
    facebook#7 0x10c0ab294 in table_session_status::rnd_init(bool) table_session_status.cc:111
    facebook#8 0x10bceb790 in ha_perfschema::rnd_init(bool) ha_perfschema.cc:1686
    facebook#9 0x1033c7cec in handler::ha_rnd_init(bool) handler.cc:3157
    facebook#10 0x103975380 in TableScanIterator::Init() basic_row_iterators.cc:230
    facebook#11 0x103a33a18 in FilterIterator::Init() composite_iterators.h:82
    facebook#12 0x103982ec0 in MaterializeIterator::MaterializeQueryBlock(MaterializeIterator::QueryBlock const&, unsigned long long*) composite_iterators.cc:845
    facebook#13 0x103981410 in MaterializeIterator::Init() composite_iterators.cc:660
    facebook#14 0x1049fc518 in Query_expression::ExecuteIteratorQuery(THD*) sql_union.cc:1293
    facebook#15 0x1049fd358 in Query_expression::execute(THD*) sql_union.cc:1355
    facebook#16 0x1047ae7ac in Sql_cmd_dml::execute_inner(THD*) sql_select.cc:870
    facebook#17 0x1047ac344 in Sql_cmd_dml::execute(THD*) sql_select.cc:618
    facebook#18 0x1047ffcc8 in Sql_cmd_show::execute(THD*) sql_show.cc:232
    facebook#19 0x10480ab58 in Sql_cmd_show_status::execute(THD*) sql_show.cc:894
    facebook#20 0x1045cea6c in mysql_execute_command(THD*, bool, unsigned long long*) sql_parse.cc:5323
    facebook#21 0x1045c5dcc in dispatch_sql_command(THD*, Parser_state*, unsigned long long*) sql_parse.cc:6093
    facebook#22 0x1045bb92c in dispatch_command(THD*, COM_DATA const*, enum_server_command) sql_parse.cc:2444
    facebook#23 0x1045c06f8 in do_command(THD*) sql_parse.cc:1636
    facebook#24 0x104cc4cc4 in handle_connection(void*) connection_handler_per_thread.cc:307
    facebook#25 0x10bd130d4 in pfs_spawn_thread(void*) pfs.cc:2983
    facebook#26 0x18ad47fa4 in _pthread_start+0x90 (libsystem_pthread.dylib:arm64e+0x6fa4)
    facebook#27 0x18ad42d9c in thread_start+0x4 (libsystem_pthread.dylib:arm64e+0x1d9c)

0x0001742e17d4 is located 4 bytes inside of 40-byte region [0x0001742e17d0,0x0001742e17f8)
freed by thread T80 here:
    #0 0x139ff6de4 in wrap_free+0x98 (libclang_rt.asan_osx_dynamic.dylib:arm64e+0x3ede4)
    facebook#1 0x107febcfc in my_raw_free(void*) my_malloc.cc:269
    facebook#2 0x107feba48 in my_free(void*) my_malloc.cc:141
    facebook#3 0x103cb9828 in free_latency_histogram_sysvars(SHOW_VAR*) mysqld.cc:4668
    facebook#4 0x17c6231e8 in ReplSemiSyncMaster::~ReplSemiSyncMaster() semisync_source.cc:517
    facebook#5 0x17c623488 in ReplSemiSyncMaster::~ReplSemiSyncMaster() semisync_source.cc:516
    facebook#6 0x17c651484 in semi_sync_master_plugin_deinit(void*) semisync_source_plugin.cc:833
    facebook#7 0x10467aa90 in plugin_deinitialize(st_plugin_int*, bool) sql_plugin.cc:1123
    facebook#8 0x1046730b0 in reap_plugins() sql_plugin.cc:1192
    facebook#9 0x1046863b4 in mysql_uninstall_plugin(THD*, MYSQL_LEX_CSTRING) sql_plugin.cc:2602
    facebook#10 0x104685374 in Sql_cmd_uninstall_plugin::execute(THD*) sql_plugin.cc:3731
    facebook#11 0x1045cea6c in mysql_execute_command(THD*, bool, unsigned long long*) sql_parse.cc:5323
    facebook#12 0x1045c5dcc in dispatch_sql_command(THD*, Parser_state*, unsigned long long*) sql_parse.cc:6093
    facebook#13 0x1045bb92c in dispatch_command(THD*, COM_DATA const*, enum_server_command) sql_parse.cc:2444
    facebook#14 0x1045c06f8 in do_command(THD*) sql_parse.cc:1636
    facebook#15 0x104cc4cc4 in handle_connection(void*) connection_handler_per_thread.cc:307
    facebook#16 0x10bd130d4 in pfs_spawn_thread(void*) pfs.cc:2983
    facebook#17 0x18ad47fa4 in _pthread_start+0x90 (libsystem_pthread.dylib:arm64e+0x6fa4)
    facebook#18 0x18ad42d9c in thread_start+0x4 (libsystem_pthread.dylib:arm64e+0x1d9c)
```

It seems that the double invocation of `free_latency_histogram_sysvars` is
correct in this case, thus protect against the double free with resetting the
pointers to nullptr.

Pull Request resolved: facebook#1290

Reviewed By: sunshine-Chun

Differential Revision: D45277600

Pulled By: hermanlee

fbshipit-source-id: 37524d0
inikep pushed a commit to inikep/mysql-5.6 that referenced this issue Jun 23, 2023
Summary:
add histogram for rpl_semi_sync_master_trx_wait.

8.0 porting notes: Keeps the same histogram status variables as before
since these are already being read by various applications. We should
eventually remove this.

Reference Patch: facebook@d1a1394
Reference Patch: facebook@15333b2e6f9

Differential Revision: D21832889

----------------------------------------------------------------------

Fix semi_sync histogram reporting

Summary:
Fix a porting bug with semi_sync histograms.

Reviewed By: george-reynya

Differential Revision: D40964563

fbshipit-source-id: 8d4f7ff

----------------------------------------------------------------------

Semisync histogram double free (facebook#1290)

Summary:
Avoid double free on latency histogram data

Before this fix, rpl.rpl_semi_sync_alias test under ASan with

```
=================================================================
==65389==ERROR: AddressSanitizer: heap-use-after-free on address 0x0001742e17d4 at pc 0x000107febaf0 bp 0x00016ea8f710 sp 0x00016ea8f708
READ of size 4 at 0x0001742e17d4 thread T80
    #0 0x107febaec in my_free(void*) my_malloc.cc:135
    facebook#1 0x103cb9828 in free_latency_histogram_sysvars(SHOW_VAR*) mysqld.cc:4668
    facebook#2 0x103cb99bc in prepare_latency_histogram_vars(latency_histogram*, SHOW_VAR*, unsigned long long*) mysqld.cc:4692
    facebook#3 0x17c65826c in rpl_semi_sync_master_trx_wait_histogram(THD*, SHOW_VAR*, char*) semisync_source_plugin.cc:581
    facebook#4 0x10be1b4cc in PFS_status_variable_cache::manifest(THD*, SHOW_VAR const*, System_status_var*, char const*, bool, bool) pfs_variable.cc:1366
    facebook#5 0x10be1ba90 in PFS_status_variable_cache::do_materialize_all(THD*) pfs_variable.cc:1172
    facebook#6 0x10c0ab33c in PFS_variable_cache<Status_variable>::materialize_all(THD*) pfs_variable.h:536
    facebook#7 0x10c0ab294 in table_session_status::rnd_init(bool) table_session_status.cc:111
    facebook#8 0x10bceb790 in ha_perfschema::rnd_init(bool) ha_perfschema.cc:1686
    facebook#9 0x1033c7cec in handler::ha_rnd_init(bool) handler.cc:3157
    facebook#10 0x103975380 in TableScanIterator::Init() basic_row_iterators.cc:230
    facebook#11 0x103a33a18 in FilterIterator::Init() composite_iterators.h:82
    facebook#12 0x103982ec0 in MaterializeIterator::MaterializeQueryBlock(MaterializeIterator::QueryBlock const&, unsigned long long*) composite_iterators.cc:845
    facebook#13 0x103981410 in MaterializeIterator::Init() composite_iterators.cc:660
    facebook#14 0x1049fc518 in Query_expression::ExecuteIteratorQuery(THD*) sql_union.cc:1293
    facebook#15 0x1049fd358 in Query_expression::execute(THD*) sql_union.cc:1355
    facebook#16 0x1047ae7ac in Sql_cmd_dml::execute_inner(THD*) sql_select.cc:870
    facebook#17 0x1047ac344 in Sql_cmd_dml::execute(THD*) sql_select.cc:618
    facebook#18 0x1047ffcc8 in Sql_cmd_show::execute(THD*) sql_show.cc:232
    facebook#19 0x10480ab58 in Sql_cmd_show_status::execute(THD*) sql_show.cc:894
    facebook#20 0x1045cea6c in mysql_execute_command(THD*, bool, unsigned long long*) sql_parse.cc:5323
    facebook#21 0x1045c5dcc in dispatch_sql_command(THD*, Parser_state*, unsigned long long*) sql_parse.cc:6093
    facebook#22 0x1045bb92c in dispatch_command(THD*, COM_DATA const*, enum_server_command) sql_parse.cc:2444
    facebook#23 0x1045c06f8 in do_command(THD*) sql_parse.cc:1636
    facebook#24 0x104cc4cc4 in handle_connection(void*) connection_handler_per_thread.cc:307
    facebook#25 0x10bd130d4 in pfs_spawn_thread(void*) pfs.cc:2983
    facebook#26 0x18ad47fa4 in _pthread_start+0x90 (libsystem_pthread.dylib:arm64e+0x6fa4)
    facebook#27 0x18ad42d9c in thread_start+0x4 (libsystem_pthread.dylib:arm64e+0x1d9c)

0x0001742e17d4 is located 4 bytes inside of 40-byte region [0x0001742e17d0,0x0001742e17f8)
freed by thread T80 here:
    #0 0x139ff6de4 in wrap_free+0x98 (libclang_rt.asan_osx_dynamic.dylib:arm64e+0x3ede4)
    facebook#1 0x107febcfc in my_raw_free(void*) my_malloc.cc:269
    facebook#2 0x107feba48 in my_free(void*) my_malloc.cc:141
    facebook#3 0x103cb9828 in free_latency_histogram_sysvars(SHOW_VAR*) mysqld.cc:4668
    facebook#4 0x17c6231e8 in ReplSemiSyncMaster::~ReplSemiSyncMaster() semisync_source.cc:517
    facebook#5 0x17c623488 in ReplSemiSyncMaster::~ReplSemiSyncMaster() semisync_source.cc:516
    facebook#6 0x17c651484 in semi_sync_master_plugin_deinit(void*) semisync_source_plugin.cc:833
    facebook#7 0x10467aa90 in plugin_deinitialize(st_plugin_int*, bool) sql_plugin.cc:1123
    facebook#8 0x1046730b0 in reap_plugins() sql_plugin.cc:1192
    facebook#9 0x1046863b4 in mysql_uninstall_plugin(THD*, MYSQL_LEX_CSTRING) sql_plugin.cc:2602
    facebook#10 0x104685374 in Sql_cmd_uninstall_plugin::execute(THD*) sql_plugin.cc:3731
    facebook#11 0x1045cea6c in mysql_execute_command(THD*, bool, unsigned long long*) sql_parse.cc:5323
    facebook#12 0x1045c5dcc in dispatch_sql_command(THD*, Parser_state*, unsigned long long*) sql_parse.cc:6093
    facebook#13 0x1045bb92c in dispatch_command(THD*, COM_DATA const*, enum_server_command) sql_parse.cc:2444
    facebook#14 0x1045c06f8 in do_command(THD*) sql_parse.cc:1636
    facebook#15 0x104cc4cc4 in handle_connection(void*) connection_handler_per_thread.cc:307
    facebook#16 0x10bd130d4 in pfs_spawn_thread(void*) pfs.cc:2983
    facebook#17 0x18ad47fa4 in _pthread_start+0x90 (libsystem_pthread.dylib:arm64e+0x6fa4)
    facebook#18 0x18ad42d9c in thread_start+0x4 (libsystem_pthread.dylib:arm64e+0x1d9c)
```

It seems that the double invocation of `free_latency_histogram_sysvars` is
correct in this case, thus protect against the double free with resetting the
pointers to nullptr.

Pull Request resolved: facebook#1290

Reviewed By: sunshine-Chun

Differential Revision: D45277600

Pulled By: hermanlee

fbshipit-source-id: 37524d0
hermanlee pushed a commit to hermanlee/mysql-5.6 that referenced this issue Oct 3, 2023
Summary:
add histogram for rpl_semi_sync_master_trx_wait.

8.0 porting notes: Keeps the same histogram status variables as before
since these are already being read by various applications. We should
eventually remove this.

Reference Patch: facebook@d1a1394
Reference Patch: facebook@15333b2e6f9

Differential Revision: D21832889

----------------------------------------------------------------------

Fix semi_sync histogram reporting

Summary:
Fix a porting bug with semi_sync histograms.

Reviewed By: george-reynya

Differential Revision: D40964563



----------------------------------------------------------------------

Semisync histogram double free (facebook#1290)

Summary:
Avoid double free on latency histogram data

Before this fix, rpl.rpl_semi_sync_alias test under ASan with

```
=================================================================
==65389==ERROR: AddressSanitizer: heap-use-after-free on address 0x0001742e17d4 at pc 0x000107febaf0 bp 0x00016ea8f710 sp 0x00016ea8f708
READ of size 4 at 0x0001742e17d4 thread T80
    #0 0x107febaec in my_free(void*) my_malloc.cc:135
    facebook#1 0x103cb9828 in free_latency_histogram_sysvars(SHOW_VAR*) mysqld.cc:4668
    facebook#2 0x103cb99bc in prepare_latency_histogram_vars(latency_histogram*, SHOW_VAR*, unsigned long long*) mysqld.cc:4692
    facebook#3 0x17c65826c in rpl_semi_sync_master_trx_wait_histogram(THD*, SHOW_VAR*, char*) semisync_source_plugin.cc:581
    facebook#4 0x10be1b4cc in PFS_status_variable_cache::manifest(THD*, SHOW_VAR const*, System_status_var*, char const*, bool, bool) pfs_variable.cc:1366
    facebook#5 0x10be1ba90 in PFS_status_variable_cache::do_materialize_all(THD*) pfs_variable.cc:1172
    facebook#6 0x10c0ab33c in PFS_variable_cache<Status_variable>::materialize_all(THD*) pfs_variable.h:536
    facebook#7 0x10c0ab294 in table_session_status::rnd_init(bool) table_session_status.cc:111
    facebook#8 0x10bceb790 in ha_perfschema::rnd_init(bool) ha_perfschema.cc:1686
    facebook#9 0x1033c7cec in handler::ha_rnd_init(bool) handler.cc:3157
    facebook#10 0x103975380 in TableScanIterator::Init() basic_row_iterators.cc:230
    facebook#11 0x103a33a18 in FilterIterator::Init() composite_iterators.h:82
    facebook#12 0x103982ec0 in MaterializeIterator::MaterializeQueryBlock(MaterializeIterator::QueryBlock const&, unsigned long long*) composite_iterators.cc:845
    facebook#13 0x103981410 in MaterializeIterator::Init() composite_iterators.cc:660
    facebook#14 0x1049fc518 in Query_expression::ExecuteIteratorQuery(THD*) sql_union.cc:1293
    facebook#15 0x1049fd358 in Query_expression::execute(THD*) sql_union.cc:1355
    facebook#16 0x1047ae7ac in Sql_cmd_dml::execute_inner(THD*) sql_select.cc:870
    facebook#17 0x1047ac344 in Sql_cmd_dml::execute(THD*) sql_select.cc:618
    facebook#18 0x1047ffcc8 in Sql_cmd_show::execute(THD*) sql_show.cc:232
    facebook#19 0x10480ab58 in Sql_cmd_show_status::execute(THD*) sql_show.cc:894
    facebook#20 0x1045cea6c in mysql_execute_command(THD*, bool, unsigned long long*) sql_parse.cc:5323
    facebook#21 0x1045c5dcc in dispatch_sql_command(THD*, Parser_state*, unsigned long long*) sql_parse.cc:6093
    facebook#22 0x1045bb92c in dispatch_command(THD*, COM_DATA const*, enum_server_command) sql_parse.cc:2444
    facebook#23 0x1045c06f8 in do_command(THD*) sql_parse.cc:1636
    facebook#24 0x104cc4cc4 in handle_connection(void*) connection_handler_per_thread.cc:307
    facebook#25 0x10bd130d4 in pfs_spawn_thread(void*) pfs.cc:2983
    facebook#26 0x18ad47fa4 in _pthread_start+0x90 (libsystem_pthread.dylib:arm64e+0x6fa4)
    facebook#27 0x18ad42d9c in thread_start+0x4 (libsystem_pthread.dylib:arm64e+0x1d9c)

0x0001742e17d4 is located 4 bytes inside of 40-byte region [0x0001742e17d0,0x0001742e17f8)
freed by thread T80 here:
    #0 0x139ff6de4 in wrap_free+0x98 (libclang_rt.asan_osx_dynamic.dylib:arm64e+0x3ede4)
    facebook#1 0x107febcfc in my_raw_free(void*) my_malloc.cc:269
    facebook#2 0x107feba48 in my_free(void*) my_malloc.cc:141
    facebook#3 0x103cb9828 in free_latency_histogram_sysvars(SHOW_VAR*) mysqld.cc:4668
    facebook#4 0x17c6231e8 in ReplSemiSyncMaster::~ReplSemiSyncMaster() semisync_source.cc:517
    facebook#5 0x17c623488 in ReplSemiSyncMaster::~ReplSemiSyncMaster() semisync_source.cc:516
    facebook#6 0x17c651484 in semi_sync_master_plugin_deinit(void*) semisync_source_plugin.cc:833
    facebook#7 0x10467aa90 in plugin_deinitialize(st_plugin_int*, bool) sql_plugin.cc:1123
    facebook#8 0x1046730b0 in reap_plugins() sql_plugin.cc:1192
    facebook#9 0x1046863b4 in mysql_uninstall_plugin(THD*, MYSQL_LEX_CSTRING) sql_plugin.cc:2602
    facebook#10 0x104685374 in Sql_cmd_uninstall_plugin::execute(THD*) sql_plugin.cc:3731
    facebook#11 0x1045cea6c in mysql_execute_command(THD*, bool, unsigned long long*) sql_parse.cc:5323
    facebook#12 0x1045c5dcc in dispatch_sql_command(THD*, Parser_state*, unsigned long long*) sql_parse.cc:6093
    facebook#13 0x1045bb92c in dispatch_command(THD*, COM_DATA const*, enum_server_command) sql_parse.cc:2444
    facebook#14 0x1045c06f8 in do_command(THD*) sql_parse.cc:1636
    facebook#15 0x104cc4cc4 in handle_connection(void*) connection_handler_per_thread.cc:307
    facebook#16 0x10bd130d4 in pfs_spawn_thread(void*) pfs.cc:2983
    facebook#17 0x18ad47fa4 in _pthread_start+0x90 (libsystem_pthread.dylib:arm64e+0x6fa4)
    facebook#18 0x18ad42d9c in thread_start+0x4 (libsystem_pthread.dylib:arm64e+0x1d9c)
```

It seems that the double invocation of `free_latency_histogram_sysvars` is
correct in this case, thus protect against the double free with resetting the
pointers to nullptr.

Pull Request resolved: facebook#1290

Reviewed By: sunshine-Chun

Differential Revision: D45277600

Pulled By: hermanlee
hermanlee pushed a commit to hermanlee/mysql-5.6 that referenced this issue Oct 18, 2023
Summary:
add histogram for rpl_semi_sync_master_trx_wait.

8.0 porting notes: Keeps the same histogram status variables as before
since these are already being read by various applications. We should
eventually remove this.

Reference Patch: facebook@d1a1394
Reference Patch: facebook@15333b2e6f9

Differential Revision: D21832889

----------------------------------------------------------------------

Fix semi_sync histogram reporting

Summary:
Fix a porting bug with semi_sync histograms.

Reviewed By: george-reynya

Differential Revision: D40964563



----------------------------------------------------------------------

Semisync histogram double free (facebook#1290)

Summary:
Avoid double free on latency histogram data

Before this fix, rpl.rpl_semi_sync_alias test under ASan with

```
=================================================================
==65389==ERROR: AddressSanitizer: heap-use-after-free on address 0x0001742e17d4 at pc 0x000107febaf0 bp 0x00016ea8f710 sp 0x00016ea8f708
READ of size 4 at 0x0001742e17d4 thread T80
    #0 0x107febaec in my_free(void*) my_malloc.cc:135
    facebook#1 0x103cb9828 in free_latency_histogram_sysvars(SHOW_VAR*) mysqld.cc:4668
    facebook#2 0x103cb99bc in prepare_latency_histogram_vars(latency_histogram*, SHOW_VAR*, unsigned long long*) mysqld.cc:4692
    facebook#3 0x17c65826c in rpl_semi_sync_master_trx_wait_histogram(THD*, SHOW_VAR*, char*) semisync_source_plugin.cc:581
    facebook#4 0x10be1b4cc in PFS_status_variable_cache::manifest(THD*, SHOW_VAR const*, System_status_var*, char const*, bool, bool) pfs_variable.cc:1366
    facebook#5 0x10be1ba90 in PFS_status_variable_cache::do_materialize_all(THD*) pfs_variable.cc:1172
    facebook#6 0x10c0ab33c in PFS_variable_cache<Status_variable>::materialize_all(THD*) pfs_variable.h:536
    facebook#7 0x10c0ab294 in table_session_status::rnd_init(bool) table_session_status.cc:111
    facebook#8 0x10bceb790 in ha_perfschema::rnd_init(bool) ha_perfschema.cc:1686
    facebook#9 0x1033c7cec in handler::ha_rnd_init(bool) handler.cc:3157
    facebook#10 0x103975380 in TableScanIterator::Init() basic_row_iterators.cc:230
    facebook#11 0x103a33a18 in FilterIterator::Init() composite_iterators.h:82
    facebook#12 0x103982ec0 in MaterializeIterator::MaterializeQueryBlock(MaterializeIterator::QueryBlock const&, unsigned long long*) composite_iterators.cc:845
    facebook#13 0x103981410 in MaterializeIterator::Init() composite_iterators.cc:660
    facebook#14 0x1049fc518 in Query_expression::ExecuteIteratorQuery(THD*) sql_union.cc:1293
    facebook#15 0x1049fd358 in Query_expression::execute(THD*) sql_union.cc:1355
    facebook#16 0x1047ae7ac in Sql_cmd_dml::execute_inner(THD*) sql_select.cc:870
    facebook#17 0x1047ac344 in Sql_cmd_dml::execute(THD*) sql_select.cc:618
    facebook#18 0x1047ffcc8 in Sql_cmd_show::execute(THD*) sql_show.cc:232
    facebook#19 0x10480ab58 in Sql_cmd_show_status::execute(THD*) sql_show.cc:894
    facebook#20 0x1045cea6c in mysql_execute_command(THD*, bool, unsigned long long*) sql_parse.cc:5323
    facebook#21 0x1045c5dcc in dispatch_sql_command(THD*, Parser_state*, unsigned long long*) sql_parse.cc:6093
    facebook#22 0x1045bb92c in dispatch_command(THD*, COM_DATA const*, enum_server_command) sql_parse.cc:2444
    facebook#23 0x1045c06f8 in do_command(THD*) sql_parse.cc:1636
    facebook#24 0x104cc4cc4 in handle_connection(void*) connection_handler_per_thread.cc:307
    facebook#25 0x10bd130d4 in pfs_spawn_thread(void*) pfs.cc:2983
    facebook#26 0x18ad47fa4 in _pthread_start+0x90 (libsystem_pthread.dylib:arm64e+0x6fa4)
    facebook#27 0x18ad42d9c in thread_start+0x4 (libsystem_pthread.dylib:arm64e+0x1d9c)

0x0001742e17d4 is located 4 bytes inside of 40-byte region [0x0001742e17d0,0x0001742e17f8)
freed by thread T80 here:
    #0 0x139ff6de4 in wrap_free+0x98 (libclang_rt.asan_osx_dynamic.dylib:arm64e+0x3ede4)
    facebook#1 0x107febcfc in my_raw_free(void*) my_malloc.cc:269
    facebook#2 0x107feba48 in my_free(void*) my_malloc.cc:141
    facebook#3 0x103cb9828 in free_latency_histogram_sysvars(SHOW_VAR*) mysqld.cc:4668
    facebook#4 0x17c6231e8 in ReplSemiSyncMaster::~ReplSemiSyncMaster() semisync_source.cc:517
    facebook#5 0x17c623488 in ReplSemiSyncMaster::~ReplSemiSyncMaster() semisync_source.cc:516
    facebook#6 0x17c651484 in semi_sync_master_plugin_deinit(void*) semisync_source_plugin.cc:833
    facebook#7 0x10467aa90 in plugin_deinitialize(st_plugin_int*, bool) sql_plugin.cc:1123
    facebook#8 0x1046730b0 in reap_plugins() sql_plugin.cc:1192
    facebook#9 0x1046863b4 in mysql_uninstall_plugin(THD*, MYSQL_LEX_CSTRING) sql_plugin.cc:2602
    facebook#10 0x104685374 in Sql_cmd_uninstall_plugin::execute(THD*) sql_plugin.cc:3731
    facebook#11 0x1045cea6c in mysql_execute_command(THD*, bool, unsigned long long*) sql_parse.cc:5323
    facebook#12 0x1045c5dcc in dispatch_sql_command(THD*, Parser_state*, unsigned long long*) sql_parse.cc:6093
    facebook#13 0x1045bb92c in dispatch_command(THD*, COM_DATA const*, enum_server_command) sql_parse.cc:2444
    facebook#14 0x1045c06f8 in do_command(THD*) sql_parse.cc:1636
    facebook#15 0x104cc4cc4 in handle_connection(void*) connection_handler_per_thread.cc:307
    facebook#16 0x10bd130d4 in pfs_spawn_thread(void*) pfs.cc:2983
    facebook#17 0x18ad47fa4 in _pthread_start+0x90 (libsystem_pthread.dylib:arm64e+0x6fa4)
    facebook#18 0x18ad42d9c in thread_start+0x4 (libsystem_pthread.dylib:arm64e+0x1d9c)
```

It seems that the double invocation of `free_latency_histogram_sysvars` is
correct in this case, thus protect against the double free with resetting the
pointers to nullptr.

Pull Request resolved: facebook#1290

Reviewed By: sunshine-Chun

Differential Revision: D45277600

Pulled By: hermanlee
inikep pushed a commit to inikep/mysql-5.6 that referenced this issue Apr 23, 2024
Summary:
add histogram for rpl_semi_sync_master_trx_wait.

8.0 porting notes: Keeps the same histogram status variables as before
since these are already being read by various applications. We should
eventually remove this.

Reference Patch: facebook@d1a1394
Reference Patch: facebook@15333b2e6f9

Differential Revision: D21832889

----------------------------------------------------------------------

Fix semi_sync histogram reporting

Summary:
Fix a porting bug with semi_sync histograms.

Reviewed By: george-reynya

Differential Revision: D40964563



----------------------------------------------------------------------

Semisync histogram double free (facebook#1290)

Summary:
Avoid double free on latency histogram data

Before this fix, rpl.rpl_semi_sync_alias test under ASan with

```
=================================================================
==65389==ERROR: AddressSanitizer: heap-use-after-free on address 0x0001742e17d4 at pc 0x000107febaf0 bp 0x00016ea8f710 sp 0x00016ea8f708
READ of size 4 at 0x0001742e17d4 thread T80
    #0 0x107febaec in my_free(void*) my_malloc.cc:135
    facebook#1 0x103cb9828 in free_latency_histogram_sysvars(SHOW_VAR*) mysqld.cc:4668
    facebook#2 0x103cb99bc in prepare_latency_histogram_vars(latency_histogram*, SHOW_VAR*, unsigned long long*) mysqld.cc:4692
    facebook#3 0x17c65826c in rpl_semi_sync_master_trx_wait_histogram(THD*, SHOW_VAR*, char*) semisync_source_plugin.cc:581
    facebook#4 0x10be1b4cc in PFS_status_variable_cache::manifest(THD*, SHOW_VAR const*, System_status_var*, char const*, bool, bool) pfs_variable.cc:1366
    facebook#5 0x10be1ba90 in PFS_status_variable_cache::do_materialize_all(THD*) pfs_variable.cc:1172
    facebook#6 0x10c0ab33c in PFS_variable_cache<Status_variable>::materialize_all(THD*) pfs_variable.h:536
    facebook#7 0x10c0ab294 in table_session_status::rnd_init(bool) table_session_status.cc:111
    facebook#8 0x10bceb790 in ha_perfschema::rnd_init(bool) ha_perfschema.cc:1686
    facebook#9 0x1033c7cec in handler::ha_rnd_init(bool) handler.cc:3157
    facebook#10 0x103975380 in TableScanIterator::Init() basic_row_iterators.cc:230
    facebook#11 0x103a33a18 in FilterIterator::Init() composite_iterators.h:82
    facebook#12 0x103982ec0 in MaterializeIterator::MaterializeQueryBlock(MaterializeIterator::QueryBlock const&, unsigned long long*) composite_iterators.cc:845
    facebook#13 0x103981410 in MaterializeIterator::Init() composite_iterators.cc:660
    facebook#14 0x1049fc518 in Query_expression::ExecuteIteratorQuery(THD*) sql_union.cc:1293
    facebook#15 0x1049fd358 in Query_expression::execute(THD*) sql_union.cc:1355
    facebook#16 0x1047ae7ac in Sql_cmd_dml::execute_inner(THD*) sql_select.cc:870
    facebook#17 0x1047ac344 in Sql_cmd_dml::execute(THD*) sql_select.cc:618
    facebook#18 0x1047ffcc8 in Sql_cmd_show::execute(THD*) sql_show.cc:232
    facebook#19 0x10480ab58 in Sql_cmd_show_status::execute(THD*) sql_show.cc:894
    facebook#20 0x1045cea6c in mysql_execute_command(THD*, bool, unsigned long long*) sql_parse.cc:5323
    facebook#21 0x1045c5dcc in dispatch_sql_command(THD*, Parser_state*, unsigned long long*) sql_parse.cc:6093
    facebook#22 0x1045bb92c in dispatch_command(THD*, COM_DATA const*, enum_server_command) sql_parse.cc:2444
    facebook#23 0x1045c06f8 in do_command(THD*) sql_parse.cc:1636
    facebook#24 0x104cc4cc4 in handle_connection(void*) connection_handler_per_thread.cc:307
    facebook#25 0x10bd130d4 in pfs_spawn_thread(void*) pfs.cc:2983
    facebook#26 0x18ad47fa4 in _pthread_start+0x90 (libsystem_pthread.dylib:arm64e+0x6fa4)
    facebook#27 0x18ad42d9c in thread_start+0x4 (libsystem_pthread.dylib:arm64e+0x1d9c)

0x0001742e17d4 is located 4 bytes inside of 40-byte region [0x0001742e17d0,0x0001742e17f8)
freed by thread T80 here:
    #0 0x139ff6de4 in wrap_free+0x98 (libclang_rt.asan_osx_dynamic.dylib:arm64e+0x3ede4)
    facebook#1 0x107febcfc in my_raw_free(void*) my_malloc.cc:269
    facebook#2 0x107feba48 in my_free(void*) my_malloc.cc:141
    facebook#3 0x103cb9828 in free_latency_histogram_sysvars(SHOW_VAR*) mysqld.cc:4668
    facebook#4 0x17c6231e8 in ReplSemiSyncMaster::~ReplSemiSyncMaster() semisync_source.cc:517
    facebook#5 0x17c623488 in ReplSemiSyncMaster::~ReplSemiSyncMaster() semisync_source.cc:516
    facebook#6 0x17c651484 in semi_sync_master_plugin_deinit(void*) semisync_source_plugin.cc:833
    facebook#7 0x10467aa90 in plugin_deinitialize(st_plugin_int*, bool) sql_plugin.cc:1123
    facebook#8 0x1046730b0 in reap_plugins() sql_plugin.cc:1192
    facebook#9 0x1046863b4 in mysql_uninstall_plugin(THD*, MYSQL_LEX_CSTRING) sql_plugin.cc:2602
    facebook#10 0x104685374 in Sql_cmd_uninstall_plugin::execute(THD*) sql_plugin.cc:3731
    facebook#11 0x1045cea6c in mysql_execute_command(THD*, bool, unsigned long long*) sql_parse.cc:5323
    facebook#12 0x1045c5dcc in dispatch_sql_command(THD*, Parser_state*, unsigned long long*) sql_parse.cc:6093
    facebook#13 0x1045bb92c in dispatch_command(THD*, COM_DATA const*, enum_server_command) sql_parse.cc:2444
    facebook#14 0x1045c06f8 in do_command(THD*) sql_parse.cc:1636
    facebook#15 0x104cc4cc4 in handle_connection(void*) connection_handler_per_thread.cc:307
    facebook#16 0x10bd130d4 in pfs_spawn_thread(void*) pfs.cc:2983
    facebook#17 0x18ad47fa4 in _pthread_start+0x90 (libsystem_pthread.dylib:arm64e+0x6fa4)
    facebook#18 0x18ad42d9c in thread_start+0x4 (libsystem_pthread.dylib:arm64e+0x1d9c)
```

It seems that the double invocation of `free_latency_histogram_sysvars` is
correct in this case, thus protect against the double free with resetting the
pointers to nullptr.

Pull Request resolved: facebook#1290

Reviewed By: sunshine-Chun

Differential Revision: D45277600

Pulled By: hermanlee
inikep pushed a commit to inikep/mysql-5.6 that referenced this issue Apr 23, 2024
Summary:
add histogram for rpl_semi_sync_master_trx_wait.

8.0 porting notes: Keeps the same histogram status variables as before
since these are already being read by various applications. We should
eventually remove this.

Reference Patch: facebook@d1a1394
Reference Patch: facebook@15333b2e6f9

Differential Revision: D21832889

----------------------------------------------------------------------

Fix semi_sync histogram reporting

Summary:
Fix a porting bug with semi_sync histograms.

Reviewed By: george-reynya

Differential Revision: D40964563



----------------------------------------------------------------------

Semisync histogram double free (facebook#1290)

Summary:
Avoid double free on latency histogram data

Before this fix, rpl.rpl_semi_sync_alias test under ASan with

```
=================================================================
==65389==ERROR: AddressSanitizer: heap-use-after-free on address 0x0001742e17d4 at pc 0x000107febaf0 bp 0x00016ea8f710 sp 0x00016ea8f708
READ of size 4 at 0x0001742e17d4 thread T80
    #0 0x107febaec in my_free(void*) my_malloc.cc:135
    facebook#1 0x103cb9828 in free_latency_histogram_sysvars(SHOW_VAR*) mysqld.cc:4668
    facebook#2 0x103cb99bc in prepare_latency_histogram_vars(latency_histogram*, SHOW_VAR*, unsigned long long*) mysqld.cc:4692
    facebook#3 0x17c65826c in rpl_semi_sync_master_trx_wait_histogram(THD*, SHOW_VAR*, char*) semisync_source_plugin.cc:581
    facebook#4 0x10be1b4cc in PFS_status_variable_cache::manifest(THD*, SHOW_VAR const*, System_status_var*, char const*, bool, bool) pfs_variable.cc:1366
    facebook#5 0x10be1ba90 in PFS_status_variable_cache::do_materialize_all(THD*) pfs_variable.cc:1172
    facebook#6 0x10c0ab33c in PFS_variable_cache<Status_variable>::materialize_all(THD*) pfs_variable.h:536
    facebook#7 0x10c0ab294 in table_session_status::rnd_init(bool) table_session_status.cc:111
    facebook#8 0x10bceb790 in ha_perfschema::rnd_init(bool) ha_perfschema.cc:1686
    facebook#9 0x1033c7cec in handler::ha_rnd_init(bool) handler.cc:3157
    facebook#10 0x103975380 in TableScanIterator::Init() basic_row_iterators.cc:230
    facebook#11 0x103a33a18 in FilterIterator::Init() composite_iterators.h:82
    facebook#12 0x103982ec0 in MaterializeIterator::MaterializeQueryBlock(MaterializeIterator::QueryBlock const&, unsigned long long*) composite_iterators.cc:845
    facebook#13 0x103981410 in MaterializeIterator::Init() composite_iterators.cc:660
    facebook#14 0x1049fc518 in Query_expression::ExecuteIteratorQuery(THD*) sql_union.cc:1293
    facebook#15 0x1049fd358 in Query_expression::execute(THD*) sql_union.cc:1355
    facebook#16 0x1047ae7ac in Sql_cmd_dml::execute_inner(THD*) sql_select.cc:870
    facebook#17 0x1047ac344 in Sql_cmd_dml::execute(THD*) sql_select.cc:618
    facebook#18 0x1047ffcc8 in Sql_cmd_show::execute(THD*) sql_show.cc:232
    facebook#19 0x10480ab58 in Sql_cmd_show_status::execute(THD*) sql_show.cc:894
    facebook#20 0x1045cea6c in mysql_execute_command(THD*, bool, unsigned long long*) sql_parse.cc:5323
    facebook#21 0x1045c5dcc in dispatch_sql_command(THD*, Parser_state*, unsigned long long*) sql_parse.cc:6093
    facebook#22 0x1045bb92c in dispatch_command(THD*, COM_DATA const*, enum_server_command) sql_parse.cc:2444
    facebook#23 0x1045c06f8 in do_command(THD*) sql_parse.cc:1636
    facebook#24 0x104cc4cc4 in handle_connection(void*) connection_handler_per_thread.cc:307
    facebook#25 0x10bd130d4 in pfs_spawn_thread(void*) pfs.cc:2983
    facebook#26 0x18ad47fa4 in _pthread_start+0x90 (libsystem_pthread.dylib:arm64e+0x6fa4)
    facebook#27 0x18ad42d9c in thread_start+0x4 (libsystem_pthread.dylib:arm64e+0x1d9c)

0x0001742e17d4 is located 4 bytes inside of 40-byte region [0x0001742e17d0,0x0001742e17f8)
freed by thread T80 here:
    #0 0x139ff6de4 in wrap_free+0x98 (libclang_rt.asan_osx_dynamic.dylib:arm64e+0x3ede4)
    facebook#1 0x107febcfc in my_raw_free(void*) my_malloc.cc:269
    facebook#2 0x107feba48 in my_free(void*) my_malloc.cc:141
    facebook#3 0x103cb9828 in free_latency_histogram_sysvars(SHOW_VAR*) mysqld.cc:4668
    facebook#4 0x17c6231e8 in ReplSemiSyncMaster::~ReplSemiSyncMaster() semisync_source.cc:517
    facebook#5 0x17c623488 in ReplSemiSyncMaster::~ReplSemiSyncMaster() semisync_source.cc:516
    facebook#6 0x17c651484 in semi_sync_master_plugin_deinit(void*) semisync_source_plugin.cc:833
    facebook#7 0x10467aa90 in plugin_deinitialize(st_plugin_int*, bool) sql_plugin.cc:1123
    facebook#8 0x1046730b0 in reap_plugins() sql_plugin.cc:1192
    facebook#9 0x1046863b4 in mysql_uninstall_plugin(THD*, MYSQL_LEX_CSTRING) sql_plugin.cc:2602
    facebook#10 0x104685374 in Sql_cmd_uninstall_plugin::execute(THD*) sql_plugin.cc:3731
    facebook#11 0x1045cea6c in mysql_execute_command(THD*, bool, unsigned long long*) sql_parse.cc:5323
    facebook#12 0x1045c5dcc in dispatch_sql_command(THD*, Parser_state*, unsigned long long*) sql_parse.cc:6093
    facebook#13 0x1045bb92c in dispatch_command(THD*, COM_DATA const*, enum_server_command) sql_parse.cc:2444
    facebook#14 0x1045c06f8 in do_command(THD*) sql_parse.cc:1636
    facebook#15 0x104cc4cc4 in handle_connection(void*) connection_handler_per_thread.cc:307
    facebook#16 0x10bd130d4 in pfs_spawn_thread(void*) pfs.cc:2983
    facebook#17 0x18ad47fa4 in _pthread_start+0x90 (libsystem_pthread.dylib:arm64e+0x6fa4)
    facebook#18 0x18ad42d9c in thread_start+0x4 (libsystem_pthread.dylib:arm64e+0x1d9c)
```

It seems that the double invocation of `free_latency_histogram_sysvars` is
correct in this case, thus protect against the double free with resetting the
pointers to nullptr.

Pull Request resolved: facebook#1290

Reviewed By: sunshine-Chun

Differential Revision: D45277600

Pulled By: hermanlee
inikep pushed a commit to inikep/mysql-5.6 that referenced this issue Apr 25, 2024
Summary:
add histogram for rpl_semi_sync_master_trx_wait.

8.0 porting notes: Keeps the same histogram status variables as before
since these are already being read by various applications. We should
eventually remove this.

Reference Patch: facebook@d1a1394
Reference Patch: facebook@15333b2e6f9

Differential Revision: D21832889

----------------------------------------------------------------------

Fix semi_sync histogram reporting

Summary:
Fix a porting bug with semi_sync histograms.

Reviewed By: george-reynya

Differential Revision: D40964563



----------------------------------------------------------------------

Semisync histogram double free (facebook#1290)

Summary:
Avoid double free on latency histogram data

Before this fix, rpl.rpl_semi_sync_alias test under ASan with

```
=================================================================
==65389==ERROR: AddressSanitizer: heap-use-after-free on address 0x0001742e17d4 at pc 0x000107febaf0 bp 0x00016ea8f710 sp 0x00016ea8f708
READ of size 4 at 0x0001742e17d4 thread T80
    #0 0x107febaec in my_free(void*) my_malloc.cc:135
    facebook#1 0x103cb9828 in free_latency_histogram_sysvars(SHOW_VAR*) mysqld.cc:4668
    facebook#2 0x103cb99bc in prepare_latency_histogram_vars(latency_histogram*, SHOW_VAR*, unsigned long long*) mysqld.cc:4692
    facebook#3 0x17c65826c in rpl_semi_sync_master_trx_wait_histogram(THD*, SHOW_VAR*, char*) semisync_source_plugin.cc:581
    facebook#4 0x10be1b4cc in PFS_status_variable_cache::manifest(THD*, SHOW_VAR const*, System_status_var*, char const*, bool, bool) pfs_variable.cc:1366
    facebook#5 0x10be1ba90 in PFS_status_variable_cache::do_materialize_all(THD*) pfs_variable.cc:1172
    facebook#6 0x10c0ab33c in PFS_variable_cache<Status_variable>::materialize_all(THD*) pfs_variable.h:536
    facebook#7 0x10c0ab294 in table_session_status::rnd_init(bool) table_session_status.cc:111
    facebook#8 0x10bceb790 in ha_perfschema::rnd_init(bool) ha_perfschema.cc:1686
    facebook#9 0x1033c7cec in handler::ha_rnd_init(bool) handler.cc:3157
    facebook#10 0x103975380 in TableScanIterator::Init() basic_row_iterators.cc:230
    facebook#11 0x103a33a18 in FilterIterator::Init() composite_iterators.h:82
    facebook#12 0x103982ec0 in MaterializeIterator::MaterializeQueryBlock(MaterializeIterator::QueryBlock const&, unsigned long long*) composite_iterators.cc:845
    facebook#13 0x103981410 in MaterializeIterator::Init() composite_iterators.cc:660
    facebook#14 0x1049fc518 in Query_expression::ExecuteIteratorQuery(THD*) sql_union.cc:1293
    facebook#15 0x1049fd358 in Query_expression::execute(THD*) sql_union.cc:1355
    facebook#16 0x1047ae7ac in Sql_cmd_dml::execute_inner(THD*) sql_select.cc:870
    facebook#17 0x1047ac344 in Sql_cmd_dml::execute(THD*) sql_select.cc:618
    facebook#18 0x1047ffcc8 in Sql_cmd_show::execute(THD*) sql_show.cc:232
    facebook#19 0x10480ab58 in Sql_cmd_show_status::execute(THD*) sql_show.cc:894
    facebook#20 0x1045cea6c in mysql_execute_command(THD*, bool, unsigned long long*) sql_parse.cc:5323
    facebook#21 0x1045c5dcc in dispatch_sql_command(THD*, Parser_state*, unsigned long long*) sql_parse.cc:6093
    facebook#22 0x1045bb92c in dispatch_command(THD*, COM_DATA const*, enum_server_command) sql_parse.cc:2444
    facebook#23 0x1045c06f8 in do_command(THD*) sql_parse.cc:1636
    facebook#24 0x104cc4cc4 in handle_connection(void*) connection_handler_per_thread.cc:307
    facebook#25 0x10bd130d4 in pfs_spawn_thread(void*) pfs.cc:2983
    facebook#26 0x18ad47fa4 in _pthread_start+0x90 (libsystem_pthread.dylib:arm64e+0x6fa4)
    facebook#27 0x18ad42d9c in thread_start+0x4 (libsystem_pthread.dylib:arm64e+0x1d9c)

0x0001742e17d4 is located 4 bytes inside of 40-byte region [0x0001742e17d0,0x0001742e17f8)
freed by thread T80 here:
    #0 0x139ff6de4 in wrap_free+0x98 (libclang_rt.asan_osx_dynamic.dylib:arm64e+0x3ede4)
    facebook#1 0x107febcfc in my_raw_free(void*) my_malloc.cc:269
    facebook#2 0x107feba48 in my_free(void*) my_malloc.cc:141
    facebook#3 0x103cb9828 in free_latency_histogram_sysvars(SHOW_VAR*) mysqld.cc:4668
    facebook#4 0x17c6231e8 in ReplSemiSyncMaster::~ReplSemiSyncMaster() semisync_source.cc:517
    facebook#5 0x17c623488 in ReplSemiSyncMaster::~ReplSemiSyncMaster() semisync_source.cc:516
    facebook#6 0x17c651484 in semi_sync_master_plugin_deinit(void*) semisync_source_plugin.cc:833
    facebook#7 0x10467aa90 in plugin_deinitialize(st_plugin_int*, bool) sql_plugin.cc:1123
    facebook#8 0x1046730b0 in reap_plugins() sql_plugin.cc:1192
    facebook#9 0x1046863b4 in mysql_uninstall_plugin(THD*, MYSQL_LEX_CSTRING) sql_plugin.cc:2602
    facebook#10 0x104685374 in Sql_cmd_uninstall_plugin::execute(THD*) sql_plugin.cc:3731
    facebook#11 0x1045cea6c in mysql_execute_command(THD*, bool, unsigned long long*) sql_parse.cc:5323
    facebook#12 0x1045c5dcc in dispatch_sql_command(THD*, Parser_state*, unsigned long long*) sql_parse.cc:6093
    facebook#13 0x1045bb92c in dispatch_command(THD*, COM_DATA const*, enum_server_command) sql_parse.cc:2444
    facebook#14 0x1045c06f8 in do_command(THD*) sql_parse.cc:1636
    facebook#15 0x104cc4cc4 in handle_connection(void*) connection_handler_per_thread.cc:307
    facebook#16 0x10bd130d4 in pfs_spawn_thread(void*) pfs.cc:2983
    facebook#17 0x18ad47fa4 in _pthread_start+0x90 (libsystem_pthread.dylib:arm64e+0x6fa4)
    facebook#18 0x18ad42d9c in thread_start+0x4 (libsystem_pthread.dylib:arm64e+0x1d9c)
```

It seems that the double invocation of `free_latency_histogram_sysvars` is
correct in this case, thus protect against the double free with resetting the
pointers to nullptr.

Pull Request resolved: facebook#1290

Reviewed By: sunshine-Chun

Differential Revision: D45277600

Pulled By: hermanlee
inikep pushed a commit to inikep/mysql-5.6 that referenced this issue May 7, 2024
Summary:
add histogram for rpl_semi_sync_master_trx_wait.

8.0 porting notes: Keeps the same histogram status variables as before
since these are already being read by various applications. We should
eventually remove this.

Reference Patch: facebook@d1a1394
Reference Patch: facebook@15333b2e6f9

Differential Revision: D21832889

----------------------------------------------------------------------

Fix semi_sync histogram reporting

Summary:
Fix a porting bug with semi_sync histograms.

Reviewed By: george-reynya

Differential Revision: D40964563



----------------------------------------------------------------------

Semisync histogram double free (facebook#1290)

Summary:
Avoid double free on latency histogram data

Before this fix, rpl.rpl_semi_sync_alias test under ASan with

```
=================================================================
==65389==ERROR: AddressSanitizer: heap-use-after-free on address 0x0001742e17d4 at pc 0x000107febaf0 bp 0x00016ea8f710 sp 0x00016ea8f708
READ of size 4 at 0x0001742e17d4 thread T80
    #0 0x107febaec in my_free(void*) my_malloc.cc:135
    facebook#1 0x103cb9828 in free_latency_histogram_sysvars(SHOW_VAR*) mysqld.cc:4668
    facebook#2 0x103cb99bc in prepare_latency_histogram_vars(latency_histogram*, SHOW_VAR*, unsigned long long*) mysqld.cc:4692
    facebook#3 0x17c65826c in rpl_semi_sync_master_trx_wait_histogram(THD*, SHOW_VAR*, char*) semisync_source_plugin.cc:581
    facebook#4 0x10be1b4cc in PFS_status_variable_cache::manifest(THD*, SHOW_VAR const*, System_status_var*, char const*, bool, bool) pfs_variable.cc:1366
    facebook#5 0x10be1ba90 in PFS_status_variable_cache::do_materialize_all(THD*) pfs_variable.cc:1172
    facebook#6 0x10c0ab33c in PFS_variable_cache<Status_variable>::materialize_all(THD*) pfs_variable.h:536
    facebook#7 0x10c0ab294 in table_session_status::rnd_init(bool) table_session_status.cc:111
    facebook#8 0x10bceb790 in ha_perfschema::rnd_init(bool) ha_perfschema.cc:1686
    facebook#9 0x1033c7cec in handler::ha_rnd_init(bool) handler.cc:3157
    facebook#10 0x103975380 in TableScanIterator::Init() basic_row_iterators.cc:230
    facebook#11 0x103a33a18 in FilterIterator::Init() composite_iterators.h:82
    facebook#12 0x103982ec0 in MaterializeIterator::MaterializeQueryBlock(MaterializeIterator::QueryBlock const&, unsigned long long*) composite_iterators.cc:845
    facebook#13 0x103981410 in MaterializeIterator::Init() composite_iterators.cc:660
    facebook#14 0x1049fc518 in Query_expression::ExecuteIteratorQuery(THD*) sql_union.cc:1293
    facebook#15 0x1049fd358 in Query_expression::execute(THD*) sql_union.cc:1355
    facebook#16 0x1047ae7ac in Sql_cmd_dml::execute_inner(THD*) sql_select.cc:870
    facebook#17 0x1047ac344 in Sql_cmd_dml::execute(THD*) sql_select.cc:618
    facebook#18 0x1047ffcc8 in Sql_cmd_show::execute(THD*) sql_show.cc:232
    facebook#19 0x10480ab58 in Sql_cmd_show_status::execute(THD*) sql_show.cc:894
    facebook#20 0x1045cea6c in mysql_execute_command(THD*, bool, unsigned long long*) sql_parse.cc:5323
    facebook#21 0x1045c5dcc in dispatch_sql_command(THD*, Parser_state*, unsigned long long*) sql_parse.cc:6093
    facebook#22 0x1045bb92c in dispatch_command(THD*, COM_DATA const*, enum_server_command) sql_parse.cc:2444
    facebook#23 0x1045c06f8 in do_command(THD*) sql_parse.cc:1636
    facebook#24 0x104cc4cc4 in handle_connection(void*) connection_handler_per_thread.cc:307
    facebook#25 0x10bd130d4 in pfs_spawn_thread(void*) pfs.cc:2983
    facebook#26 0x18ad47fa4 in _pthread_start+0x90 (libsystem_pthread.dylib:arm64e+0x6fa4)
    facebook#27 0x18ad42d9c in thread_start+0x4 (libsystem_pthread.dylib:arm64e+0x1d9c)

0x0001742e17d4 is located 4 bytes inside of 40-byte region [0x0001742e17d0,0x0001742e17f8)
freed by thread T80 here:
    #0 0x139ff6de4 in wrap_free+0x98 (libclang_rt.asan_osx_dynamic.dylib:arm64e+0x3ede4)
    facebook#1 0x107febcfc in my_raw_free(void*) my_malloc.cc:269
    facebook#2 0x107feba48 in my_free(void*) my_malloc.cc:141
    facebook#3 0x103cb9828 in free_latency_histogram_sysvars(SHOW_VAR*) mysqld.cc:4668
    facebook#4 0x17c6231e8 in ReplSemiSyncMaster::~ReplSemiSyncMaster() semisync_source.cc:517
    facebook#5 0x17c623488 in ReplSemiSyncMaster::~ReplSemiSyncMaster() semisync_source.cc:516
    facebook#6 0x17c651484 in semi_sync_master_plugin_deinit(void*) semisync_source_plugin.cc:833
    facebook#7 0x10467aa90 in plugin_deinitialize(st_plugin_int*, bool) sql_plugin.cc:1123
    facebook#8 0x1046730b0 in reap_plugins() sql_plugin.cc:1192
    facebook#9 0x1046863b4 in mysql_uninstall_plugin(THD*, MYSQL_LEX_CSTRING) sql_plugin.cc:2602
    facebook#10 0x104685374 in Sql_cmd_uninstall_plugin::execute(THD*) sql_plugin.cc:3731
    facebook#11 0x1045cea6c in mysql_execute_command(THD*, bool, unsigned long long*) sql_parse.cc:5323
    facebook#12 0x1045c5dcc in dispatch_sql_command(THD*, Parser_state*, unsigned long long*) sql_parse.cc:6093
    facebook#13 0x1045bb92c in dispatch_command(THD*, COM_DATA const*, enum_server_command) sql_parse.cc:2444
    facebook#14 0x1045c06f8 in do_command(THD*) sql_parse.cc:1636
    facebook#15 0x104cc4cc4 in handle_connection(void*) connection_handler_per_thread.cc:307
    facebook#16 0x10bd130d4 in pfs_spawn_thread(void*) pfs.cc:2983
    facebook#17 0x18ad47fa4 in _pthread_start+0x90 (libsystem_pthread.dylib:arm64e+0x6fa4)
    facebook#18 0x18ad42d9c in thread_start+0x4 (libsystem_pthread.dylib:arm64e+0x1d9c)
```

It seems that the double invocation of `free_latency_histogram_sysvars` is
correct in this case, thus protect against the double free with resetting the
pointers to nullptr.

Pull Request resolved: facebook#1290

Reviewed By: sunshine-Chun

Differential Revision: D45277600

Pulled By: hermanlee
inikep pushed a commit to inikep/mysql-5.6 that referenced this issue May 8, 2024
Summary:
add histogram for rpl_semi_sync_master_trx_wait.

8.0 porting notes: Keeps the same histogram status variables as before
since these are already being read by various applications. We should
eventually remove this.

Reference Patch: facebook@d1a1394
Reference Patch: facebook@15333b2e6f9

Differential Revision: D21832889

----------------------------------------------------------------------

Fix semi_sync histogram reporting

Summary:
Fix a porting bug with semi_sync histograms.

Reviewed By: george-reynya

Differential Revision: D40964563



----------------------------------------------------------------------

Semisync histogram double free (facebook#1290)

Summary:
Avoid double free on latency histogram data

Before this fix, rpl.rpl_semi_sync_alias test under ASan with

```
=================================================================
==65389==ERROR: AddressSanitizer: heap-use-after-free on address 0x0001742e17d4 at pc 0x000107febaf0 bp 0x00016ea8f710 sp 0x00016ea8f708
READ of size 4 at 0x0001742e17d4 thread T80
    #0 0x107febaec in my_free(void*) my_malloc.cc:135
    facebook#1 0x103cb9828 in free_latency_histogram_sysvars(SHOW_VAR*) mysqld.cc:4668
    facebook#2 0x103cb99bc in prepare_latency_histogram_vars(latency_histogram*, SHOW_VAR*, unsigned long long*) mysqld.cc:4692
    facebook#3 0x17c65826c in rpl_semi_sync_master_trx_wait_histogram(THD*, SHOW_VAR*, char*) semisync_source_plugin.cc:581
    facebook#4 0x10be1b4cc in PFS_status_variable_cache::manifest(THD*, SHOW_VAR const*, System_status_var*, char const*, bool, bool) pfs_variable.cc:1366
    facebook#5 0x10be1ba90 in PFS_status_variable_cache::do_materialize_all(THD*) pfs_variable.cc:1172
    facebook#6 0x10c0ab33c in PFS_variable_cache<Status_variable>::materialize_all(THD*) pfs_variable.h:536
    facebook#7 0x10c0ab294 in table_session_status::rnd_init(bool) table_session_status.cc:111
    facebook#8 0x10bceb790 in ha_perfschema::rnd_init(bool) ha_perfschema.cc:1686
    facebook#9 0x1033c7cec in handler::ha_rnd_init(bool) handler.cc:3157
    facebook#10 0x103975380 in TableScanIterator::Init() basic_row_iterators.cc:230
    facebook#11 0x103a33a18 in FilterIterator::Init() composite_iterators.h:82
    facebook#12 0x103982ec0 in MaterializeIterator::MaterializeQueryBlock(MaterializeIterator::QueryBlock const&, unsigned long long*) composite_iterators.cc:845
    facebook#13 0x103981410 in MaterializeIterator::Init() composite_iterators.cc:660
    facebook#14 0x1049fc518 in Query_expression::ExecuteIteratorQuery(THD*) sql_union.cc:1293
    facebook#15 0x1049fd358 in Query_expression::execute(THD*) sql_union.cc:1355
    facebook#16 0x1047ae7ac in Sql_cmd_dml::execute_inner(THD*) sql_select.cc:870
    facebook#17 0x1047ac344 in Sql_cmd_dml::execute(THD*) sql_select.cc:618
    facebook#18 0x1047ffcc8 in Sql_cmd_show::execute(THD*) sql_show.cc:232
    facebook#19 0x10480ab58 in Sql_cmd_show_status::execute(THD*) sql_show.cc:894
    facebook#20 0x1045cea6c in mysql_execute_command(THD*, bool, unsigned long long*) sql_parse.cc:5323
    facebook#21 0x1045c5dcc in dispatch_sql_command(THD*, Parser_state*, unsigned long long*) sql_parse.cc:6093
    facebook#22 0x1045bb92c in dispatch_command(THD*, COM_DATA const*, enum_server_command) sql_parse.cc:2444
    facebook#23 0x1045c06f8 in do_command(THD*) sql_parse.cc:1636
    facebook#24 0x104cc4cc4 in handle_connection(void*) connection_handler_per_thread.cc:307
    facebook#25 0x10bd130d4 in pfs_spawn_thread(void*) pfs.cc:2983
    facebook#26 0x18ad47fa4 in _pthread_start+0x90 (libsystem_pthread.dylib:arm64e+0x6fa4)
    facebook#27 0x18ad42d9c in thread_start+0x4 (libsystem_pthread.dylib:arm64e+0x1d9c)

0x0001742e17d4 is located 4 bytes inside of 40-byte region [0x0001742e17d0,0x0001742e17f8)
freed by thread T80 here:
    #0 0x139ff6de4 in wrap_free+0x98 (libclang_rt.asan_osx_dynamic.dylib:arm64e+0x3ede4)
    facebook#1 0x107febcfc in my_raw_free(void*) my_malloc.cc:269
    facebook#2 0x107feba48 in my_free(void*) my_malloc.cc:141
    facebook#3 0x103cb9828 in free_latency_histogram_sysvars(SHOW_VAR*) mysqld.cc:4668
    facebook#4 0x17c6231e8 in ReplSemiSyncMaster::~ReplSemiSyncMaster() semisync_source.cc:517
    facebook#5 0x17c623488 in ReplSemiSyncMaster::~ReplSemiSyncMaster() semisync_source.cc:516
    facebook#6 0x17c651484 in semi_sync_master_plugin_deinit(void*) semisync_source_plugin.cc:833
    facebook#7 0x10467aa90 in plugin_deinitialize(st_plugin_int*, bool) sql_plugin.cc:1123
    facebook#8 0x1046730b0 in reap_plugins() sql_plugin.cc:1192
    facebook#9 0x1046863b4 in mysql_uninstall_plugin(THD*, MYSQL_LEX_CSTRING) sql_plugin.cc:2602
    facebook#10 0x104685374 in Sql_cmd_uninstall_plugin::execute(THD*) sql_plugin.cc:3731
    facebook#11 0x1045cea6c in mysql_execute_command(THD*, bool, unsigned long long*) sql_parse.cc:5323
    facebook#12 0x1045c5dcc in dispatch_sql_command(THD*, Parser_state*, unsigned long long*) sql_parse.cc:6093
    facebook#13 0x1045bb92c in dispatch_command(THD*, COM_DATA const*, enum_server_command) sql_parse.cc:2444
    facebook#14 0x1045c06f8 in do_command(THD*) sql_parse.cc:1636
    facebook#15 0x104cc4cc4 in handle_connection(void*) connection_handler_per_thread.cc:307
    facebook#16 0x10bd130d4 in pfs_spawn_thread(void*) pfs.cc:2983
    facebook#17 0x18ad47fa4 in _pthread_start+0x90 (libsystem_pthread.dylib:arm64e+0x6fa4)
    facebook#18 0x18ad42d9c in thread_start+0x4 (libsystem_pthread.dylib:arm64e+0x1d9c)
```

It seems that the double invocation of `free_latency_histogram_sysvars` is
correct in this case, thus protect against the double free with resetting the
pointers to nullptr.

Pull Request resolved: facebook#1290

Reviewed By: sunshine-Chun

Differential Revision: D45277600

Pulled By: hermanlee
inikep pushed a commit to inikep/mysql-5.6 that referenced this issue May 9, 2024
Summary:
add histogram for rpl_semi_sync_master_trx_wait.

8.0 porting notes: Keeps the same histogram status variables as before
since these are already being read by various applications. We should
eventually remove this.

Reference Patch: facebook@d1a1394
Reference Patch: facebook@15333b2e6f9

Differential Revision: D21832889

----------------------------------------------------------------------

Fix semi_sync histogram reporting

Summary:
Fix a porting bug with semi_sync histograms.

Reviewed By: george-reynya

Differential Revision: D40964563



----------------------------------------------------------------------

Semisync histogram double free (facebook#1290)

Summary:
Avoid double free on latency histogram data

Before this fix, rpl.rpl_semi_sync_alias test under ASan with

```
=================================================================
==65389==ERROR: AddressSanitizer: heap-use-after-free on address 0x0001742e17d4 at pc 0x000107febaf0 bp 0x00016ea8f710 sp 0x00016ea8f708
READ of size 4 at 0x0001742e17d4 thread T80
    #0 0x107febaec in my_free(void*) my_malloc.cc:135
    facebook#1 0x103cb9828 in free_latency_histogram_sysvars(SHOW_VAR*) mysqld.cc:4668
    facebook#2 0x103cb99bc in prepare_latency_histogram_vars(latency_histogram*, SHOW_VAR*, unsigned long long*) mysqld.cc:4692
    facebook#3 0x17c65826c in rpl_semi_sync_master_trx_wait_histogram(THD*, SHOW_VAR*, char*) semisync_source_plugin.cc:581
    facebook#4 0x10be1b4cc in PFS_status_variable_cache::manifest(THD*, SHOW_VAR const*, System_status_var*, char const*, bool, bool) pfs_variable.cc:1366
    facebook#5 0x10be1ba90 in PFS_status_variable_cache::do_materialize_all(THD*) pfs_variable.cc:1172
    facebook#6 0x10c0ab33c in PFS_variable_cache<Status_variable>::materialize_all(THD*) pfs_variable.h:536
    facebook#7 0x10c0ab294 in table_session_status::rnd_init(bool) table_session_status.cc:111
    facebook#8 0x10bceb790 in ha_perfschema::rnd_init(bool) ha_perfschema.cc:1686
    facebook#9 0x1033c7cec in handler::ha_rnd_init(bool) handler.cc:3157
    facebook#10 0x103975380 in TableScanIterator::Init() basic_row_iterators.cc:230
    facebook#11 0x103a33a18 in FilterIterator::Init() composite_iterators.h:82
    facebook#12 0x103982ec0 in MaterializeIterator::MaterializeQueryBlock(MaterializeIterator::QueryBlock const&, unsigned long long*) composite_iterators.cc:845
    facebook#13 0x103981410 in MaterializeIterator::Init() composite_iterators.cc:660
    facebook#14 0x1049fc518 in Query_expression::ExecuteIteratorQuery(THD*) sql_union.cc:1293
    facebook#15 0x1049fd358 in Query_expression::execute(THD*) sql_union.cc:1355
    facebook#16 0x1047ae7ac in Sql_cmd_dml::execute_inner(THD*) sql_select.cc:870
    facebook#17 0x1047ac344 in Sql_cmd_dml::execute(THD*) sql_select.cc:618
    facebook#18 0x1047ffcc8 in Sql_cmd_show::execute(THD*) sql_show.cc:232
    facebook#19 0x10480ab58 in Sql_cmd_show_status::execute(THD*) sql_show.cc:894
    facebook#20 0x1045cea6c in mysql_execute_command(THD*, bool, unsigned long long*) sql_parse.cc:5323
    facebook#21 0x1045c5dcc in dispatch_sql_command(THD*, Parser_state*, unsigned long long*) sql_parse.cc:6093
    facebook#22 0x1045bb92c in dispatch_command(THD*, COM_DATA const*, enum_server_command) sql_parse.cc:2444
    facebook#23 0x1045c06f8 in do_command(THD*) sql_parse.cc:1636
    facebook#24 0x104cc4cc4 in handle_connection(void*) connection_handler_per_thread.cc:307
    facebook#25 0x10bd130d4 in pfs_spawn_thread(void*) pfs.cc:2983
    facebook#26 0x18ad47fa4 in _pthread_start+0x90 (libsystem_pthread.dylib:arm64e+0x6fa4)
    facebook#27 0x18ad42d9c in thread_start+0x4 (libsystem_pthread.dylib:arm64e+0x1d9c)

0x0001742e17d4 is located 4 bytes inside of 40-byte region [0x0001742e17d0,0x0001742e17f8)
freed by thread T80 here:
    #0 0x139ff6de4 in wrap_free+0x98 (libclang_rt.asan_osx_dynamic.dylib:arm64e+0x3ede4)
    facebook#1 0x107febcfc in my_raw_free(void*) my_malloc.cc:269
    facebook#2 0x107feba48 in my_free(void*) my_malloc.cc:141
    facebook#3 0x103cb9828 in free_latency_histogram_sysvars(SHOW_VAR*) mysqld.cc:4668
    facebook#4 0x17c6231e8 in ReplSemiSyncMaster::~ReplSemiSyncMaster() semisync_source.cc:517
    facebook#5 0x17c623488 in ReplSemiSyncMaster::~ReplSemiSyncMaster() semisync_source.cc:516
    facebook#6 0x17c651484 in semi_sync_master_plugin_deinit(void*) semisync_source_plugin.cc:833
    facebook#7 0x10467aa90 in plugin_deinitialize(st_plugin_int*, bool) sql_plugin.cc:1123
    facebook#8 0x1046730b0 in reap_plugins() sql_plugin.cc:1192
    facebook#9 0x1046863b4 in mysql_uninstall_plugin(THD*, MYSQL_LEX_CSTRING) sql_plugin.cc:2602
    facebook#10 0x104685374 in Sql_cmd_uninstall_plugin::execute(THD*) sql_plugin.cc:3731
    facebook#11 0x1045cea6c in mysql_execute_command(THD*, bool, unsigned long long*) sql_parse.cc:5323
    facebook#12 0x1045c5dcc in dispatch_sql_command(THD*, Parser_state*, unsigned long long*) sql_parse.cc:6093
    facebook#13 0x1045bb92c in dispatch_command(THD*, COM_DATA const*, enum_server_command) sql_parse.cc:2444
    facebook#14 0x1045c06f8 in do_command(THD*) sql_parse.cc:1636
    facebook#15 0x104cc4cc4 in handle_connection(void*) connection_handler_per_thread.cc:307
    facebook#16 0x10bd130d4 in pfs_spawn_thread(void*) pfs.cc:2983
    facebook#17 0x18ad47fa4 in _pthread_start+0x90 (libsystem_pthread.dylib:arm64e+0x6fa4)
    facebook#18 0x18ad42d9c in thread_start+0x4 (libsystem_pthread.dylib:arm64e+0x1d9c)
```

It seems that the double invocation of `free_latency_histogram_sysvars` is
correct in this case, thus protect against the double free with resetting the
pointers to nullptr.

Pull Request resolved: facebook#1290

Reviewed By: sunshine-Chun

Differential Revision: D45277600

Pulled By: hermanlee
inikep pushed a commit to inikep/mysql-5.6 that referenced this issue May 10, 2024
Summary:
add histogram for rpl_semi_sync_master_trx_wait.

8.0 porting notes: Keeps the same histogram status variables as before
since these are already being read by various applications. We should
eventually remove this.

Reference Patch: facebook@d1a1394
Reference Patch: facebook@15333b2e6f9

Differential Revision: D21832889

----------------------------------------------------------------------

Fix semi_sync histogram reporting

Summary:
Fix a porting bug with semi_sync histograms.

Reviewed By: george-reynya

Differential Revision: D40964563



----------------------------------------------------------------------

Semisync histogram double free (facebook#1290)

Summary:
Avoid double free on latency histogram data

Before this fix, rpl.rpl_semi_sync_alias test under ASan with

```
=================================================================
==65389==ERROR: AddressSanitizer: heap-use-after-free on address 0x0001742e17d4 at pc 0x000107febaf0 bp 0x00016ea8f710 sp 0x00016ea8f708
READ of size 4 at 0x0001742e17d4 thread T80
    #0 0x107febaec in my_free(void*) my_malloc.cc:135
    facebook#1 0x103cb9828 in free_latency_histogram_sysvars(SHOW_VAR*) mysqld.cc:4668
    facebook#2 0x103cb99bc in prepare_latency_histogram_vars(latency_histogram*, SHOW_VAR*, unsigned long long*) mysqld.cc:4692
    facebook#3 0x17c65826c in rpl_semi_sync_master_trx_wait_histogram(THD*, SHOW_VAR*, char*) semisync_source_plugin.cc:581
    facebook#4 0x10be1b4cc in PFS_status_variable_cache::manifest(THD*, SHOW_VAR const*, System_status_var*, char const*, bool, bool) pfs_variable.cc:1366
    facebook#5 0x10be1ba90 in PFS_status_variable_cache::do_materialize_all(THD*) pfs_variable.cc:1172
    facebook#6 0x10c0ab33c in PFS_variable_cache<Status_variable>::materialize_all(THD*) pfs_variable.h:536
    facebook#7 0x10c0ab294 in table_session_status::rnd_init(bool) table_session_status.cc:111
    facebook#8 0x10bceb790 in ha_perfschema::rnd_init(bool) ha_perfschema.cc:1686
    facebook#9 0x1033c7cec in handler::ha_rnd_init(bool) handler.cc:3157
    facebook#10 0x103975380 in TableScanIterator::Init() basic_row_iterators.cc:230
    facebook#11 0x103a33a18 in FilterIterator::Init() composite_iterators.h:82
    facebook#12 0x103982ec0 in MaterializeIterator::MaterializeQueryBlock(MaterializeIterator::QueryBlock const&, unsigned long long*) composite_iterators.cc:845
    facebook#13 0x103981410 in MaterializeIterator::Init() composite_iterators.cc:660
    facebook#14 0x1049fc518 in Query_expression::ExecuteIteratorQuery(THD*) sql_union.cc:1293
    facebook#15 0x1049fd358 in Query_expression::execute(THD*) sql_union.cc:1355
    facebook#16 0x1047ae7ac in Sql_cmd_dml::execute_inner(THD*) sql_select.cc:870
    facebook#17 0x1047ac344 in Sql_cmd_dml::execute(THD*) sql_select.cc:618
    facebook#18 0x1047ffcc8 in Sql_cmd_show::execute(THD*) sql_show.cc:232
    facebook#19 0x10480ab58 in Sql_cmd_show_status::execute(THD*) sql_show.cc:894
    facebook#20 0x1045cea6c in mysql_execute_command(THD*, bool, unsigned long long*) sql_parse.cc:5323
    facebook#21 0x1045c5dcc in dispatch_sql_command(THD*, Parser_state*, unsigned long long*) sql_parse.cc:6093
    facebook#22 0x1045bb92c in dispatch_command(THD*, COM_DATA const*, enum_server_command) sql_parse.cc:2444
    facebook#23 0x1045c06f8 in do_command(THD*) sql_parse.cc:1636
    facebook#24 0x104cc4cc4 in handle_connection(void*) connection_handler_per_thread.cc:307
    facebook#25 0x10bd130d4 in pfs_spawn_thread(void*) pfs.cc:2983
    facebook#26 0x18ad47fa4 in _pthread_start+0x90 (libsystem_pthread.dylib:arm64e+0x6fa4)
    facebook#27 0x18ad42d9c in thread_start+0x4 (libsystem_pthread.dylib:arm64e+0x1d9c)

0x0001742e17d4 is located 4 bytes inside of 40-byte region [0x0001742e17d0,0x0001742e17f8)
freed by thread T80 here:
    #0 0x139ff6de4 in wrap_free+0x98 (libclang_rt.asan_osx_dynamic.dylib:arm64e+0x3ede4)
    facebook#1 0x107febcfc in my_raw_free(void*) my_malloc.cc:269
    facebook#2 0x107feba48 in my_free(void*) my_malloc.cc:141
    facebook#3 0x103cb9828 in free_latency_histogram_sysvars(SHOW_VAR*) mysqld.cc:4668
    facebook#4 0x17c6231e8 in ReplSemiSyncMaster::~ReplSemiSyncMaster() semisync_source.cc:517
    facebook#5 0x17c623488 in ReplSemiSyncMaster::~ReplSemiSyncMaster() semisync_source.cc:516
    facebook#6 0x17c651484 in semi_sync_master_plugin_deinit(void*) semisync_source_plugin.cc:833
    facebook#7 0x10467aa90 in plugin_deinitialize(st_plugin_int*, bool) sql_plugin.cc:1123
    facebook#8 0x1046730b0 in reap_plugins() sql_plugin.cc:1192
    facebook#9 0x1046863b4 in mysql_uninstall_plugin(THD*, MYSQL_LEX_CSTRING) sql_plugin.cc:2602
    facebook#10 0x104685374 in Sql_cmd_uninstall_plugin::execute(THD*) sql_plugin.cc:3731
    facebook#11 0x1045cea6c in mysql_execute_command(THD*, bool, unsigned long long*) sql_parse.cc:5323
    facebook#12 0x1045c5dcc in dispatch_sql_command(THD*, Parser_state*, unsigned long long*) sql_parse.cc:6093
    facebook#13 0x1045bb92c in dispatch_command(THD*, COM_DATA const*, enum_server_command) sql_parse.cc:2444
    facebook#14 0x1045c06f8 in do_command(THD*) sql_parse.cc:1636
    facebook#15 0x104cc4cc4 in handle_connection(void*) connection_handler_per_thread.cc:307
    facebook#16 0x10bd130d4 in pfs_spawn_thread(void*) pfs.cc:2983
    facebook#17 0x18ad47fa4 in _pthread_start+0x90 (libsystem_pthread.dylib:arm64e+0x6fa4)
    facebook#18 0x18ad42d9c in thread_start+0x4 (libsystem_pthread.dylib:arm64e+0x1d9c)
```

It seems that the double invocation of `free_latency_histogram_sysvars` is
correct in this case, thus protect against the double free with resetting the
pointers to nullptr.

Pull Request resolved: facebook#1290

Reviewed By: sunshine-Chun

Differential Revision: D45277600

Pulled By: hermanlee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants