vengi icon indicating copy to clipboard operation
vengi copied to clipboard

CMAKE: build fails if sanitizers detect errors in the code generators

Open mgerhardy opened this issue 2 years ago • 1 comments

[1/702] Validate color
FAILED: generated/shaders/render/ColorShader.h.in generated/shaders/render/ColorShader.cpp.in generated/shaders/render/ColorShaderConstants.h.in /home/gerhardym/Dev/engine/build/Debug/generated/shaders/render/ColorShader.h.in /home/gerhardym/Dev/engine/build/Debug/generated/shaders/render/ColorShader.cpp.in /home/gerhardym/Dev/engine/build/Debug/generated/shaders/render/ColorShaderConstants.h.in 
cd /home/gerhardym/Dev/engine/build/Debug/src/modules/render && /usr/bin/cmake -E env APP_HOMEPATH=/home/gerhardym/Dev/engine/build/Debug/src/modules/render/ /home/gerhardym/Dev/engine/build/Debug/shadertool/vengi-shadertool --glslang /home/gerhardym/Dev/engine/build/Debug/glslangValidator -I /home/gerhardym/Dev/engine/src/modules/render/shaders -I /home/gerhardym/Dev/engine/src/modules/video/shaders -I /home/gerhardym/Dev/engine/src/modules/noise/shaders -I /home/gerhardym/Dev/engine/src/modules/compute/shaders --postfix .in --shader /home/gerhardym/Dev/engine/src/modules/render/shaders/color --constantstemplate /home/gerhardym/Dev/engine/src/tools/shadertool/ShaderConstantsTemplate.h.in --headertemplate /home/gerhardym/Dev/engine/src/tools/shadertool/ShaderTemplate.h.in --sourcetemplate /home/gerhardym/Dev/engine/src/tools/shadertool/ShaderTemplate.cpp.in --buffertemplate /home/gerhardym/Dev/engine/src/tools/shadertool/UniformBufferTemplate.h.in --sourcedir /home/gerhardym/Dev/engine/build/Debug/generated/shaders/render/

=================================================================
==81625==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 920 byte(s) in 5 object(s) allocated from:
    #0 0x7fc0dc862459 in __interceptor_calloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:154
    #1 0x7fc0d1a71ea8  (<unknown module>)

Direct leak of 520 byte(s) in 13 object(s) allocated from:
    #0 0x7fc0dc862279 in __interceptor_malloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:145
    #1 0x7fc0d1a8c492  (<unknown module>)

Direct leak of 96 byte(s) in 3 object(s) allocated from:
    #0 0x7fc0dc862279 in __interceptor_malloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:145
    #1 0x7fc0d1a83ca1  (<unknown module>)

Direct leak of 24 byte(s) in 1 object(s) allocated from:
    #0 0x7fc0dc862279 in __interceptor_malloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:145
    #1 0x7fc0d1a85ad2  (<unknown module>)

Indirect leak of 1198 byte(s) in 7 object(s) allocated from:
    #0 0x7fc0dc862652 in __interceptor_realloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:164
    #1 0x7fc0d1a85f25  (<unknown module>)

Indirect leak of 120 byte(s) in 3 object(s) allocated from:
    #0 0x7fc0dc862279 in __interceptor_malloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:145
    #1 0x7fc0d1a86144  (<unknown module>)

Indirect leak of 24 byte(s) in 1 object(s) allocated from:
    #0 0x7fc0dc862279 in __interceptor_malloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:145
    #1 0x7fc0d1a85ad2  (<unknown module>)

Indirect leak of 24 byte(s) in 1 object(s) allocated from:
    #0 0x7fc0dc862279 in __interceptor_malloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:145
    #1 0x7fc0d1a85b26  (<unknown module>)

SUMMARY: AddressSanitizer: 2926 byte(s) leaked in 34 allocation(s).
[2/702] Validate color_instanced
FAILED: generated/shaders/render/ColorInstancedShader.h.in generated/shaders/render/ColorInstancedShader.cpp.in generated/shaders/render/ColorInstancedShaderConstants.h.in /home/gerhardym/Dev/engine/build/Debug/generated/shaders/render/ColorInstancedShader.h.in /home/gerhardym/Dev/engine/build/Debug/generated/shaders/render/ColorInstancedShader.cpp.in /home/gerhardym/Dev/engine/build/Debug/generated/shaders/render/ColorInstancedShaderConstants.h.in 
cd /home/gerhardym/Dev/engine/build/Debug/src/modules/render && /usr/bin/cmake -E env APP_HOMEPATH=/home/gerhardym/Dev/engine/build/Debug/src/modules/render/ /home/gerhardym/Dev/engine/build/Debug/shadertool/vengi-shadertool --glslang /home/gerhardym/Dev/engine/build/Debug/glslangValidator -I /home/gerhardym/Dev/engine/src/modules/render/shaders -I /home/gerhardym/Dev/engine/src/modules/video/shaders -I /home/gerhardym/Dev/engine/src/modules/noise/shaders -I /home/gerhardym/Dev/engine/src/modules/compute/shaders --postfix .in --shader /home/gerhardym/Dev/engine/src/modules/render/shaders/color_instanced --constantstemplate /home/gerhardym/Dev/engine/src/tools/shadertool/ShaderConstantsTemplate.h.in --headertemplate /home/gerhardym/Dev/engine/src/tools/shadertool/ShaderTemplate.h.in --sourcetemplate /home/gerhardym/Dev/engine/src/tools/shadertool/ShaderTemplate.cpp.in --buffertemplate /home/gerhardym/Dev/engine/src/tools/shadertool/UniformBufferTemplate.h.in --sourcedir /home/gerhardym/Dev/engine/build/Debug/generated/shaders/render/

=================================================================
==81623==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 920 byte(s) in 5 object(s) allocated from:
    #0 0x7f707a1ad459 in __interceptor_calloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:154
    #1 0x7f706f3f9ea8  (<unknown module>)

Direct leak of 520 byte(s) in 13 object(s) allocated from:
    #0 0x7f707a1ad279 in __interceptor_malloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:145
    #1 0x7f706f414492  (<unknown module>)

Direct leak of 96 byte(s) in 3 object(s) allocated from:
    #0 0x7f707a1ad279 in __interceptor_malloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:145
    #1 0x7f706f40bca1  (<unknown module>)

Direct leak of 24 byte(s) in 1 object(s) allocated from:
    #0 0x7f707a1ad279 in __interceptor_malloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:145
    #1 0x7f706f40dad2  (<unknown module>)

Indirect leak of 1198 byte(s) in 7 object(s) allocated from:
    #0 0x7f707a1ad652 in __interceptor_realloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:164
    #1 0x7f706f40df25  (<unknown module>)

Indirect leak of 120 byte(s) in 3 object(s) allocated from:
    #0 0x7f707a1ad279 in __interceptor_malloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:145
    #1 0x7f706f40e144  (<unknown module>)

Indirect leak of 24 byte(s) in 1 object(s) allocated from:
    #0 0x7f707a1ad279 in __interceptor_malloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:145
    #1 0x7f706f40dad2  (<unknown module>)

Indirect leak of 24 byte(s) in 1 object(s) allocated from:
    #0 0x7f707a1ad279 in __interceptor_malloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:145
    #1 0x7f706f40db26  (<unknown module>)

SUMMARY: AddressSanitizer: 2926 byte(s) leaked in 34 allocation(s).
[3/702] Validate depthbuffer_render
FAILED: generated/shaders/render/DepthbufferRenderShader.h.in generated/shaders/render/DepthbufferRenderShader.cpp.in generated/shaders/render/DepthbufferRenderShaderConstants.h.in /home/gerhardym/Dev/engine/build/Debug/generated/shaders/render/DepthbufferRenderShader.h.in /home/gerhardym/Dev/engine/build/Debug/generated/shaders/render/DepthbufferRenderShader.cpp.in /home/gerhardym/Dev/engine/build/Debug/generated/shaders/render/DepthbufferRenderShaderConstants.h.in 
cd /home/gerhardym/Dev/engine/build/Debug/src/modules/render && /usr/bin/cmake -E env APP_HOMEPATH=/home/gerhardym/Dev/engine/build/Debug/src/modules/render/ /home/gerhardym/Dev/engine/build/Debug/shadertool/vengi-shadertool --glslang /home/gerhardym/Dev/engine/build/Debug/glslangValidator -I /home/gerhardym/Dev/engine/src/modules/render/shaders -I /home/gerhardym/Dev/engine/src/modules/video/shaders -I /home/gerhardym/Dev/engine/src/modules/noise/shaders -I /home/gerhardym/Dev/engine/src/modules/compute/shaders --postfix .in --shader /home/gerhardym/Dev/engine/src/modules/render/shaders/depthbuffer_render --constantstemplate /home/gerhardym/Dev/engine/src/tools/shadertool/ShaderConstantsTemplate.h.in --headertemplate /home/gerhardym/Dev/engine/src/tools/shadertool/ShaderTemplate.h.in --sourcetemplate /home/gerhardym/Dev/engine/src/tools/shadertool/ShaderTemplate.cpp.in --buffertemplate /home/gerhardym/Dev/engine/src/tools/shadertool/UniformBufferTemplate.h.in --sourcedir /home/gerhardym/Dev/engine/build/Debug/generated/shaders/render/

=================================================================
==81628==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 920 byte(s) in 5 object(s) allocated from:
    #0 0x7fa1b7f90459 in __interceptor_calloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:154
    #1 0x7fa1ad1d6ea8  (<unknown module>)

Direct leak of 520 byte(s) in 13 object(s) allocated from:
    #0 0x7fa1b7f90279 in __interceptor_malloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:145
    #1 0x7fa1ad1f1492  (<unknown module>)

Direct leak of 96 byte(s) in 3 object(s) allocated from:
    #0 0x7fa1b7f90279 in __interceptor_malloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:145
    #1 0x7fa1ad1e8ca1  (<unknown module>)

Direct leak of 24 byte(s) in 1 object(s) allocated from:
    #0 0x7fa1b7f90279 in __interceptor_malloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:145
    #1 0x7fa1ad1eaad2  (<unknown module>)

Indirect leak of 1198 byte(s) in 7 object(s) allocated from:
    #0 0x7fa1b7f90652 in __interceptor_realloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:164
    #1 0x7fa1ad1eaf25  (<unknown module>)

Indirect leak of 120 byte(s) in 3 object(s) allocated from:
    #0 0x7fa1b7f90279 in __interceptor_malloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:145
    #1 0x7fa1ad1eb144  (<unknown module>)

Indirect leak of 24 byte(s) in 1 object(s) allocated from:
    #0 0x7fa1b7f90279 in __interceptor_malloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:145
    #1 0x7fa1ad1eaad2  (<unknown module>)

Indirect leak of 24 byte(s) in 1 object(s) allocated from:
    #0 0x7fa1b7f90279 in __interceptor_malloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:145
    #1 0x7fa1ad1eab26  (<unknown module>)

SUMMARY: AddressSanitizer: 2926 byte(s) leaked in 34 allocation(s).
[4/702] Validate skybox
FAILED: generated/shaders/render/SkyboxShader.h.in generated/shaders/render/SkyboxShader.cpp.in generated/shaders/render/SkyboxShaderConstants.h.in /home/gerhardym/Dev/engine/build/Debug/generated/shaders/render/SkyboxShader.h.in /home/gerhardym/Dev/engine/build/Debug/generated/shaders/render/SkyboxShader.cpp.in /home/gerhardym/Dev/engine/build/Debug/generated/shaders/render/SkyboxShaderConstants.h.in 
cd /home/gerhardym/Dev/engine/build/Debug/src/modules/render && /usr/bin/cmake -E env APP_HOMEPATH=/home/gerhardym/Dev/engine/build/Debug/src/modules/render/ /home/gerhardym/Dev/engine/build/Debug/shadertool/vengi-shadertool --glslang /home/gerhardym/Dev/engine/build/Debug/glslangValidator -I /home/gerhardym/Dev/engine/src/modules/render/shaders -I /home/gerhardym/Dev/engine/src/modules/video/shaders -I /home/gerhardym/Dev/engine/src/modules/noise/shaders -I /home/gerhardym/Dev/engine/src/modules/compute/shaders --postfix .in --shader /home/gerhardym/Dev/engine/src/modules/render/shaders/skybox --constantstemplate /home/gerhardym/Dev/engine/src/tools/shadertool/ShaderConstantsTemplate.h.in --headertemplate /home/gerhardym/Dev/engine/src/tools/shadertool/ShaderTemplate.h.in --sourcetemplate /home/gerhardym/Dev/engine/src/tools/shadertool/ShaderTemplate.cpp.in --buffertemplate /home/gerhardym/Dev/engine/src/tools/shadertool/UniformBufferTemplate.h.in --sourcedir /home/gerhardym/Dev/engine/build/Debug/generated/shaders/render/

=================================================================
==81624==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 920 byte(s) in 5 object(s) allocated from:
    #0 0x7f23e6c93459 in __interceptor_calloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:154
    #1 0x7f23dbee4ea8  (<unknown module>)

Direct leak of 520 byte(s) in 13 object(s) allocated from:
    #0 0x7f23e6c93279 in __interceptor_malloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:145
    #1 0x7f23dbeff492  (<unknown module>)

Direct leak of 96 byte(s) in 3 object(s) allocated from:
    #0 0x7f23e6c93279 in __interceptor_malloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:145
    #1 0x7f23dbef6ca1  (<unknown module>)

Direct leak of 24 byte(s) in 1 object(s) allocated from:
    #0 0x7f23e6c93279 in __interceptor_malloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:145
    #1 0x7f23dbef8ad2  (<unknown module>)

Indirect leak of 1198 byte(s) in 7 object(s) allocated from:
    #0 0x7f23e6c93652 in __interceptor_realloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:164
    #1 0x7f23dbef8f25  (<unknown module>)

Indirect leak of 120 byte(s) in 3 object(s) allocated from:
    #0 0x7f23e6c93279 in __interceptor_malloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:145
    #1 0x7f23dbef9144  (<unknown module>)

Indirect leak of 24 byte(s) in 1 object(s) allocated from:
    #0 0x7f23e6c93279 in __interceptor_malloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:145
    #1 0x7f23dbef8ad2  (<unknown module>)

Indirect leak of 24 byte(s) in 1 object(s) allocated from:
    #0 0x7f23e6c93279 in __interceptor_malloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:145
    #1 0x7f23dbef8b26  (<unknown module>)

SUMMARY: AddressSanitizer: 2926 byte(s) leaked in 34 allocation(s).
[5/702] Validate constants
FAILED: generated/shaders/render/ConstantsShader.h.in generated/shaders/render/ConstantsShader.cpp.in generated/shaders/render/ConstantsShaderConstants.h.in /home/gerhardym/Dev/engine/build/Debug/generated/shaders/render/ConstantsShader.h.in /home/gerhardym/Dev/engine/build/Debug/generated/shaders/render/ConstantsShader.cpp.in /home/gerhardym/Dev/engine/build/Debug/generated/shaders/render/ConstantsShaderConstants.h.in 
cd /home/gerhardym/Dev/engine/build/Debug/src/modules/render && /usr/bin/cmake -E env APP_HOMEPATH=/home/gerhardym/Dev/engine/build/Debug/src/modules/render/ /home/gerhardym/Dev/engine/build/Debug/shadertool/vengi-shadertool --glslang /home/gerhardym/Dev/engine/build/Debug/glslangValidator -I /home/gerhardym/Dev/engine/src/modules/render/shaders -I /home/gerhardym/Dev/engine/src/modules/video/shaders -I /home/gerhardym/Dev/engine/src/modules/noise/shaders -I /home/gerhardym/Dev/engine/src/modules/compute/shaders --postfix .in --shader /home/gerhardym/Dev/engine/src/modules/render/shaders/constants --constantstemplate /home/gerhardym/Dev/engine/src/tools/shadertool/ShaderConstantsTemplate.h.in --headertemplate /home/gerhardym/Dev/engine/src/tools/shadertool/ShaderTemplate.h.in --sourcetemplate /home/gerhardym/Dev/engine/src/tools/shadertool/ShaderTemplate.cpp.in --buffertemplate /home/gerhardym/Dev/engine/src/tools/shadertool/UniformBufferTemplate.h.in --sourcedir /home/gerhardym/Dev/engine/build/Debug/generated/shaders/render/

=================================================================
==81626==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 920 byte(s) in 5 object(s) allocated from:
    #0 0x7f6da01ec459 in __interceptor_calloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:154
    #1 0x7f6d95407ea8  (<unknown module>)

Direct leak of 520 byte(s) in 13 object(s) allocated from:
    #0 0x7f6da01ec279 in __interceptor_malloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:145
    #1 0x7f6d95422492  (<unknown module>)

Direct leak of 96 byte(s) in 3 object(s) allocated from:
    #0 0x7f6da01ec279 in __interceptor_malloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:145
    #1 0x7f6d95419ca1  (<unknown module>)

Direct leak of 24 byte(s) in 1 object(s) allocated from:
    #0 0x7f6da01ec279 in __interceptor_malloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:145
    #1 0x7f6d9541bad2  (<unknown module>)

Indirect leak of 1198 byte(s) in 7 object(s) allocated from:
    #0 0x7f6da01ec652 in __interceptor_realloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:164
    #1 0x7f6d9541bf25  (<unknown module>)

Indirect leak of 120 byte(s) in 3 object(s) allocated from:
    #0 0x7f6da01ec279 in __interceptor_malloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:145
    #1 0x7f6d9541c144  (<unknown module>)

Indirect leak of 24 byte(s) in 1 object(s) allocated from:
    #0 0x7f6da01ec279 in __interceptor_malloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:145
    #1 0x7f6d9541bad2  (<unknown module>)

Indirect leak of 24 byte(s) in 1 object(s) allocated from:
    #0 0x7f6da01ec279 in __interceptor_malloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:145
    #1 0x7f6d9541bb26  (<unknown module>)

SUMMARY: AddressSanitizer: 2926 byte(s) leaked in 34 allocation(s).
[6/702] Validate edge
FAILED: generated/shaders/render/EdgeShader.h.in generated/shaders/render/EdgeShader.cpp.in generated/shaders/render/EdgeShaderConstants.h.in /home/gerhardym/Dev/engine/build/Debug/generated/shaders/render/EdgeShader.h.in /home/gerhardym/Dev/engine/build/Debug/generated/shaders/render/EdgeShader.cpp.in /home/gerhardym/Dev/engine/build/Debug/generated/shaders/render/EdgeShaderConstants.h.in 
cd /home/gerhardym/Dev/engine/build/Debug/src/modules/render && /usr/bin/cmake -E env APP_HOMEPATH=/home/gerhardym/Dev/engine/build/Debug/src/modules/render/ /home/gerhardym/Dev/engine/build/Debug/shadertool/vengi-shadertool --glslang /home/gerhardym/Dev/engine/build/Debug/glslangValidator -I /home/gerhardym/Dev/engine/src/modules/render/shaders -I /home/gerhardym/Dev/engine/src/modules/video/shaders -I /home/gerhardym/Dev/engine/src/modules/noise/shaders -I /home/gerhardym/Dev/engine/src/modules/compute/shaders --postfix .in --shader /home/gerhardym/Dev/engine/src/modules/render/shaders/edge --constantstemplate /home/gerhardym/Dev/engine/src/tools/shadertool/ShaderConstantsTemplate.h.in --headertemplate /home/gerhardym/Dev/engine/src/tools/shadertool/ShaderTemplate.h.in --sourcetemplate /home/gerhardym/Dev/engine/src/tools/shadertool/ShaderTemplate.cpp.in --buffertemplate /home/gerhardym/Dev/engine/src/tools/shadertool/UniformBufferTemplate.h.in --sourcedir /home/gerhardym/Dev/engine/build/Debug/generated/shaders/render/

=================================================================
==81629==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 920 byte(s) in 5 object(s) allocated from:
    #0 0x7fe0a6609459 in __interceptor_calloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:154
    #1 0x7fe09b807ea8  (<unknown module>)

Direct leak of 520 byte(s) in 13 object(s) allocated from:
    #0 0x7fe0a6609279 in __interceptor_malloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:145
    #1 0x7fe09b822492  (<unknown module>)

Direct leak of 96 byte(s) in 3 object(s) allocated from:
    #0 0x7fe0a6609279 in __interceptor_malloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:145
    #1 0x7fe09b819ca1  (<unknown module>)

Direct leak of 24 byte(s) in 1 object(s) allocated from:
    #0 0x7fe0a6609279 in __interceptor_malloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:145
    #1 0x7fe09b81bad2  (<unknown module>)

Indirect leak of 1198 byte(s) in 7 object(s) allocated from:
    #0 0x7fe0a6609652 in __interceptor_realloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:164
    #1 0x7fe09b81bf25  (<unknown module>)

Indirect leak of 120 byte(s) in 3 object(s) allocated from:
    #0 0x7fe0a6609279 in __interceptor_malloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:145
    #1 0x7fe09b81c144  (<unknown module>)

Indirect leak of 24 byte(s) in 1 object(s) allocated from:
    #0 0x7fe0a6609279 in __interceptor_malloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:145
    #1 0x7fe09b81bad2  (<unknown module>)

Indirect leak of 24 byte(s) in 1 object(s) allocated from:
    #0 0x7fe0a6609279 in __interceptor_malloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:145
    #1 0x7fe09b81bb26  (<unknown module>)

SUMMARY: AddressSanitizer: 2926 byte(s) leaked in 34 allocation(s).
ninja: build stopped: subcommand failed.

mgerhardy avatar Dec 22 '21 15:12 mgerhardy

gcc (GCC) 11.1.0 clang version 13.0.0

mgerhardy avatar Dec 22 '21 15:12 mgerhardy

[ 28%] Linking CXX executable ../../../tests-io/vengi-tests-io
[ 28%] Built target tests-core
[ 28%] Generate TestModels.h
WARN: (0) Failed to initialize the filesystem state
[ 28%] Built target tests-io
[ 28%] Building CXX object src/tools/aidebug/CMakeFiles/tests-aidebug.dir/tests-aidebug_main.cpp.o

=================================================================
==1998==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 520 byte(s) in 13 object(s) allocated from:
    #0 0x7f8e076c15df in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.8+0xc15df)
    #1 0x7f8e0648518b  (/run/build/vengi/databasetool/vengi-databasetool+0x9fe18b)
    #2 0x7f8e064779d4  (<unknown module>)
    #3 0x7f8e07ddb4cb in SDL_DBus_Init_Spinlocked (/usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0+0x1214cb)
    #4 0x7f8e07ddbb20 in SDL_DBus_Init (/usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0+0x121b20)
    #5 0x7f8e07ce7d27 in SDL_InitSubSystem_REAL.part.0 (/usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0+0x2dd27)
    #6 0x5579192a1303 in app::App::onInit() /run/build/vengi/src/modules/app/App.cpp:333
    #7 0x5579192ae19e in app::App::onFrame() /run/build/vengi/src/modules/app/App.cpp:164
    #8 0x55791929ce2c in app::App::startMainLoop(int, char**) /run/build/vengi/src/modules/app/App.cpp:89
    #9 0x55791926c8da in main /run/build/vengi/src/tools/databasetool/DatabaseTool.cpp:173
    #10 0x7f8e06e29549 in __libc_start_call_main (/usr/lib/x86_64-linux-gnu/libc.so.6+0x29549)
    #11 0x7f8e06e2960a in __libc_start_main (/usr/lib/x86_64-linux-gnu/libc.so.6+0x2960a)
    #12 0x55791926e0e4 in _start (/run/build/vengi/databasetool/vengi-databasetool+0x340e4)

Direct leak of 38 byte(s) in 1 object(s) allocated from:
    #0 0x7f8e076c15df in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.8+0xc15df)
    #1 0x7f8e0647c0f3  (<unknown module>)
    #2 0x7f8e0645ba89  (<unknown module>)
    #3 0x7f8e07ddb4eb in SDL_DBus_Init_Spinlocked (/usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0+0x1214eb)
    #4 0x7f8e07ddbb20 in SDL_DBus_Init (/usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0+0x121b20)
    #5 0x7f8e07ce7d27 in SDL_InitSubSystem_REAL.part.0 (/usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0+0x2dd27)
    #6 0x5579192a1303 in app::App::onInit() /run/build/vengi/src/modules/app/App.cpp:333
    #7 0x5579192ae19e in app::App::onFrame() /run/build/vengi/src/modules/app/App.cpp:164
    #8 0x55791929ce2c in app::App::startMainLoop(int, char**) /run/build/vengi/src/modules/app/App.cpp:89
    #9 0x55791926c8da in main /run/build/vengi/src/tools/databasetool/DatabaseTool.cpp:173
    #10 0x7f8e06e29549 in __libc_start_call_main (/usr/lib/x86_64-linux-gnu/libc.so.6+0x29549)
    #11 0x7f8e06e2960a in __libc_start_main (/usr/lib/x86_64-linux-gnu/libc.so.6+0x2960a)
    #12 0x55791926e0e4 in _start (/run/build/vengi/databasetool/vengi-databasetool+0x340e4)

Direct leak of 24 byte(s) in 1 object(s) allocated from:
    #0 0x7f8e076c15df in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.8+0xc15df)
    #1 0x7f8e0647e0e1  (<unknown module>)
    #2 0x7f8e0645b81d  (<unknown module>)
    #3 0x7f8e07ddb4eb in SDL_DBus_Init_Spinlocked (/usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0+0x1214eb)
    #4 0x7f8e07ddbb20 in SDL_DBus_Init (/usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0+0x121b20)
    #5 0x7f8e07ce7d27 in SDL_InitSubSystem_REAL.part.0 (/usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0+0x2dd27)
    #6 0x5579192a1303 in app::App::onInit() /run/build/vengi/src/modules/app/App.cpp:333
    #7 0x5579192ae19e in app::App::onFrame() /run/build/vengi/src/modules/app/App.cpp:164
    #8 0x55791929ce2c in app::App::startMainLoop(int, char**) /run/build/vengi/src/modules/app/App.cpp:89
    #9 0x55791926c8da in main /run/build/vengi/src/tools/databasetool/DatabaseTool.cpp:173
    #10 0x7f8e06e29549 in __libc_start_call_main (/usr/lib/x86_64-linux-gnu/libc.so.6+0x29549)
    #11 0x7f8e06e2960a in __libc_start_main (/usr/lib/x86_64-linux-gnu/libc.so.6+0x2960a)
    #12 0x55791926e0e4 in _start (/run/build/vengi/databasetool/vengi-databasetool+0x340e4)

Direct leak of 12 byte(s) in 1 object(s) allocated from:
    #0 0x7f8e076c15df in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.8+0xc15df)
    #1 0x7f8e0647c0f3  (<unknown module>)
    #2 0x7f8e0645bb91  (<unknown module>)
    #3 0x7f8e07ddb4eb in SDL_DBus_Init_Spinlocked (/usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0+0x1214eb)
    #4 0x7f8e07ddbb20 in SDL_DBus_Init (/usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0+0x121b20)
    #5 0x7f8e07ce7d27 in SDL_InitSubSystem_REAL.part.0 (/usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0+0x2dd27)
    #6 0x5579192a1303 in app::App::onInit() /run/build/vengi/src/modules/app/App.cpp:333
    #7 0x5579192ae19e in app::App::onFrame() /run/build/vengi/src/modules/app/App.cpp:164
    #8 0x55791929ce2c in app::App::startMainLoop(int, char**) /run/build/vengi/src/modules/app/App.cpp:89
    #9 0x55791926c8da in main /run/build/vengi/src/tools/databasetool/DatabaseTool.cpp:173
    #10 0x7f8e06e29549 in __libc_start_call_main (/usr/lib/x86_64-linux-gnu/libc.so.6+0x29549)
    #11 0x7f8e06e2960a in __libc_start_main (/usr/lib/x86_64-linux-gnu/libc.so.6+0x2960a)
    #12 0x55791926e0e4 in _start (/run/build/vengi/databasetool/vengi-databasetool+0x340e4)

Direct leak of 12 byte(s) in 1 object(s) allocated from:
    #0 0x7f8e076c15df in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.8+0xc15df)
    #1 0x7f8e0647c0f3  (<unknown module>)
    #2 0x7f8e0645b9a7  (<unknown module>)
    #3 0x7f8e07ddb4eb in SDL_DBus_Init_Spinlocked (/usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0+0x1214eb)
    #4 0x7f8e07ddbb20 in SDL_DBus_Init (/usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0+0x121b20)
    #5 0x7f8e07ce7d27 in SDL_InitSubSystem_REAL.part.0 (/usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0+0x2dd27)
    #6 0x5579192a1303 in app::App::onInit() /run/build/vengi/src/modules/app/App.cpp:333
    #7 0x5579192ae19e in app::App::onFrame() /run/build/vengi/src/modules/app/App.cpp:164
    #8 0x55791929ce2c in app::App::startMainLoop(int, char**) /run/build/vengi/src/modules/app/App.cpp:89
    #9 0x55791926c8da in main /run/build/vengi/src/tools/databasetool/DatabaseTool.cpp:173
    #10 0x7f8e06e29549 in __libc_start_call_main (/usr/lib/x86_64-linux-gnu/libc.so.6+0x29549)
    #11 0x7f8e06e2960a in __libc_start_main (/usr/lib/x86_64-linux-gnu/libc.so.6+0x2960a)
    #12 0x55791926e0e4 in _start (/run/build/vengi/databasetool/vengi-databasetool+0x340e4)

Indirect leak of 24 byte(s) in 1 object(s) allocated from:
    #0 0x7f8e076c15df in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.8+0xc15df)
    #1 0x7f8e0647e13a  (<unknown module>)
    #2 0x7f8e06477a01  (<unknown module>)
    #3 0x7f8e07ddb4cb in SDL_DBus_Init_Spinlocked (/usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0+0x1214cb)
    #4 0x7f8e07ddbb20 in SDL_DBus_Init (/usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0+0x121b20)
    #5 0x7f8e07ce7d27 in SDL_InitSubSystem_REAL.part.0 (/usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0+0x2dd27)
    #6 0x5579192a1303 in app::App::onInit() /run/build/vengi/src/modules/app/App.cpp:333
    #7 0x5579192ae19e in app::App::onFrame() /run/build/vengi/src/modules/app/App.cpp:164
    #8 0x55791929ce2c in app::App::startMainLoop(int, char**) /run/build/vengi/src/modules/app/App.cpp:89
    #9 0x55791926c8da in main /run/build/vengi/src/tools/databasetool/DatabaseTool.cpp:173
    #10 0x7f8e06e29549 in __libc_start_call_main (/usr/lib/x86_64-linux-gnu/libc.so.6+0x29549)
    #11 0x7f8e06e2960a in __libc_start_main (/usr/lib/x86_64-linux-gnu/libc.so.6+0x2960a)
    #12 0x55791926e0e4 in _start (/run/build/vengi/databasetool/vengi-databasetool+0x340e4)

SUMMARY: AddressSanitizer: 630 byte(s) leaked in 18 allocation(s).
make[2]: *** [src/modules/persistence/CMakeFiles/GenerateDatabaseModelBindingstests-persistence.dir/build.make:75: generated/dbmodels/tests-persistence/TestModels.h] Error 1
make[2]: *** Deleting file 'generated/dbmodels/tests-persistence/TestModels.h'
make[1]: *** [CMakeFiles/Makefile2:9699: src/modules/persistence/CMakeFiles/GenerateDatabaseModelBindingstests-persistence.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 28%] Building CXX object src/tools/aidebug/CMakeFiles/tests-aidebug.dir/tests/AIMapTest.cpp.o
[ 28%] Building CXX object src/modules/util/CMakeFiles/tests-util.dir/tests/BufferUtilTest.cpp.o
[ 28%] Building CXX object src/modules/util/CMakeFiles/tests-util.dir/tests/ConsoleTest.cpp.o
[ 29%] Linking CXX executable ../../../tests-commonlua/vengi-tests-commonlua
[ 29%] Built target tests-commonlua
[ 29%] Building CXX object src/modules/util/CMakeFiles/tests-util.dir/tests/EMailValidatorTest.cpp.o
[ 29%] Building CXX object src/modules/math/CMakeFiles/tests-math.dir/tests/QuadTreeTest.cpp.o
[ 29%] Building CXX object src/tools/aidebug/CMakeFiles/tests-aidebug.dir/Map.cpp.o
[ 29%] Building CXX object src/modules/math/CMakeFiles/tests-math.dir/tests/RectTest.cpp.o
[ 29%] Linking CXX executable ../../../tests

mgerhardy avatar Sep 04 '22 15:09 mgerhardy

Fix confirmed. https://github.com/Mailaender/flathub/tree/vengi

Mailaender avatar Sep 04 '22 16:09 Mailaender