boostorg / stacktrace

C++ library for storing and printing backtraces.
https://boost.org/libs/stacktrace
422 stars 69 forks source link

stacktrace_from_exception contains misleading assert-message #164

Closed Ukilele closed 2 months ago

Ukilele commented 3 months ago

There is a BOOST_ASSERT_MSG here: https://github.com/boostorg/stacktrace/blob/39afcefb6413b773b9f464689e994698a7a2ddc8/src/from_exception.cpp#L236-L238

Isn't sizeof(void*) equal to 4 on 32bit platforms and 8 on 64bit platforms? The assert-message reads contrary to its condition, doesn't it? I ran into this assert on a 64bit platform and got confused, because it says "32bit platforms are unsupported [...]".

apolukhin commented 2 months ago

Ouch.

Many thanks for the bugreport, fixed in upstream