Bug 364533 - Process terminating with default action of signal 4 (SIGILL): dumping core,Process terminating with default action of signal 4 (SIGILL): dumping core : at 0x4000E7C: ??? (in /lib/ld-uClibc.so.0)
Summary: Process terminating with default action of signal 4 (SIGILL): dumping core,Pr...
Status: REPORTED
Alias: None
Product: valgrind
Classification: Developer tools
Component: memcheck (other bugs)
Version First Reported In: 3.11.0
Platform: Other Linux
: NOR crash
Target Milestone: ---
Assignee: Julian Seward
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-20 12:29 UTC by Muthuselvi
Modified: 2016-06-20 12:29 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Muthuselvi 2016-06-20 12:29:43 UTC
Hi,
We are cross compiling the Valgrind to " ARMv7 Processor rev 3 (v7l)" and migrating it in our environment. Always we are facing the issue "Process terminating with default action of signal 4 (SIGILL): dumping core: at 0x4000E7C: ??? (in /lib/ld-uClibc.so.0)".
Can you please update which configuration is wrong.
Steps we are did:
export PATH=/opt/toolchains/crosstools-arm-gcc-4.6-linux-3.4-uclibc-0.9.32-binutils-2.21-NPTL/usr/bin/:$PATH
export CROSS_COMPILE=arm-unknown-linux-uclibcgnueabi-
export CC=${CROSS_COMPILE}gcc
export CPP=${CROSS_COMPILE}cpp
export CXX=${CROSS_COMPILE}g++
export LD=${CROSS_COMPILE}ld
export AR=${CROSS_COMPILE}ar

./configure --target=arm-unknown-linux-uclibcgnueabi --host=armv7-unknown-linux-uclibcgnueabi --prefix=/var/muthu

make

make install


Reproducible: Always

Steps to Reproduce:
export PATH=/opt/toolchains/crosstools-arm-gcc-4.6-linux-3.4-uclibc-0.9.32-binutils-2.21-NPTL/usr/bin/:$PATH
export CROSS_COMPILE=arm-unknown-linux-uclibcgnueabi-
export CC=${CROSS_COMPILE}gcc
export CPP=${CROSS_COMPILE}cpp
export CXX=${CROSS_COMPILE}g++
export LD=${CROSS_COMPILE}ld
export AR=${CROSS_COMPILE}ar

./configure --target=arm-unknown-linux-uclibcgnueabi --host=armv7-unknown-linux-uclibcgnueabi --prefix=/var/muthu

make

make install

Then move the packages which is placed in --prefix path to our cross compiler environment..


Actual Results:  
# ./valgrind ls -l
==6615== Memcheck, a memory error detector
==6615== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==6615== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info
==6615== Command: ls -l
==6615==
==6615==
==6615== Process terminating with default action of signal 4 (SIGILL): dumping core
==6615==  Illegal opcode at address 0x380782E0
==6615==    at 0x4000E7C: ??? (in /lib/ld-uClibc.so.0)
==6615==
==6615== HEAP SUMMARY:
==6615==     in use at exit: 0 bytes in 0 blocks
==6615==   total heap usage: 0 allocs, 0 frees, 0 bytes allocated
==6615==
==6615== All heap blocks were freed -- no leaks are possible
==6615==
==6615== For counts of detected and suppressed errors,memcheck-arm-li[6615] killed because of sig - 4
STACK DUMP:
0x61f2feac: 61f2fee8 38ab87f8 6149c7e0 00000000 00000000 00000025 38043018
 rerun with: 0x61f2fec8: 00000004 380382d4 00000000 00000000 00000000 00000000 00000000
0x61f2fee4: 00000000 00000000 000019d7 00001630 38049a4c 00000000 3821b80c
0x61f2ff00: 61f2ff54 00000000 00000000 00000000 00000000 00000000 384e8844
0x61f2ff1c: 38ab87f8 00000001 00001630 3821af58 3804a898 14000004 38048808
0x61f2ff38: fffbfeff ffffffff 00000008 00000000 fffbfa27 ffffffff 00000000
0x61f2ff54: 00000003 38ab87f8 3803f998 deadbe00 00000001 deadbeef 380e71a4
0x61f2ff70: deadbeef 61f2ffb0 38ab8800 0000002b 00000000 000186a0 00000014
0x61f2ff8c: 00000001 6149b2e0 6149b2e0 00000000 00000001 00000001 6149b2e0
0x61f2ffa8: 00000000 00000001 00000001 00000003 00000000 380953ec 38179cf0

Expected Results:  
Without any issues

Please help me to resolve this asap.