Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » Bugs (& fixes) » Problem with MemorySanitizer
Problem with MemorySanitizer [message #56322] Sun, 21 February 2021 01:14 Go to next message
Novo is currently offline  Novo
Messages: 1377
Registered: December 2006
Ultimate Contributor
tutorial/CoreTutorial
~/dvlp/cpp/code/upp/out/tutorial/CLANGcpp17msan.Debug.Debug_Full.Gui.Mt.Shared.Usemalloc$ ./CoreTutorial 
Uninitialized bytes in __interceptor_strlen at offset 0 inside [0x701000000b00, 11)
==31245==WARNING: MemorySanitizer: use-of-uninitialized-value
    #0 0x7fd5730d6b5e  (/usr/lib/x86_64-linux-gnu/libfontconfig.so.1+0xbb5e)
    #1 0x7fd5730d961f in FcConfigFilename (/usr/lib/x86_64-linux-gnu/libfontconfig.so.1+0xe61f)
    #2 0x7fd5730f3151  (/usr/lib/x86_64-linux-gnu/libfontconfig.so.1+0x28151)
    #3 0x7fd5730e4f77  (/usr/lib/x86_64-linux-gnu/libfontconfig.so.1+0x19f77)
    #4 0x7fd5730e51da  (/usr/lib/x86_64-linux-gnu/libfontconfig.so.1+0x1a1da)
    #5 0x7fd5730d7156  (/usr/lib/x86_64-linux-gnu/libfontconfig.so.1+0xc156)
    #6 0x7fd5730e52a9 in FcInitBringUptoDate (/usr/lib/x86_64-linux-gnu/libfontconfig.so.1+0x1a2a9)
    #7 0x7fd5730e7ea1 in FcFontList (/usr/lib/x86_64-linux-gnu/libfontconfig.so.1+0x1cea1)
    #8 0x259c28e in Upp::GetAllFacesSys() /home/ssg/dvlp/cpp/code/upp/git/uppsrc/Draw/FontFc.cpp:233:18
    #9 0x259ae3d in Upp::Font::FaceList() /home/ssg/dvlp/cpp/code/upp/git/uppsrc/Draw/Font.cpp:34:10
    #10 0x259df7f in Upp::sInitFonts() /home/ssg/dvlp/cpp/code/upp/git/uppsrc/Draw/Font.cpp:42:2
    #11 0x259e098 in Upp::s__sF0_46_fn() /home/ssg/dvlp/cpp/code/upp/git/uppsrc/Draw/Font.cpp:47:2
    #12 0x56ad11 in Upp::Callinit::Callinit(void (*)(), char const*, int) /home/ssg/dvlp/cpp/code/upp/git/uppsrc/Core/Defs.h:86:83
    #13 0x434934 in __cxx_global_var_init.4 /home/ssg/dvlp/cpp/code/upp/git/uppsrc/Draw/Font.cpp:46:1
    #14 0x434f3c in _GLOBAL__sub_I_Draw_blitz.cpp /home/ssg/dvlp/cpp/code/upp/out/tutorial/Draw/CLANGcpp17msan.Debug.Debug_Full.Gui.Mt.Shared.Usemalloc/Draw$blitz.cpp
    #15 0x2f3643c in __libc_csu_init (/home/ssg/dvlp/cpp/code/upp/out/tutorial/CLANGcpp17msan.Debug.Debug_Full.Gui.Mt.Shared.Usemalloc/CoreTutorial+0x2f3643c)
    #16 0x7fd571ba5c3d in __libc_start_main csu/../csu/libc-start.c:270:6
    #17 0x43554d in _start (/home/ssg/dvlp/cpp/code/upp/out/tutorial/CLANGcpp17msan.Debug.Debug_Full.Gui.Mt.Shared.Usemalloc/CoreTutorial+0x43554d)

  Uninitialized value was created by a heap allocation
    #0 0x44198d in malloc (/home/ssg/dvlp/cpp/code/upp/out/tutorial/CLANGcpp17msan.Debug.Debug_Full.Gui.Mt.Shared.Usemalloc/CoreTutorial+0x44198d)
    #1 0x7fd5730d95bf in FcConfigFilename (/usr/lib/x86_64-linux-gnu/libfontconfig.so.1+0xe5bf)

SUMMARY: MemorySanitizer: use-of-uninitialized-value (/usr/lib/x86_64-linux-gnu/libfontconfig.so.1+0xbb5e) 
Exiting

Sanitizers detect problems with newly compiled code. They do not instrument binary code like valgrind does.
bm-file is attached.


Regards,
Novo
Re: Problem with MemorySanitizer [message #56326 is a reply to message #56322] Sun, 21 February 2021 13:42 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 14155
Registered: November 2005
Ultimate Member
Novo wrote on Sun, 21 February 2021 01:14
tutorial/CoreTutorial
~/dvlp/cpp/code/upp/out/tutorial/CLANGcpp17msan.Debug.Debug_Full.Gui.Mt.Shared.Usemalloc$ ./CoreTutorial 
Uninitialized bytes in __interceptor_strlen at offset 0 inside [0x701000000b00, 11)
==31245==WARNING: MemorySanitizer: use-of-uninitialized-value
    #0 0x7fd5730d6b5e  (/usr/lib/x86_64-linux-gnu/libfontconfig.so.1+0xbb5e)
    #1 0x7fd5730d961f in FcConfigFilename (/usr/lib/x86_64-linux-gnu/libfontconfig.so.1+0xe61f)
    #2 0x7fd5730f3151  (/usr/lib/x86_64-linux-gnu/libfontconfig.so.1+0x28151)
    #3 0x7fd5730e4f77  (/usr/lib/x86_64-linux-gnu/libfontconfig.so.1+0x19f77)
    #4 0x7fd5730e51da  (/usr/lib/x86_64-linux-gnu/libfontconfig.so.1+0x1a1da)
    #5 0x7fd5730d7156  (/usr/lib/x86_64-linux-gnu/libfontconfig.so.1+0xc156)
    #6 0x7fd5730e52a9 in FcInitBringUptoDate (/usr/lib/x86_64-linux-gnu/libfontconfig.so.1+0x1a2a9)
    #7 0x7fd5730e7ea1 in FcFontList (/usr/lib/x86_64-linux-gnu/libfontconfig.so.1+0x1cea1)
    #8 0x259c28e in Upp::GetAllFacesSys() /home/ssg/dvlp/cpp/code/upp/git/uppsrc/Draw/FontFc.cpp:233:18
    #9 0x259ae3d in Upp::Font::FaceList() /home/ssg/dvlp/cpp/code/upp/git/uppsrc/Draw/Font.cpp:34:10
    #10 0x259df7f in Upp::sInitFonts() /home/ssg/dvlp/cpp/code/upp/git/uppsrc/Draw/Font.cpp:42:2
    #11 0x259e098 in Upp::s__sF0_46_fn() /home/ssg/dvlp/cpp/code/upp/git/uppsrc/Draw/Font.cpp:47:2
    #12 0x56ad11 in Upp::Callinit::Callinit(void (*)(), char const*, int) /home/ssg/dvlp/cpp/code/upp/git/uppsrc/Core/Defs.h:86:83
    #13 0x434934 in __cxx_global_var_init.4 /home/ssg/dvlp/cpp/code/upp/git/uppsrc/Draw/Font.cpp:46:1
    #14 0x434f3c in _GLOBAL__sub_I_Draw_blitz.cpp /home/ssg/dvlp/cpp/code/upp/out/tutorial/Draw/CLANGcpp17msan.Debug.Debug_Full.Gui.Mt.Shared.Usemalloc/Draw$blitz.cpp
    #15 0x2f3643c in __libc_csu_init (/home/ssg/dvlp/cpp/code/upp/out/tutorial/CLANGcpp17msan.Debug.Debug_Full.Gui.Mt.Shared.Usemalloc/CoreTutorial+0x2f3643c)
    #16 0x7fd571ba5c3d in __libc_start_main csu/../csu/libc-start.c:270:6
    #17 0x43554d in _start (/home/ssg/dvlp/cpp/code/upp/out/tutorial/CLANGcpp17msan.Debug.Debug_Full.Gui.Mt.Shared.Usemalloc/CoreTutorial+0x43554d)

  Uninitialized value was created by a heap allocation
    #0 0x44198d in malloc (/home/ssg/dvlp/cpp/code/upp/out/tutorial/CLANGcpp17msan.Debug.Debug_Full.Gui.Mt.Shared.Usemalloc/CoreTutorial+0x44198d)
    #1 0x7fd5730d95bf in FcConfigFilename (/usr/lib/x86_64-linux-gnu/libfontconfig.so.1+0xe5bf)

SUMMARY: MemorySanitizer: use-of-uninitialized-value (/usr/lib/x86_64-linux-gnu/libfontconfig.so.1+0xbb5e) 
Exiting

Sanitizers detect problems with newly compiled code. They do not instrument binary code like valgrind does.
bm-file is attached.


Cool so there is a bug in your linux distro FontConfig code. Am I supposed to do with that something? Smile

Mirek
Re: Problem with MemorySanitizer [message #56662 is a reply to message #56326] Thu, 01 April 2021 18:57 Go to previous messageGo to next message
jjacksonRIAB is currently offline  jjacksonRIAB
Messages: 225
Registered: June 2011
Experienced Member
I get similar sanitizer whining when I use an INIT block.
Re: Problem with MemorySanitizer [message #56667 is a reply to message #56662] Fri, 02 April 2021 09:37 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 14155
Registered: November 2005
Ultimate Member
jjacksonRIAB wrote on Thu, 01 April 2021 18:57
I get similar sanitizer whining when I use an INIT block.


That is way unspecific. What whining and what is in INIT? (What compiler / platform).
Re: Problem with MemorySanitizer [message #56676 is a reply to message #56667] Fri, 02 April 2021 17:16 Go to previous messageGo to next message
jjacksonRIAB is currently offline  jjacksonRIAB
Messages: 225
Registered: June 2011
Experienced Member
#include <Core/Core.h>
#include <portaudio.h>

using namespace Upp;

void test() {
    Pa_Initialize();
}

INITBLOCK {
    test();
}

int main(int argc, const char *argv[]) {
	return 0;
}


Clang, linux.

Uninitialized bytes in __interceptor_strcmp at offset 8 inside [0x7010000002f0, 9)
==5039==WARNING: MemorySanitizer: use-of-uninitialized-value
    #0 0x7fe8e59f8fea  (/usr/lib/x86_64-linux-gnu/libasound.so.2+0x2dfea)
    #1 0x7fe8e59f9e65  (/usr/lib/x86_64-linux-gnu/libasound.so.2+0x2ee65)
    #2 0x7fe8e59fa3fe  (/usr/lib/x86_64-linux-gnu/libasound.so.2+0x2f3fe)
    #3 0x7fe8e59fd77e in snd_config_update_r (/usr/lib/x86_64-linux-gnu/libasound.so.2+0x3277e)
    #4 0x7fe8e59fde0d in snd_config_update_ref (/usr/lib/x86_64-linux-gnu/libasound.so.2+0x32e0d)
    #5 0x7fe8e5a088b9 in snd_ctl_open (/usr/lib/x86_64-linux-gnu/libasound.so.2+0x3d8b9)
    #6 0x7fe8e6016737  (/usr/lib/x86_64-linux-gnu/libportaudio.so.2+0x11737)
    #7 0x7fe8e601a33c in PaAlsa_Initialize (/usr/lib/x86_64-linux-gnu/libportaudio.so.2+0x1533c)
    #8 0x7fe8e600d10f in Pa_Initialize (/usr/lib/x86_64-linux-gnu/libportaudio.so.2+0x810f)
    #9 0x4a10f6 in test() /mnt/ssd-b/MyApps/inittest/inittest.cpp:7:2
    #10 0x4a1108 in s__s10_fn() /mnt/ssd-b/MyApps/inittest/inittest.cpp:11:2
    #11 0x4a1259 in Upp::Callinit::Callinit(void (*)(), char const*, int) /home/borntactical/upp.src/uppsrc/Core/Defs.h:86:83
    #12 0x422914 in __cxx_global_var_init /mnt/ssd-b/MyApps/inittest/inittest.cpp:10:1
    #13 0x422928 in _GLOBAL__sub_I_inittest.cpp /mnt/ssd-b/MyApps/inittest/inittest.cpp
    #14 0x90de0c in __libc_csu_init (/home/borntactical/out/MyApps/CLANGsanitize.Debug.Debug_Full.Shared.Usemalloc/inittest+0x90de0c)
    #15 0x7fe8e5aed03f in __libc_start_main /build/glibc-eX1tMB/glibc-2.31/csu/../csu/libc-start.c:264:6
    #16 0x42601d in _start (/home/borntactical/out/MyApps/CLANGsanitize.Debug.Debug_Full.Shared.Usemalloc/inittest+0x42601d)

SUMMARY: MemorySanitizer: use-of-uninitialized-value (/usr/lib/x86_64-linux-gnu/libasound.so.2+0x2dfea) 
Exiting
<--- Finished, press [ENTER] to close the window --->


I brought it up because it makes me wonder if an INITBLOCK is causing that complaint too
Re: Problem with MemorySanitizer [message #56677 is a reply to message #56667] Fri, 02 April 2021 17:35 Go to previous messageGo to next message
jjacksonRIAB is currently offline  jjacksonRIAB
Messages: 225
Registered: June 2011
Experienced Member
Also does it with SDL

#include <Core/Core.h>
#include <SDL/SDL.h>

using namespace Upp;

void test() {
    SDL_Init(SDL_INIT_VIDEO|SDL_INIT_AUDIO);
}

INITBLOCK {
    test();
}

int main(int argc, const char *argv[]) {
    return 0;
}

Uninitialized bytes in __interceptor_strlen at offset 10 inside [0x701000000330, 11)
==6486==WARNING: MemorySanitizer: use-of-uninitialized-value
    #0 0x7f7bed9fec8e in _XlcAddCT (/usr/lib/x86_64-linux-gnu/libX11.so.6+0x4dc8e)
    #1 0x7f7bed9fef17 in _XlcInitCTInfo (/usr/lib/x86_64-linux-gnu/libX11.so.6+0x4df17)
    #2 0x7f7beda050c6  (/usr/lib/x86_64-linux-gnu/libX11.so.6+0x540c6)
    #3 0x7f7beda047a6  (/usr/lib/x86_64-linux-gnu/libX11.so.6+0x537a6)
    #4 0x7f7beda04fac in _XlcCreateLC (/usr/lib/x86_64-linux-gnu/libX11.so.6+0x53fac)
    #5 0x7f7beda264e4 in _XlcUtf8Loader (/usr/lib/x86_64-linux-gnu/libX11.so.6+0x754e4)
    #6 0x7f7beda0c7e5 in _XOpenLC (/usr/lib/x86_64-linux-gnu/libX11.so.6+0x5b7e5)
    #7 0x7f7beda0c91c in _XlcCurrentLC (/usr/lib/x86_64-linux-gnu/libX11.so.6+0x5b91c)
    #8 0x7f7beda0c952 in XSetLocaleModifiers (/usr/lib/x86_64-linux-gnu/libX11.so.6+0x5b952)
    #9 0x7f7bee1c79f4  (/usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0+0x419f4)
    #10 0x7f7bee1c8b64  (/usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0+0x42b64)
    #11 0x7f7bee1b8b68 in SDL_VideoInit (/usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0+0x32b68)
    #12 0x7f7bee191abb in SDL_InitSubSystem (/usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0+0xbabb)
    #13 0x7f7bee191b88 in SDL_Init (/usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0+0xbb88)
    #14 0x4a2109 in test() /mnt/ssd-b/MyApps/inittest/inittest.cpp:7:5
    #15 0x4a2118 in s__s10_fn() /mnt/ssd-b/MyApps/inittest/inittest.cpp:11:5
    #16 0x4a2269 in Upp::Callinit::Callinit(void (*)(), char const*, int) /home/borntactical/upp.src/uppsrc/Core/Defs.h:86:83
    #17 0x423914 in __cxx_global_var_init /mnt/ssd-b/MyApps/inittest/inittest.cpp:10:1
    #18 0x423928 in _GLOBAL__sub_I_inittest.cpp /mnt/ssd-b/MyApps/inittest/inittest.cpp
    #19 0x90ee1c in __libc_csu_init (/home/borntactical/out/MyApps/CLANGsanitize.Debug.Debug_Full.Shared.Usemalloc/inittest+0x90ee1c)
    #20 0x7f7bedc6e03f in __libc_start_main /build/glibc-eX1tMB/glibc-2.31/csu/../csu/libc-start.c:264:6
    #21 0x42701d in _start (/home/borntactical/out/MyApps/CLANGsanitize.Debug.Debug_Full.Shared.Usemalloc/inittest+0x42701d)

SUMMARY: MemorySanitizer: use-of-uninitialized-value (/usr/lib/x86_64-linux-gnu/libX11.so.6+0x4dc8e) in _XlcAddCT


Re: Problem with MemorySanitizer [message #56678 is a reply to message #56676] Fri, 02 April 2021 18:09 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 14155
Registered: November 2005
Ultimate Member
jjacksonRIAB wrote on Fri, 02 April 2021 17:16
#include <Core/Core.h>
#include <portaudio.h>

using namespace Upp;

void test() {
    Pa_Initialize();
}

INITBLOCK {
    test();
}

int main(int argc, const char *argv[]) {
	return 0;
}


Clang, linux.

Uninitialized bytes in __interceptor_strcmp at offset 8 inside [0x7010000002f0, 9)
==5039==WARNING: MemorySanitizer: use-of-uninitialized-value
    #0 0x7fe8e59f8fea  (/usr/lib/x86_64-linux-gnu/libasound.so.2+0x2dfea)
    #1 0x7fe8e59f9e65  (/usr/lib/x86_64-linux-gnu/libasound.so.2+0x2ee65)
    #2 0x7fe8e59fa3fe  (/usr/lib/x86_64-linux-gnu/libasound.so.2+0x2f3fe)
    #3 0x7fe8e59fd77e in snd_config_update_r (/usr/lib/x86_64-linux-gnu/libasound.so.2+0x3277e)
    #4 0x7fe8e59fde0d in snd_config_update_ref (/usr/lib/x86_64-linux-gnu/libasound.so.2+0x32e0d)
    #5 0x7fe8e5a088b9 in snd_ctl_open (/usr/lib/x86_64-linux-gnu/libasound.so.2+0x3d8b9)
    #6 0x7fe8e6016737  (/usr/lib/x86_64-linux-gnu/libportaudio.so.2+0x11737)
    #7 0x7fe8e601a33c in PaAlsa_Initialize (/usr/lib/x86_64-linux-gnu/libportaudio.so.2+0x1533c)
    #8 0x7fe8e600d10f in Pa_Initialize (/usr/lib/x86_64-linux-gnu/libportaudio.so.2+0x810f)
    #9 0x4a10f6 in test() /mnt/ssd-b/MyApps/inittest/inittest.cpp:7:2
    #10 0x4a1108 in s__s10_fn() /mnt/ssd-b/MyApps/inittest/inittest.cpp:11:2
    #11 0x4a1259 in Upp::Callinit::Callinit(void (*)(), char const*, int) /home/borntactical/upp.src/uppsrc/Core/Defs.h:86:83
    #12 0x422914 in __cxx_global_var_init /mnt/ssd-b/MyApps/inittest/inittest.cpp:10:1
    #13 0x422928 in _GLOBAL__sub_I_inittest.cpp /mnt/ssd-b/MyApps/inittest/inittest.cpp
    #14 0x90de0c in __libc_csu_init (/home/borntactical/out/MyApps/CLANGsanitize.Debug.Debug_Full.Shared.Usemalloc/inittest+0x90de0c)
    #15 0x7fe8e5aed03f in __libc_start_main /build/glibc-eX1tMB/glibc-2.31/csu/../csu/libc-start.c:264:6
    #16 0x42601d in _start (/home/borntactical/out/MyApps/CLANGsanitize.Debug.Debug_Full.Shared.Usemalloc/inittest+0x42601d)

SUMMARY: MemorySanitizer: use-of-uninitialized-value (/usr/lib/x86_64-linux-gnu/libasound.so.2+0x2dfea) 
Exiting
<--- Finished, press [ENTER] to close the window --->


I brought it up because it makes me wonder if an INITBLOCK is causing that complaint too


I actually think that the cause here is that INITBLOCK runs before main - it is possible that something in those libs is not initialised yet at that point.

Does it behave the same in main?
Re: Problem with MemorySanitizer [message #56679 is a reply to message #56678] Fri, 02 April 2021 18:22 Go to previous messageGo to next message
jjacksonRIAB is currently offline  jjacksonRIAB
Messages: 225
Registered: June 2011
Experienced Member
Aye, that's what I was thinking too. I get a different memory error if I place it in main:

Uninitialized bytes in read_iovec at offset 16 inside [0x7ffd4e61d830, 96)
==9635==WARNING: MemorySanitizer: use-of-uninitialized-value
    #0 0x438504 in writev (/home/borntactical/out/MyApps/CLANGsanitize.Debug.Debug_Full.Shared.Usemalloc/inittest+0x438504)
    #1 0x7f07f6507ec8  (/usr/lib/x86_64-linux-gnu/libxcb.so.1+0xbec8)
    #2 0x7f07f6508328  (/usr/lib/x86_64-linux-gnu/libxcb.so.1+0xc328)
    #3 0x7f07f6507a07 in xcb_connect_to_fd (/usr/lib/x86_64-linux-gnu/libxcb.so.1+0xba07)
    #4 0x7f07f650bb72 in xcb_connect_to_display_with_auth_info (/usr/lib/x86_64-linux-gnu/libxcb.so.1+0xfb72)
    #5 0x7f07f6719b79 in _XConnectXCB (/usr/lib/x86_64-linux-gnu/libX11.so.6+0x3db79)
    #6 0x7f07f670a318 in XOpenDisplay (/usr/lib/x86_64-linux-gnu/libX11.so.6+0x2e318)
    #7 0x7f07f6ef1196  (/usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0+0x40196)
    #8 0x7f07f6ee3c05 in SDL_VideoInit (/usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0+0x32c05)
    #9 0x7f07f6ebcabb in SDL_InitSubSystem (/usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0+0xbabb)
    #10 0x7f07f6ebcb88 in SDL_Init (/usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0+0xbb88)
    #11 0x4a20ff in main /mnt/ssd-b/MyApps/inittest/inittest.cpp:15:5
    #12 0x7f07f69990b2 in __libc_start_main /build/glibc-eX1tMB/glibc-2.31/csu/../csu/libc-start.c:308:16
    #13 0x426fad in _start (/home/borntactical/out/MyApps/CLANGsanitize.Debug.Debug_Full.Shared.Usemalloc/inittest+0x426fad)

SUMMARY: MemorySanitizer: use-of-uninitialized-value (/home/borntactical/out/MyApps/CLANGsanitize.Debug.Debug_Full.Shared.Usemalloc/inittest+0x438504) in writev
Exiting
Re: Problem with MemorySanitizer [message #56680 is a reply to message #56679] Fri, 02 April 2021 18:24 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 14155
Registered: November 2005
Ultimate Member
jjacksonRIAB wrote on Fri, 02 April 2021 18:22
Aye, that's what I was thinking too. I get a different memory error if I place it in main:

Uninitialized bytes in read_iovec at offset 16 inside [0x7ffd4e61d830, 96)
==9635==WARNING: MemorySanitizer: use-of-uninitialized-value
    #0 0x438504 in writev (/home/borntactical/out/MyApps/CLANGsanitize.Debug.Debug_Full.Shared.Usemalloc/inittest+0x438504)
    #1 0x7f07f6507ec8  (/usr/lib/x86_64-linux-gnu/libxcb.so.1+0xbec8)
    #2 0x7f07f6508328  (/usr/lib/x86_64-linux-gnu/libxcb.so.1+0xc328)
    #3 0x7f07f6507a07 in xcb_connect_to_fd (/usr/lib/x86_64-linux-gnu/libxcb.so.1+0xba07)
    #4 0x7f07f650bb72 in xcb_connect_to_display_with_auth_info (/usr/lib/x86_64-linux-gnu/libxcb.so.1+0xfb72)
    #5 0x7f07f6719b79 in _XConnectXCB (/usr/lib/x86_64-linux-gnu/libX11.so.6+0x3db79)
    #6 0x7f07f670a318 in XOpenDisplay (/usr/lib/x86_64-linux-gnu/libX11.so.6+0x2e318)
    #7 0x7f07f6ef1196  (/usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0+0x40196)
    #8 0x7f07f6ee3c05 in SDL_VideoInit (/usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0+0x32c05)
    #9 0x7f07f6ebcabb in SDL_InitSubSystem (/usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0+0xbabb)
    #10 0x7f07f6ebcb88 in SDL_Init (/usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0+0xbb88)
    #11 0x4a20ff in main /mnt/ssd-b/MyApps/inittest/inittest.cpp:15:5
    #12 0x7f07f69990b2 in __libc_start_main /build/glibc-eX1tMB/glibc-2.31/csu/../csu/libc-start.c:308:16
    #13 0x426fad in _start (/home/borntactical/out/MyApps/CLANGsanitize.Debug.Debug_Full.Shared.Usemalloc/inittest+0x426fad)

SUMMARY: MemorySanitizer: use-of-uninitialized-value (/home/borntactical/out/MyApps/CLANGsanitize.Debug.Debug_Full.Shared.Usemalloc/inittest+0x438504) in writev
Exiting


Well, not U++ problem I guess... You can also try completely without U++...
Re: Problem with MemorySanitizer [message #56681 is a reply to message #56680] Fri, 02 April 2021 18:30 Go to previous message
jjacksonRIAB is currently offline  jjacksonRIAB
Messages: 225
Registered: June 2011
Experienced Member
Yeah, same error without U++. The fact that those methods are called in INITBLOCKs just makes it appear as if U++ has something to do with it... but it doesn't.
Previous Topic: Upp 12405 broken ?
Next Topic: strange situation in the ide with package that hasn't opened anymore.
Goto Forum:
  


Current Time: Wed Dec 04 22:04:55 CET 2024

Total time taken to generate the page: 0.02251 seconds