2017-01-10 8 views
0

android marshmellow 장치 용 AOSP에서 valgrind를 통합하려고합니다.VALGRIND INTERNAL ERROR : Valgrind가 신호 11 (SIGSEGV)을 받았습니다 - 종료

+ Device Architecture- linux-x86 
+ kernel Arch - 3.14.55-x86_64 
+ valgrind version - valgrind-3.11.0.SVN.aosp 
+ Host Architecture - linux-x86_64 (on this machine I am building image for device) 

테스트를 위해 "valgrind ls -l"명령을 실행할 때. 그것의 다음과 같은 오류를 보여주는 : -

[email protected]:/ # valgrind ls -l 
    ==5197== Memcheck, a memory error detector 
    ==5197== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al. 
    ==5197== Using Valgrind-3.11.0.SVN.aosp and LibVEX; rerun with -h for copyright info 
    ==5197== Command: ls -l 
    ==5197== 
    --5197-- VALGRIND INTERNAL ERROR: Valgrind received a signal 11 (SIGSEGV) - exiting 
    --5197-- si_code=80; Faulting address: 0x0; sp: 0x82a4bb7c 

    valgrind: the 'impossible' happened: 
    Killed by fatal signal 

    host stacktrace: 
    ==5197== at 0x3816250E: ??? (in /system/lib/valgrind/memcheck-x86-linux) 
    ==5197== by 0x3807A2F3: ??? (in /system/lib/valgrind/memcheck-x86-linux) 
    ==5197== by 0x380B2B12: ??? (in /system/lib/valgrind/memcheck-x86-linux) 
    ==5197== by 0x380C987E: ??? (in /system/lib/valgrind/memcheck-x86-linux) 

    sched status: 
    running_tid=1 

    Thread 1: status = VgTs_Runnable (lwpid 5197) 
    ==5197== at 0x400D4AB: __dl___linker_init (in /system/bin/linker) 
    ==5197== by 0x40115FE: __dl__start (in /system/bin/linker) 
    ==5197== by 0x1: ??? 


    Note: see also the FAQ in the source distribution. 
    It contains workarounds to several common problems. 
    In particular, if Valgrind aborted or crashed after 
    identifying problems in your program, there's a good chance 
    that fixing those problems will prevent Valgrind aborting or 
    crashing, especially if it happened in m_mallocfree.c. 

    If that doesn't help, please report this bug to: www.valgrind.org 

    In the bug report, send all the above text, the valgrind 
    version, and what OS and version you are using. Thanks. 

같은 오류가 다른 모든 도구 (massif, hellgrind 등)에도 표시됩니다.

답변

0

통합 문제가 있다고 가정합니다. 다른 버전의 valgrind로 시도해 볼 수 있습니까? "valgrind-3.10.1"이라고합시다.

잘 모르겠 음,이 방법으로 문제를 해결할 수 있지만, 본 내용 중 오류를 확인하는 것은 valgrind 도구 버전과 관련이 있습니다.

valgrind 도구가 제대로 컴파일되기를 바랍니다. 명령 프롬프트에서 'file valgrind'명령을 실행하여 교차 확인하십시오.