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

What do I do about a failed CHECK "((IsAligned(reinterpret_cast<uptr>(p), page_size_))) != (0)"? #1826

Open
themightyoarfish opened this issue Dec 3, 2024 · 0 comments

Comments

@themightyoarfish
Copy link

themightyoarfish commented Dec 3, 2024

same issue as #1468.

I don't have a minimal example, but a Qt program compiled on macos 15.1 (arm) with llvm 19.1.4 exhibits this problem on startup:

LeakSanitizer: bad pointer 0x00011f706480
LeakSanitizer: CHECK failed: sanitizer_allocator_secondary.h:177 "((IsAligned(reinterpret_cast<uptr>(p), page_size_))) != (0)" (0x0, 0x0) (tid=3366981)
Process 90392 stopped
* thread #2, stop reason = signal SIGABRT
    frame #0: 0x0000000182636600 libsystem_kernel.dylib`__pthread_kill + 8
libsystem_kernel.dylib`__pthread_kill:
->  0x182636600 <+8>:  b.lo   0x182636620    ; <+40>
    0x182636604 <+12>: pacibsp
    0x182636608 <+16>: stp    x29, x30, [sp, #-0x10]!
    0x18263660c <+20>: mov    x29, sp
Target 0: (myprogram) stopped.
(lldb) bt
* thread #2, stop reason = signal SIGABRT
  * frame #0: 0x0000000182636600 libsystem_kernel.dylib`__pthread_kill + 8
    frame #1: 0x000000018266ef70 libsystem_pthread.dylib`pthread_kill + 288
    frame #2: 0x000000018257b908 libsystem_c.dylib`abort + 128
    frame #3: 0x0000000105f01a0c libclang_rt.lsan_osx_dynamic.dylib`__sanitizer::Abort() + 80
    frame #4: 0x0000000105f0104c libclang_rt.lsan_osx_dynamic.dylib`__sanitizer::Die() + 104
    frame #5: 0x0000000105f01160 libclang_rt.lsan_osx_dynamic.dylib`__sanitizer::CheckFailed(char const*, int, char const*, unsigned long long, unsigned long long) + 152
    frame #6: 0x0000000105f0fe10 libclang_rt.lsan_osx_dynamic.dylib`__sanitizer::CombinedAllocator<__sanitizer::SizeClassAllocator64<__lsan::AP64<__sanitizer::LocalAddressSpaceView>>, __sanitizer::LargeMmapAllocatorPtrArrayDynamic>::GetMetaData(void const*) + 348
    frame #7: 0x0000000105f0e8c4 libclang_rt.lsan_osx_dynamic.dylib`__lsan::Deallocate(void*) + 36
    frame #8: 0x0000000182627e60 libc++abi.dylib`__cxa_decrement_exception_refcount + 124
    frame #9: 0x00000001858ca35c Security`Security::CodeSigning::SecStaticCode::staticValidateCore(unsigned int, Security::CodeSigning::SecRequirement const*) + 3064
    frame #10: 0x00000001858c881c Security`Security::CodeSigning::SecStaticCode::staticValidate(unsigned int, Security::CodeSigning::SecRequirement const*) + 308
    frame #11: 0x00000001858bd8a0 Security`SecStaticCodeCheckValidityWithErrors + 228
    frame #12: 0x0000000105aa4278 QtCore`void* std::__1::__thread_proxy[abi:ne180100]<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, (anonymous namespace)::SandboxChecker::SandboxChecker()::'lambda'()>>(void*) + 148
    frame #13: 0x0000000105f130d4 libclang_rt.lsan_osx_dynamic.dylib`void* ThreadStartFunc<false>(void*) + 100
    frame #14: 0x000000018266f2e4 libsystem_pthread.dylib`_pthread_start + 136

I'm not sure what to do about this.

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

1 participant