Skip to content

Conversation

@firewave
Copy link
Collaborator

No description provided.

@firewave
Copy link
Collaborator Author

firewave commented Jan 16, 2026

Somehow the CI is not showing the ASAN output and fails the build without any information.

Locally I get:

=================================================================
==16024==ERROR: AddressSanitizer: stack-use-after-scope on address 0x00353e4ff690 at pc 0x7ff6187b1eea bp 0x00353e4ff670 sp 0x00353e4ff678
WRITE of size 8 at 0x00353e4ff690 thread T0
    #0 0x7ff6187b1ee9 in std::basic_string<char, struct std::char_traits<char>, class std::allocator<char>>::max_size(void) const C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207\include\xstring:2381
    #1 0x7ff618782a76 in std::basic_string<char, struct std::char_traits<char>, class std::allocator<char>>::_Construct<1, char const *>(char const *const, unsigned __int64) C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207\include\xstring:881
    #2 0x7ff618794214 in std::basic_string<char, struct std::char_traits<char>, class std::allocator<char>>::basic_string<char, struct std::char_traits<char>, class std::allocator<char>>(char const *const) C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207\include\xstring:769
    #3 0x7ff6186f1016 in `dynamic initializer for 'testSourceDir'' S:\GitHub\simplecpp-fw\test.cpp:26
    #4 0x7ff8991524f7  (C:\WINDOWS\SYSTEM32\ucrtbased.dll+0x1800a24f7)
    #5 0x7ff6188bf45a in __scrt_common_main_seh D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:256
    #6 0x7ff6188bf3bd in __scrt_common_main D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:330
    #7 0x7ff6188bf62d in mainCRTStartup D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_main.cpp:16
    #8 0x7ff8c2fd7373  (C:\WINDOWS\System32\KERNEL32.DLL+0x180017373)
    #9 0x7ff8c48dcc90  (C:\WINDOWS\SYSTEM32\ntdll.dll+0x18004cc90)

Address 0x00353e4ff690 is located in stack of thread T0
SUMMARY: AddressSanitizer: stack-use-after-scope C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207\include\xstring:2381 in std::basic_string<char, struct std::char_traits<char>, class std::allocator<char>>::max_size(void) const

@firewave
Copy link
Collaborator Author

Somehow the CI is not showing the ASAN output and fails the build without any information.

Actually the process crashes in the CI as evident by the exitcode.

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

Successfully merging this pull request may close these issues.

1 participant