From ab4705a5992a808b4567fc4c26147184ed4dd73c Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 23 Jun 2023 09:38:36 +0200 Subject: Release version 1.11.0-b.9+1 Disable dodgy part of shared_ptr test that now causes segfault with Clang 16 on Mac OS and Windows. --- libcutl/shared-ptr/base.cxx | 2 ++ manifest | 2 +- tests/shared-ptr/driver.cxx | 6 +++++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/libcutl/shared-ptr/base.cxx b/libcutl/shared-ptr/base.cxx index a3bc774..10e998f 100644 --- a/libcutl/shared-ptr/base.cxx +++ b/libcutl/shared-ptr/base.cxx @@ -33,6 +33,8 @@ operator new (size_t n, cutl::share s) // of this platform. Twice the pointer size is a good guess for // most platforms. // + // @@ Need to redo this properly using alignof(std::max_align_t). + // size_t* p = static_cast (operator new (n + 2 * sizeof (size_t))); *p++ = 1; // Initial count. *p++ = 0xDEADBEEF; // Signature. diff --git a/manifest b/manifest index c82192a..f4b4df7 100644 --- a/manifest +++ b/manifest @@ -1,6 +1,6 @@ : 1 name: libcutl -version: 1.11.0-b.9 +version: 1.11.0-b.9+1 summary: C++ utility library for compilers license: MIT topics: C++, utility diff --git a/tests/shared-ptr/driver.cxx b/tests/shared-ptr/driver.cxx index 42d4a55..d0c7f8b 100644 --- a/tests/shared-ptr/driver.cxx +++ b/tests/shared-ptr/driver.cxx @@ -99,7 +99,11 @@ main () // Error handling. This can theoretically can segfault and it trips up // the address sanitizer. // -#ifndef __SANITIZE_ADDRESS__ + // @@ This now also trips Clang 16 on various platforms, so disable for + // now. + // +#if 0 +//#ifndef __SANITIZE_ADDRESS__ { type* x (new type (5, "foo")); -- cgit v1.1