首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >VALGRIND内部错误: Valgrind收到信号11 (SIGSEGV) -正在退出

VALGRIND内部错误: Valgrind收到信号11 (SIGSEGV) -正在退出
EN

Stack Overflow用户
提问于 2017-01-10 19:20:09
回答 1查看 1.5K关注 0票数 0

我正在为android marshmellow设备集成AOSP中的valgrind。

代码语言:javascript
复制
+ 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“进行测试时。它显示以下错误--

代码语言:javascript
复制
    root@ET50T:/ # 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等)也显示相同的错误。

EN

回答 1

Stack Overflow用户

发布于 2017-02-22 01:01:18

我认为问题出在集成上。你可以尝试使用其他版本的valgrind吗,比如说"valgrind-3.10.1"?

不确定,这可能会解决问题,但只是为了检查错误,无论您看到的是与valgrind工具版本有关的错误。

我希望valgrind工具是正确交叉编译的,请在命令提示符下运行'file valgrind‘命令来交叉验证。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/41567569

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档