[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lmi] Invalid pointer-pair?
From: |
Greg Chicares |
Subject: |
Re: [lmi] Invalid pointer-pair? |
Date: |
Sat, 11 Jun 2022 19:59:08 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 |
On 6/10/22 20:26, Greg Chicares wrote:
> On 6/10/22 19:47, Greg Chicares wrote:
[...]
> Here's a pair of pointer-pair tests: the first fails, but the second succeeds,
> apparently because it removes
> pointer-compare,pointer-subtract,
> from '-fsanitize=' options.
BTW, the failing test still fails if I
- keep ",pointer-compare,pointer-subtract" in '-fsanitize=...'; yet
- set 'detect_invalid_pointer_pairs=0' in $ASAN_OPTIONS
IOW, the 'pointer-whatever' options prevent linking 'zero_test' even
if the environment variable attempts to nullify them. Linker error:
/usr/bin/ld: zero_test.o: in function `std::__cxx11::basic_stringbuf<char,
std::char_traits<char>, std::allocator<char> >::str() const &':
/usr/include/c++/11/sstream:245: undefined reference to
`std::__cxx11::basic_stringbuf<char, std::char_traits<char>,
std::allocator<char> >::_M_high_mark() const'
collect2: error: ld returned 1 exit status