Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sh-4.3# EGL_PLATFORM=hwcomposer valgrind test_hwcomposer
- ==1748== Memcheck, a memory error detector
- ==1748== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
- ==1748== Using Valgrind-3.10.1 and LibVEX; rerun with -h for copyright info
- ==1748== Command: test_hwcomposer
- ==1748==
- ==1748== Syscall param write(buf) points to uninitialised byte(s)
- ==1748== at 0x4D29254: write (in /system/lib/libc.so)
- ==1748== by 0xDFA06D5: ??? (in /system/lib/libuip.so)
- ==1748== by 0xDFA0A85: mm_open (in /system/lib/libuip.so)
- ==1748== by 0xDFB7C3B: ??? (in /system/lib/hw/hwcomposer.bcm_java.so)
- ==1748== by 0x118E7: hwc_open_1 (hwcomposer.h:807)
- ==1748== by 0x118E7: main (test_hwcomposer.cpp:166)
- ==1748== Address 0x485a3a0 is 8 bytes inside a block of size 16 alloc'd
- ==1748== at 0x4815D90: operator new[](unsigned int) (in /usr/lib/valgrind/vgpreload_memcheck-arm-linux.so)
- ==1748==
- ==1748== Syscall param write(buf) points to uninitialised byte(s)
- ==1748== at 0x4D29254: write (in /system/lib/libc.so)
- ==1748== by 0xDFA06D5: ??? (in /system/lib/libuip.so)
- ==1748== by 0xDFA0A85: mm_open (in /system/lib/libuip.so)
- ==1748== by 0xDFA43CD: V3DComposer::init() (in /system/lib/libuip.so)
- ==1748== by 0xDFA4423: getV3DComposer() (in /system/lib/libuip.so)
- ==1748== by 0xDFB7CCB: ??? (in /system/lib/hw/hwcomposer.bcm_java.so)
- ==1748== by 0x118E7: hwc_open_1 (hwcomposer.h:807)
- ==1748== by 0x118E7: main (test_hwcomposer.cpp:166)
- ==1748== Address 0x486a4e8 is 8 bytes inside a block of size 16 alloc'd
- ==1748== at 0x4815D90: operator new[](unsigned int) (in /usr/lib/valgrind/vgpreload_memcheck-arm-linux.so)
- ==1748==
- ==1748== Warning: noted but unhandled ioctl 0x4611 with no size/direction hints.
- ==1748== This could cause spurious value errors to appear.
- ==1748== See README_MISSING_SYSCALL_OR_IOCTL for guidance on writing a proper wrapper.
- width: 320 height: 320
- disInstr(arm): unhandled instruction: 0xEC510F1E
- cond=14(0xE) 27:20=197(0xC5) 4:4=1 3:0=14(0xE)
- ==1748== valgrind: Unrecognised instruction at address 0xf2d7888.
- ==1748== at 0xF2D7888: _armv7_tick (in /system/lib/libcrypto.so)
- ==1748== Your program just tried to execute an instruction that Valgrind
- ==1748== did not recognise. There are two possible reasons for this.
- ==1748== 1. Your program has a bug and erroneously jumped to a non-code
- ==1748== location. If you are running Memcheck and you just saw a
- ==1748== warning about a bad jump, it's probably your program's fault.
- ==1748== 2. The instruction is legitimate but Valgrind doesn't handle it,
- ==1748== i.e. it's Valgrind's fault. If you think this is the case or
- ==1748== you are not sure, please let us know and we'll try to fix it.
- ==1748== Either way, Valgrind will now raise a SIGILL signal which will
- ==1748== probably kill your program.
- ==1748== Syscall param ioctl(generic) points to uninitialised byte(s)
- ==1748== at 0x4D291D4: __ioctl (in /system/lib/libc.so)
- ==1748== by 0x4D4137F: ioctl (in /system/lib/libc.so)
- ==1748== Address 0xbdc1d98c is on thread 1's stack
- ==1748==
- ==1748== Syscall param write(buf) points to uninitialised byte(s)
- ==1748== at 0x4D29254: write (in /system/lib/libc.so)
- ==1748== by 0xDFA06D5: ??? (in /system/lib/libuip.so)
- ==1748== by 0xDFA0A85: mm_open (in /system/lib/libuip.so)
- ==1748== by 0xF0AAA2F: khrn_hw_init (in /system/lib/egl/libGLES_java.so)
- ==1748== by 0xF0A8515: khrn_hw_common_init (in /system/lib/egl/libGLES_java.so)
- ==1748== by 0xF0EA887: egl_server_startup_hack (in /system/lib/egl/libGLES_java.so)
- ==1748== by 0xF0FA0A1: khrn_direct_init (in /system/lib/egl/libGLES_java.so)
- ==1748== by 0xF0F37D9: eglInitialize_Int (in /system/lib/egl/libGLES_java.so)
- ==1748== by 0xF0FB231: eglInitialize (in /system/lib/egl/libGLES_java.so)
- ==1748== by 0x4E29CCF: android::egl_display_t::initialize(int*, int*) (in /system/lib/libEGL.so)
- ==1748== by 0x4E2AE9F: eglInitialize (in /system/lib/libEGL.so)
- ==1748== by 0x11AF3: main (test_hwcomposer.cpp:234)
- ==1748== Address 0x4886f10 is 8 bytes inside a block of size 16 alloc'd
- ==1748== at 0x4815D90: operator new[](unsigned int) (in /usr/lib/valgrind/vgpreload_memcheck-arm-linux.so)
- ==1748==
- ==1748== Invalid read of size 4
- ==1748== at 0xDF8B194: allocator_context_t::gralloc_free_buffer(native_handle*) (in /system/lib/hw/gralloc.bcm_java.so)
- ==1748== by 0xDF8B1E3: allocator_context_t::gralloc_free(alloc_device_t*, native_handle const*) (in /system/lib/hw/gralloc.bcm_java.so)
- ==1748== by 0x42521EDF: HWComposerNativeWindowBuffer::HWComposerNativeWindowBuffer(alloc_device_t*, unsigned int, unsigned int, unsigned int, unsigned int) (hwcomposer_window.cpp:101)
- ==1748== by 0x42522253: HWComposerNativeWindow::allocateBuffers() (hwcomposer_window.cpp:480)
- ==1748== by 0x425223CF: HWComposerNativeWindow::dequeueBuffer(BaseNativeWindowBuffer**, int*) (hwcomposer_window.cpp:202)
- ==1748== by 0x42542F6F: BaseNativeWindow::_dequeueBuffer_DEPRECATED(ANativeWindow*, ANativeWindowBuffer**) (nativewindowbase.cpp:163)
- ==1748== by 0xF0FAFC7: ??? (in /system/lib/egl/libGLES_java.so)
- ==1748== by 0xF0FBCC1: eglMakeCurrent (in /system/lib/egl/libGLES_java.so)
- ==1748== by 0x4E2A0EB: android::egl_display_t::makeCurrent(android::egl_context_t*, android::egl_context_t*, void*, void*, void*, void*, void*, void*) (in /system/lib/libEGL.so)
- ==1748== by 0x4E2C4B3: eglMakeCurrent (in /system/lib/libEGL.so)
- ==1748== by 0x11B9F: main (test_hwcomposer.cpp:252)
- ==1748== Address 0x154 is not stack'd, malloc'd or (recently) free'd
- ==1748==
- ==1748==
- ==1748== Process terminating with default action of signal 11 (SIGSEGV)
- ==1748== Access not within mapped region at address 0x154
- ==1748== at 0xDF8B194: allocator_context_t::gralloc_free_buffer(native_handle*) (in /system/lib/hw/gralloc.bcm_java.so)
- ==1748== by 0xDF8B1E3: allocator_context_t::gralloc_free(alloc_device_t*, native_handle const*) (in /system/lib/hw/gralloc.bcm_java.so)
- ==1748== by 0x42521EDF: HWComposerNativeWindowBuffer::HWComposerNativeWindowBuffer(alloc_device_t*, unsigned int, unsigned int, unsigned int, unsigned int) (hwcomposer_window.cpp:101)
- ==1748== by 0x42522253: HWComposerNativeWindow::allocateBuffers() (hwcomposer_window.cpp:480)
- ==1748== by 0x425223CF: HWComposerNativeWindow::dequeueBuffer(BaseNativeWindowBuffer**, int*) (hwcomposer_window.cpp:202)
- ==1748== by 0x42542F6F: BaseNativeWindow::_dequeueBuffer_DEPRECATED(ANativeWindow*, ANativeWindowBuffer**) (nativewindowbase.cpp:163)
- ==1748== by 0xF0FAFC7: ??? (in /system/lib/egl/libGLES_java.so)
- ==1748== by 0xF0FBCC1: eglMakeCurrent (in /system/lib/egl/libGLES_java.so)
- ==1748== by 0x4E2A0EB: android::egl_display_t::makeCurrent(android::egl_context_t*, android::egl_context_t*, void*, void*, void*, void*, void*, void*) (in /system/lib/libEGL.so)
- ==1748== by 0x4E2C4B3: eglMakeCurrent (in /system/lib/libEGL.so)
- ==1748== by 0x11B9F: main (test_hwcomposer.cpp:252)
- ==1748== If you believe this happened as a result of a stack
- ==1748== overflow in your program's main thread (unlikely but
- ==1748== possible), you can try to increase the size of the
- ==1748== main thread stack using the --main-stacksize= flag.
- ==1748== The main thread stack size used in this run was 8388608.
- ==1748==
- ==1748== HEAP SUMMARY:
- ==1748== in use at exit: 151,794,991 bytes in 196 blocks
- ==1748== total heap usage: 226 allocs, 30 frees, 151,829,332 bytes allocated
- ==1748==
- ==1748== LEAK SUMMARY:
- ==1748== definitely lost: 4 bytes in 1 blocks
- ==1748== indirectly lost: 0 bytes in 0 blocks
- ==1748== possibly lost: 151,473,208 bytes in 21 blocks
- ==1748== still reachable: 321,779 bytes in 174 blocks
- ==1748== suppressed: 0 bytes in 0 blocks
- ==1748== Rerun with --leak-check=full to see details of leaked memory
- ==1748==
- ==1748== For counts of detected and suppressed errors, rerun with: -v
- ==1748== Use --track-origins=yes to see where uninitialised values come from
- ==1748== ERROR SUMMARY: 5 errors from 5 contexts (suppressed: 6 from 6)
- Killed
- sh-4.3#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement