Bug 374814 - VALGRIND INTERNAL ERROR: Valgrind received a signal 11 (SIGSEGV) - exiting
Summary: VALGRIND INTERNAL ERROR: Valgrind received a signal 11 (SIGSEGV) - exiting
Status: RESOLVED WAITINGFORINFO
Alias: None
Product: valgrind
Classification: Developer tools
Component: general (other bugs)
Version First Reported In: 3.11 SVN
Platform: Android Android 6.x
: NOR critical
Target Milestone: ---
Assignee: Greg
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-09 14:58 UTC by Ankit
Modified: 2023-11-20 15:08 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
The output file from valgrind when it crashed the 2nd time (4.12 KB, text/plain)
2023-04-07 05:01 UTC, Greg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ankit 2017-01-09 14:58:20 UTC
I am integrating valgrind in AOSP for android marshmellow device. 
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)

when I run command "valgrind ls -l" for testing. Its showing following error-:

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.

same error is showing for all other tools also.
Comment 1 Greg 2023-04-07 05:01:45 UTC
Created attachment 157914 [details]
The output file from valgrind when it crashed the 2nd time

Im writing a game, and before the code for generating and copying part of the 2d array of enums worked fine, but it started erroring, then valgrind crashed and I can't run it again.
Comment 2 Mark Wielaard 2023-04-14 21:42:22 UTC
(In reply to Greg from comment #1)
> Created attachment 157914 [details]
> The output file from valgrind when it crashed the 2nd time
> 
> Im writing a game, and before the code for generating and copying part of
> the 2d array of enums worked fine, but it started erroring, then valgrind
> crashed and I can't run it again.

There is an Invalid write in your program before the internal valgrind issue.
Please resolve that error first.
Comment 3 Paul Floyd 2023-11-20 15:08:30 UTC
No answer for 7 months. Assuming this is user errror.