Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix SIGSEGV caused by redefining realloc() (pxscene#896)
This fixes the following crash: Thread 3 "pxscene2dtests" received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7f0703aff700 (LWP 6252)] 0x00007f070eea114c in __tsan_func_entry () from /lib64/libtsan.so.0 (gdb) bt #0 0x00007f070eea114c in __tsan_func_entry () from /lib64/libtsan.so.0 pxscene#1 0x00000000005af843 in realloc (ptr=0x0, size=32) at pxCore/tests/pxScene2d/test_imagecache.cpp:43 pxscene#2 0x00007f070a988645 in pthread_getattr_np (thread_id=<optimized out>, attr=<optimized out>) at pthread_getattr_np.c:176 pxscene#3 0x00007f070eeba185 in __sanitizer::GetThreadStackTopAndBottom(bool, unsigned long*, unsigned long*) () from /lib64/libtsan.so.0 pxscene#4 0x00007f070eeba617 in __sanitizer::GetThreadStackAndTls(bool, unsigned long*, unsigned long*, unsigned long*, unsigned long*) () from /lib64/libtsan.so.0 pxscene#5 0x00007f070eea8be6 in __tsan::ThreadStart(__tsan::ThreadState*, int, unsigned long) () from /lib64/libtsan.so.0 pxscene#6 0x00007f070ee4b7d6 in __tsan_thread_start_func () from /lib64/libtsan.so.0 pxscene#7 0x00007f070a98661b in start_thread (arg=0x7f0703aff700) at pthread_create.c:465 pxscene#8 0x00007f07092db98f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
- Loading branch information