Skip to content

Instantly share code, notes, and snippets.

==28554==ERROR: AddressSanitizer: new-delete-type-mismatch on 0x6080000001a0 in thread T0:
object passed to delete has wrong type:
size of the allocated type: 96 bytes;
size of the deallocated type: 64 bytes.
[ 24%] Built target arxunpak
[ 24%] Building CXX object CMakeFiles/arxsavetool.dir/tools/savetool/SaveTool.cpp.o
#0 0x7fbab53252f5 in operator delete(void*, unsigned long) (/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/libasan.so.5+0x1752f5)
#1 0x7fbab4f9d571 in CppUnit::TestSuite::deleteContents() /var/tmp/portage/dev-util/cppunit-1.14.0/work/cppunit-1.14.0/src/cppunit/TestSuite.cpp:29
#2 0x7fbab4f9d5a6 in CppUnit::TestSuite::~TestSuite() /var/tmp/portage/dev-util/cppunit-1.14.0/work/cppunit-1.14.0/src/cppunit/TestSuite.cpp:19
#3 0x7fbab4f9d5c8 in CppUnit::TestSuite::~TestSuite() /var/tmp/portage/dev-util/cppunit-1.14.0/work/cppunit-1.14.0/src/cppunit/TestSuite.cpp:20
$ LIBGL_DEBUG=verbose glxgears
libGL: OpenDriver: trying /usr/lib32/dri/tls/radeonsi_dri.so
libGL: OpenDriver: trying /usr/lib32/dri/radeonsi_dri.so
libGL: dlopen /usr/lib32/dri/radeonsi_dri.so failed (/usr/lib32/dri/radeonsi_dri.so: wrong ELF class: ELFCLASS32)
libGL: OpenDriver: trying /usr/lib64/dri/tls/radeonsi_dri.so
libGL: OpenDriver: trying /usr/lib64/dri/radeonsi_dri.so
libGL: dlopen /usr/lib64/dri/radeonsi_dri.so failed (/usr/lib64/dri/radeonsi_dri.so: undefined symbol: _mesa_sha1_compute)
libGL error: unable to load driver: radeonsi_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: radeonsi

Keybase proof

I hereby claim:

  • I am dscharrer on github.
  • I am dscharrer (https://keybase.io/dscharrer) on keybase.
  • I have a public key whose fingerprint is ADE9 6537 03D4 ADE0 E997 7581 2855 5A66 D7E1 DEC9

To claim this, I am signing this object:

#if 0
self="$(readlink -f "$(which "$0")")"
name="$(basename "$self" .c)"
out="$(dirname "$self")/$name"
soname="$name.so"
#// Compile the LD_PRELOAD library
for arch in 32 64 ; do
mkdir -p "$out/$arch"
@dscharrer
dscharrer / README
Last active March 25, 2019 02:28
Patches for compiling glibc-2.6.1 with an up to date toolchain.
Patches to compile (crossdev) glibc-2.6.1 with an otherwise up to date (~arch) toolchain (binutils 2.23.1, gcc 4.7.2)
Tested with armv6j-hardfloat-linux-gnueabi and x86_64-bindist-linux-gnu targets.
cross-i686-bindist-linux-gnu/glibc failed with gcc 4.6 and 4.7, but worked with gcc 4.5
@dscharrer
dscharrer / infix_operator.cpp
Created June 7, 2012 07:38
The proper way to call std::swap
#include <type_traits>
namespace detail {
// No need to give up constexpr for std::forward
template <class T>
constexpr T && forward(typename std::remove_reference<T>::type & t) noexcept {
return static_cast<T &&>(t);
}
actions
ACTIVEBKG
ACTIVECAM
ActiveTimers
aiHalo
AimTime
ALLOW_CHEATS
ALLOW_MESH_TWEAKING
AllTLVertex
ALTERNATE_LIGHTING