Advertisement
Guest User

Untitled

a guest
Apr 7th, 2016
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.04 KB | None | 0 0
  1. sh-4.3# EGL_PLATFORM=hwcomposer valgrind test_hwcomposer
  2. ==1748== Memcheck, a memory error detector
  3. ==1748== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
  4. ==1748== Using Valgrind-3.10.1 and LibVEX; rerun with -h for copyright info
  5. ==1748== Command: test_hwcomposer
  6. ==1748==
  7. ==1748== Syscall param write(buf) points to uninitialised byte(s)
  8. ==1748== at 0x4D29254: write (in /system/lib/libc.so)
  9. ==1748== by 0xDFA06D5: ??? (in /system/lib/libuip.so)
  10. ==1748== by 0xDFA0A85: mm_open (in /system/lib/libuip.so)
  11. ==1748== by 0xDFB7C3B: ??? (in /system/lib/hw/hwcomposer.bcm_java.so)
  12. ==1748== by 0x118E7: hwc_open_1 (hwcomposer.h:807)
  13. ==1748== by 0x118E7: main (test_hwcomposer.cpp:166)
  14. ==1748== Address 0x485a3a0 is 8 bytes inside a block of size 16 alloc'd
  15. ==1748== at 0x4815D90: operator new[](unsigned int) (in /usr/lib/valgrind/vgpreload_memcheck-arm-linux.so)
  16. ==1748==
  17. ==1748== Syscall param write(buf) points to uninitialised byte(s)
  18. ==1748== at 0x4D29254: write (in /system/lib/libc.so)
  19. ==1748== by 0xDFA06D5: ??? (in /system/lib/libuip.so)
  20. ==1748== by 0xDFA0A85: mm_open (in /system/lib/libuip.so)
  21. ==1748== by 0xDFA43CD: V3DComposer::init() (in /system/lib/libuip.so)
  22. ==1748== by 0xDFA4423: getV3DComposer() (in /system/lib/libuip.so)
  23. ==1748== by 0xDFB7CCB: ??? (in /system/lib/hw/hwcomposer.bcm_java.so)
  24. ==1748== by 0x118E7: hwc_open_1 (hwcomposer.h:807)
  25. ==1748== by 0x118E7: main (test_hwcomposer.cpp:166)
  26. ==1748== Address 0x486a4e8 is 8 bytes inside a block of size 16 alloc'd
  27. ==1748== at 0x4815D90: operator new[](unsigned int) (in /usr/lib/valgrind/vgpreload_memcheck-arm-linux.so)
  28. ==1748==
  29. ==1748== Warning: noted but unhandled ioctl 0x4611 with no size/direction hints.
  30. ==1748== This could cause spurious value errors to appear.
  31. ==1748== See README_MISSING_SYSCALL_OR_IOCTL for guidance on writing a proper wrapper.
  32. width: 320 height: 320
  33. disInstr(arm): unhandled instruction: 0xEC510F1E
  34. cond=14(0xE) 27:20=197(0xC5) 4:4=1 3:0=14(0xE)
  35. ==1748== valgrind: Unrecognised instruction at address 0xf2d7888.
  36. ==1748== at 0xF2D7888: _armv7_tick (in /system/lib/libcrypto.so)
  37. ==1748== Your program just tried to execute an instruction that Valgrind
  38. ==1748== did not recognise. There are two possible reasons for this.
  39. ==1748== 1. Your program has a bug and erroneously jumped to a non-code
  40. ==1748== location. If you are running Memcheck and you just saw a
  41. ==1748== warning about a bad jump, it's probably your program's fault.
  42. ==1748== 2. The instruction is legitimate but Valgrind doesn't handle it,
  43. ==1748== i.e. it's Valgrind's fault. If you think this is the case or
  44. ==1748== you are not sure, please let us know and we'll try to fix it.
  45. ==1748== Either way, Valgrind will now raise a SIGILL signal which will
  46. ==1748== probably kill your program.
  47. ==1748== Syscall param ioctl(generic) points to uninitialised byte(s)
  48. ==1748== at 0x4D291D4: __ioctl (in /system/lib/libc.so)
  49. ==1748== by 0x4D4137F: ioctl (in /system/lib/libc.so)
  50. ==1748== Address 0xbdc1d98c is on thread 1's stack
  51. ==1748==
  52. ==1748== Syscall param write(buf) points to uninitialised byte(s)
  53. ==1748== at 0x4D29254: write (in /system/lib/libc.so)
  54. ==1748== by 0xDFA06D5: ??? (in /system/lib/libuip.so)
  55. ==1748== by 0xDFA0A85: mm_open (in /system/lib/libuip.so)
  56. ==1748== by 0xF0AAA2F: khrn_hw_init (in /system/lib/egl/libGLES_java.so)
  57. ==1748== by 0xF0A8515: khrn_hw_common_init (in /system/lib/egl/libGLES_java.so)
  58. ==1748== by 0xF0EA887: egl_server_startup_hack (in /system/lib/egl/libGLES_java.so)
  59. ==1748== by 0xF0FA0A1: khrn_direct_init (in /system/lib/egl/libGLES_java.so)
  60. ==1748== by 0xF0F37D9: eglInitialize_Int (in /system/lib/egl/libGLES_java.so)
  61. ==1748== by 0xF0FB231: eglInitialize (in /system/lib/egl/libGLES_java.so)
  62. ==1748== by 0x4E29CCF: android::egl_display_t::initialize(int*, int*) (in /system/lib/libEGL.so)
  63. ==1748== by 0x4E2AE9F: eglInitialize (in /system/lib/libEGL.so)
  64. ==1748== by 0x11AF3: main (test_hwcomposer.cpp:234)
  65. ==1748== Address 0x4886f10 is 8 bytes inside a block of size 16 alloc'd
  66. ==1748== at 0x4815D90: operator new[](unsigned int) (in /usr/lib/valgrind/vgpreload_memcheck-arm-linux.so)
  67. ==1748==
  68. ==1748== Invalid read of size 4
  69. ==1748== at 0xDF8B194: allocator_context_t::gralloc_free_buffer(native_handle*) (in /system/lib/hw/gralloc.bcm_java.so)
  70. ==1748== by 0xDF8B1E3: allocator_context_t::gralloc_free(alloc_device_t*, native_handle const*) (in /system/lib/hw/gralloc.bcm_java.so)
  71. ==1748== by 0x42521EDF: HWComposerNativeWindowBuffer::HWComposerNativeWindowBuffer(alloc_device_t*, unsigned int, unsigned int, unsigned int, unsigned int) (hwcomposer_window.cpp:101)
  72. ==1748== by 0x42522253: HWComposerNativeWindow::allocateBuffers() (hwcomposer_window.cpp:480)
  73. ==1748== by 0x425223CF: HWComposerNativeWindow::dequeueBuffer(BaseNativeWindowBuffer**, int*) (hwcomposer_window.cpp:202)
  74. ==1748== by 0x42542F6F: BaseNativeWindow::_dequeueBuffer_DEPRECATED(ANativeWindow*, ANativeWindowBuffer**) (nativewindowbase.cpp:163)
  75. ==1748== by 0xF0FAFC7: ??? (in /system/lib/egl/libGLES_java.so)
  76. ==1748== by 0xF0FBCC1: eglMakeCurrent (in /system/lib/egl/libGLES_java.so)
  77. ==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)
  78. ==1748== by 0x4E2C4B3: eglMakeCurrent (in /system/lib/libEGL.so)
  79. ==1748== by 0x11B9F: main (test_hwcomposer.cpp:252)
  80. ==1748== Address 0x154 is not stack'd, malloc'd or (recently) free'd
  81. ==1748==
  82. ==1748==
  83. ==1748== Process terminating with default action of signal 11 (SIGSEGV)
  84. ==1748== Access not within mapped region at address 0x154
  85. ==1748== at 0xDF8B194: allocator_context_t::gralloc_free_buffer(native_handle*) (in /system/lib/hw/gralloc.bcm_java.so)
  86. ==1748== by 0xDF8B1E3: allocator_context_t::gralloc_free(alloc_device_t*, native_handle const*) (in /system/lib/hw/gralloc.bcm_java.so)
  87. ==1748== by 0x42521EDF: HWComposerNativeWindowBuffer::HWComposerNativeWindowBuffer(alloc_device_t*, unsigned int, unsigned int, unsigned int, unsigned int) (hwcomposer_window.cpp:101)
  88. ==1748== by 0x42522253: HWComposerNativeWindow::allocateBuffers() (hwcomposer_window.cpp:480)
  89. ==1748== by 0x425223CF: HWComposerNativeWindow::dequeueBuffer(BaseNativeWindowBuffer**, int*) (hwcomposer_window.cpp:202)
  90. ==1748== by 0x42542F6F: BaseNativeWindow::_dequeueBuffer_DEPRECATED(ANativeWindow*, ANativeWindowBuffer**) (nativewindowbase.cpp:163)
  91. ==1748== by 0xF0FAFC7: ??? (in /system/lib/egl/libGLES_java.so)
  92. ==1748== by 0xF0FBCC1: eglMakeCurrent (in /system/lib/egl/libGLES_java.so)
  93. ==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)
  94. ==1748== by 0x4E2C4B3: eglMakeCurrent (in /system/lib/libEGL.so)
  95. ==1748== by 0x11B9F: main (test_hwcomposer.cpp:252)
  96. ==1748== If you believe this happened as a result of a stack
  97. ==1748== overflow in your program's main thread (unlikely but
  98. ==1748== possible), you can try to increase the size of the
  99. ==1748== main thread stack using the --main-stacksize= flag.
  100. ==1748== The main thread stack size used in this run was 8388608.
  101. ==1748==
  102. ==1748== HEAP SUMMARY:
  103. ==1748== in use at exit: 151,794,991 bytes in 196 blocks
  104. ==1748== total heap usage: 226 allocs, 30 frees, 151,829,332 bytes allocated
  105. ==1748==
  106. ==1748== LEAK SUMMARY:
  107. ==1748== definitely lost: 4 bytes in 1 blocks
  108. ==1748== indirectly lost: 0 bytes in 0 blocks
  109. ==1748== possibly lost: 151,473,208 bytes in 21 blocks
  110. ==1748== still reachable: 321,779 bytes in 174 blocks
  111. ==1748== suppressed: 0 bytes in 0 blocks
  112. ==1748== Rerun with --leak-check=full to see details of leaked memory
  113. ==1748==
  114. ==1748== For counts of detected and suppressed errors, rerun with: -v
  115. ==1748== Use --track-origins=yes to see where uninitialised values come from
  116. ==1748== ERROR SUMMARY: 5 errors from 5 contexts (suppressed: 6 from 6)
  117. Killed
  118. sh-4.3#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement