evelez7 wrote:

@ilovepi

```
# | /Users/evelez/code/llvm-project/llvm/include/llvm/ADT/ArrayRef.h:131:40: 
runtime error: pointer index expression with base 0x652f73726573552f overflowed 
to 0x8813a41e9dcf933f
# | SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior 
/Users/evelez/code/llvm-project/llvm/include/llvm/ADT/ArrayRef.h:131:40
# |  #0 0x000000010a83674b llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) 
(/Users/evelez/code/llvm-project/cmake-build-sanitizers-clang-doc/bin/clang-doc+0x1002a074b)
# |  #1 0x000000010a8390aa SignalHandler(int, __siginfo*, void*) 
(/Users/evelez/code/llvm-project/cmake-build-sanitizers-clang-doc/bin/clang-doc+0x1002a30aa)
# |  #2 0x00007ff80da3f31d 
(/usr/lib/system/libsystem_platform.dylib+0x7ff801f0c31d)
# |  #3 0x0000000000000000
# |  #4 0x00007ff80d9255c6 (/usr/lib/system/libsystem_c.dylib+0x7ff801df25c6)
# |  #5 0x00000001137cec28 
(/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/lib/darwin/libclang_rt.asan_osx_dynamic.dylib+0xc5c28)
# |  #6 0x00000001137ce371 
(/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/lib/darwin/libclang_rt.asan_osx_dynamic.dylib+0xc5371)
# |  #7 0x00000001137e50db 
(/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/lib/darwin/libclang_rt.asan_osx_dynamic.dylib+0xdc0db)
# |  #8 0x000000010c1da27a 
clang::doc::serializeDescription(llvm::simple_ilist<clang::doc::InfoNode<clang::doc::CommentInfo>>
 const&, llvm::json::Object&, llvm::StringRef) 
(/Users/evelez/code/llvm-project/cmake-build-sanitizers-clang-doc/bin/clang-doc+0x101c4427a)
# |  #9 0x000000010c1d9328 
clang::doc::JSONGenerator::serializeCommonAttributes(clang::doc::Info const&, 
llvm::json::Object&) 
(/Users/evelez/code/llvm-project/cmake-build-sanitizers-clang-doc/bin/clang-doc+0x101c43328)
# | #10 0x000000010c1df65f 
clang::doc::JSONGenerator::serializeInfo(clang::doc::FunctionInfo const&, 
llvm::json::Object&) 
(/Users/evelez/code/llvm-project/cmake-build-sanitizers-clang-doc/bin/clang-doc+0x101c4965f)
# | #11 0x000000010c1e33e2 
clang::doc::JSONGenerator::serializeInfo(clang::doc::RecordInfo const&, 
llvm::json::Object&) 
(/Users/evelez/code/llvm-project/cmake-build-sanitizers-clang-doc/bin/clang-doc+0x101c4d3e2)
# | #12 0x000000010c1ee96f 
clang::doc::JSONGenerator::generateDocForInfo(clang::doc::Info*, 
llvm::raw_ostream&, clang::doc::ClangDocContext const&) 
(/Users/evelez/code/llvm-project/cmake-build-sanitizers-clang-doc/bin/clang-doc+0x101c5896f)
# | #13 0x000000010c1ee193 
clang::doc::JSONGenerator::generateDocumentation(llvm::StringRef, 
llvm::StringMap<clang::doc::Info*, llvm::MallocAllocator>, 
clang::doc::ClangDocContext const&, std::__1::basic_string<char, 
std::__1::char_traits<char>, std::__1::allocator<char>>) 
(/Users/evelez/code/llvm-project/cmake-build-sanitizers-clang-doc/bin/clang-doc+0x101c58193)
# | #14 0x000000010a59bed2 main 
(/Users/evelez/code/llvm-project/cmake-build-sanitizers-clang-doc/bin/clang-doc+0x100005ed2)
# | #15 0x00007ff80d661530
# `-----------------------------
```

Several repeats of this one
```
# | /Users/evelez/code/llvm-project/llvm/include/llvm/ADT/ilist_base.h:33:11: 
runtime error: member call on null pointer of type 
'llvm::ilist_detail::node_base_prevnext<llvm::ilist_node_base<false, void>, 
false>'
# | SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior 
/Users/evelez/code/llvm-project/llvm/include/llvm/ADT/ilist_base.h:33:11
# | /Users/evelez/code/llvm-project/llvm/include/llvm/ADT/ilist_base.h:33: 
runtime error: member call on null pointer of type 
'llvm::ilist_detail::node_base_prevnext<llvm::ilist_node_base<false, void>, 
false>'
# | SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior 
/Users/evelez/code/llvm-project/llvm/include/llvm/ADT/ilist_base.h:33
# | /Users/evelez/code/llvm-project/llvm/include/llvm/ADT/ilist_base.h:33: 
runtime error: member call on null pointer of type 
'llvm::ilist_detail::node_base_prevnext<llvm::ilist_node_base<false, void>, 
false>'
# | SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior 
/Users/evelez/code/llvm-project/llvm/include/llvm/ADT/ilist_base.h:33
# |  #0 0x000000010219174b llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) 
(/Users/evelez/code/llvm-project/cmake-build-sanitizers-clang-doc/bin/clang-doc+0x1002a074b)
# |  #1 0x00000001021940aa SignalHandler(int, __siginfo*, void*) 
(/Users/evelez/code/llvm-project/cmake-build-sanitizers-clang-doc/bin/clang-doc+0x1002a30aa)
# |  #2 0x00007ff80da3f31d 
(/usr/lib/system/libsystem_platform.dylib+0x7ff801f0c31d)
# |  #3 0x0000000000000000
# |  #4 0x00007ff80d9255c6 (/usr/lib/system/libsystem_c.dylib+0x7ff801df25c6)
# |  #5 0x000000010b129c28 
(/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/lib/darwin/libclang_rt.asan_osx_dynamic.dylib+0xc5c28)
# |  #6 0x000000010b129371 
(/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/lib/darwin/libclang_rt.asan_osx_dynamic.dylib+0xc5371)
# |  #7 0x000000010b13c90b 
(/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/lib/darwin/libclang_rt.asan_osx_dynamic.dylib+0xd890b)
# |  #8 0x0000000103add642 
llvm::simple_ilist<clang::doc::InfoNode<clang::doc::Location>>::remove(clang::doc::InfoNode<clang::doc::Location>&)
 
(/Users/evelez/code/llvm-project/cmake-build-sanitizers-clang-doc/bin/clang-doc+0x101bec642)
# |  #9 0x0000000103ad3367 
clang::doc::SymbolInfo::merge(clang::doc::SymbolInfo&&) 
(/Users/evelez/code/llvm-project/cmake-build-sanitizers-clang-doc/bin/clang-doc+0x101be2367)
# | #10 0x0000000103ad555e void 
clang::doc::reduceChildren<clang::doc::FunctionInfo>(llvm::simple_ilist<clang::doc::InfoNode<clang::doc::FunctionInfo>>&,
 llvm::simple_ilist<clang::doc::InfoNode<clang::doc::FunctionInfo>>&&) 
(/Users/evelez/code/llvm-project/cmake-build-sanitizers-clang-doc/bin/clang-doc+0x101be455e)
# | #11 0x0000000103ad6e83 
clang::doc::RecordInfo::merge(clang::doc::RecordInfo&&) 
(/Users/evelez/code/llvm-project/cmake-build-sanitizers-clang-doc/bin/clang-doc+0x101be5e83)
# | #12 0x0000000103acfbbe 
clang::doc::mergeInfos(std::__1::vector<clang::doc::Info*, 
std::__1::allocator<clang::doc::Info*>>&) 
(/Users/evelez/code/llvm-project/cmake-build-sanitizers-clang-doc/bin/clang-doc+0x101bdebbe)
# | #13 0x0000000101f11427 void 
llvm::detail::UniqueFunctionBase<void>::CallImpl<main::$_1>(void*) 
(/Users/evelez/code/llvm-project/cmake-build-sanitizers-clang-doc/bin/clang-doc+0x100020427)
# | #14 0x0000000101f108c8 std::__1::__deferred_assoc_state<void, 
std::__1::__async_func<llvm::unique_function<void ()>>>::__execute() 
(/Users/evelez/code/llvm-project/cmake-build-sanitizers-clang-doc/bin/clang-doc+0x10001f8c8)
# | #15 0x00007ff80d949f3e (/usr/lib/libc++.1.dylib+0x7ff801e16f3e)
# | #16 0x000000010208e836 
llvm::StdThreadPool::processTasks(llvm::ThreadPoolTaskGroup*) 
(/Users/evelez/code/llvm-project/cmake-build-sanitizers-clang-doc/bin/clang-doc+0x10019d836)
# | #17 0x0000000102095d3c void* 
llvm::thread::ThreadProxy<std::__1::tuple<llvm::StdThreadPool::grow(int)::$_0>>(void*)
 
(/Users/evelez/code/llvm-project/cmake-build-sanitizers-clang-doc/bin/clang-doc+0x1001a4d3c)
# | #18 0x000000010b0ff667 
(/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/lib/darwin/libclang_rt.asan_osx_dynamic.dylib+0x9b667)
# | #19 0x00007ff80da06e05 
(/usr/lib/system/libsystem_pthread.dylib+0x7ff801ed3e05)
# | #20 0x00007ff80da02857 
(/usr/lib/system/libsystem_pthread.dylib+0x7ff801ecf857)
# `-----------------------------
```

```
# | 
/Users/evelez/code/llvm-project/clang-tools-extra/clang-doc/JSONGenerator.cpp:393:41:
 runtime error: member access within misaligned address 0x00010e0cb2ee for type 
'const clang::doc::CommentInfo', which requires 8 byte alignment
# | 0x00010e0cb2ee: note: pointer points here
# |  82 b1 01 00 49 89  c6 48 8d 05 d0 36 a7 00  44 0f b6 78 22 e8 2e c4  ff ff 
31 c9 85 c0 48 0f  45 cd
# |              ^
# | SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior 
/Users/evelez/code/llvm-project/clang-tools-extra/clang-doc/JSONGenerator.cpp:393:41
# |  #0 0x000000010514974b llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) 
(/Users/evelez/code/llvm-project/cmake-build-sanitizers-clang-doc/bin/clang-doc+0x1002a074b)
# |  #1 0x000000010514c0aa SignalHandler(int, __siginfo*, void*) 
(/Users/evelez/code/llvm-project/cmake-build-sanitizers-clang-doc/bin/clang-doc+0x1002a30aa)
# |  #2 0x00007ff80da3f31d 
(/usr/lib/system/libsystem_platform.dylib+0x7ff801f0c31d)
# |  #3 0x0000000000000000
# |  #4 0x00007ff80d9255c6 (/usr/lib/system/libsystem_c.dylib+0x7ff801df25c6)
# |  #5 0x000000010e0e1c28 
(/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/lib/darwin/libclang_rt.asan_osx_dynamic.dylib+0xc5c28)
# |  #6 0x000000010e0e1371 
(/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/lib/darwin/libclang_rt.asan_osx_dynamic.dylib+0xc5371)
# |  #7 0x000000010e0f490b 
(/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/lib/darwin/libclang_rt.asan_osx_dynamic.dylib+0xd890b)
# |  #8 0x0000000106aed26e 
clang::doc::serializeDescription(llvm::simple_ilist<clang::doc::InfoNode<clang::doc::CommentInfo>>
 const&, llvm::json::Object&, llvm::StringRef) 
(/Users/evelez/code/llvm-project/cmake-build-sanitizers-clang-doc/bin/clang-doc+0x101c4426e)
# |  #9 0x0000000106aec328 
clang::doc::JSONGenerator::serializeCommonAttributes(clang::doc::Info const&, 
llvm::json::Object&) 
(/Users/evelez/code/llvm-project/cmake-build-sanitizers-clang-doc/bin/clang-doc+0x101c43328)
# | #10 0x0000000106af265f 
clang::doc::JSONGenerator::serializeInfo(clang::doc::FunctionInfo const&, 
llvm::json::Object&) 
(/Users/evelez/code/llvm-project/cmake-build-sanitizers-clang-doc/bin/clang-doc+0x101c4965f)
# | #11 0x0000000106afa6e6 
clang::doc::JSONGenerator::serializeInfo(clang::doc::NamespaceInfo const&, 
llvm::json::Object&) 
(/Users/evelez/code/llvm-project/cmake-build-sanitizers-clang-doc/bin/clang-doc+0x101c516e6)
# | #12 0x0000000106b0195d 
clang::doc::JSONGenerator::generateDocForInfo(clang::doc::Info*, 
llvm::raw_ostream&, clang::doc::ClangDocContext const&) 
(/Users/evelez/code/llvm-project/cmake-build-sanitizers-clang-doc/bin/clang-doc+0x101c5895d)
# | #13 0x0000000106b01193 
clang::doc::JSONGenerator::generateDocumentation(llvm::StringRef, 
llvm::StringMap<clang::doc::Info*, llvm::MallocAllocator>, 
clang::doc::ClangDocContext const&, std::__1::basic_string<char, 
std::__1::char_traits<char>, std::__1::allocator<char>>) 
(/Users/evelez/code/llvm-project/cmake-build-sanitizers-clang-doc/bin/clang-doc+0x101c58193)
# | #14 0x00000001069f4ed4 
clang::doc::MustacheGenerator::generateDocumentation(llvm::StringRef, 
llvm::StringMap<clang::doc::Info*, llvm::MallocAllocator>, 
clang::doc::ClangDocContext const&, std::__1::basic_string<char, 
std::__1::char_traits<char>, std::__1::allocator<char>>) 
(/Users/evelez/code/llvm-project/cmake-build-sanitizers-clang-doc/bin/clang-doc+0x101b4bed4)
# | #15 0x0000000106a01212 
clang::doc::HTMLGenerator::generateDocumentation(llvm::StringRef, 
llvm::StringMap<clang::doc::Info*, llvm::MallocAllocator>, 
clang::doc::ClangDocContext const&, std::__1::basic_string<char, 
std::__1::char_traits<char>, std::__1::allocator<char>>) 
(/Users/evelez/code/llvm-project/cmake-build-sanitizers-clang-doc/bin/clang-doc+0x101b58212)
# | #16 0x0000000104eaeed2 main 
(/Users/evelez/code/llvm-project/cmake-build-sanitizers-clang-doc/bin/clang-doc+0x100005ed2)
# | #17 0x00007ff80d661530
# `-----------------------------
```

https://github.com/llvm/llvm-project/pull/192495
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to