찾다

 >  Q&A  >  본문

android - 最近在测试NDK的时候一直挂在libc

最近在测试NDK的时候发现代码经常挂在libc上面,但是有时候又可以。这个错误又没有指出是那个地方调用导致了错误。毫无头绪

标签TD_NDK是自己打印的日志

01-04 19:27:09.519 I/TD_NDK  (25720): start_init [start_time:1483529229, abi:armeabi, abi_bit:32]
01-04 19:27:09.529 D/dalvikvm(25720): GC_CONCURRENT freed 694K, 27% free 8216K/11112K, paused 4ms+19ms, total 72ms
01-04 19:27:09.529 W/SurfaceFlinger(  127): WARNING: disp 2: connected, non-null list, layers=1
01-04 19:27:09.529 I/brcm-hwc(  127): virtual_display_management: defering composition for virtual display 2...
01-04 19:27:09.529 I/brcm-hwc(  127): update_wfc_scene: Virtual display 2, ignoring WFC scene update
01-04 19:27:09.539 I/TD_NDK  (25720): start_init32 [e_entry:0xd, off:0x16438, size:36152]
01-04 19:27:09.539 F/libc    (25720): Fatal signal 11 (SIGSEGV) at 0x6157b9b3 (code=1), thread 25720 (roid.armdemo304)
01-04 19:27:09.539 F/libc    (25720): Unable to open connection to debuggerd: Connection refused
01-04 19:27:09.539 W/SurfaceFlinger(  127): WARNING: disp 2: connected, non-null list, layers=1
高洛峰高洛峰2772일 전483

모든 응답(1)나는 대답할 것이다

  • 阿神

    阿神2017-04-18 09:06:04

    01-04 19:27:09.539 F/libc(25720): 0x6157b9b3(코드=1)의 치명적인 신호 11(SIGSEGV), 스레드 25720(roid.armdemo304)

    sigsegv가 나타나면 기본적으로 포인터 문제이거나 범위를 벗어난 배열이거나 오버플로라고 결론을 내릴 수 있습니다

    회신하다
    0
  • 취소회신하다