https://bugs.kde.org/show_bug.cgi?id=465916

            Bug ID: 465916
           Summary: Valgrind crashing with segmentation fault
    Classification: Developer tools
           Product: valgrind
           Version: 3.20.0
          Platform: Android
                OS: Android 11.x
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: jsew...@acm.org
          Reporter: r.kat...@samsung.com
  Target Milestone: ---

SUMMARY
Hi,
 I cross compile valgrind version 3.20 and tried to run on android 11 device.
<path>/data/local/Inst/bin # ./valgrind --help
Segmentation fault

STEPS TO REPRODUCE
1. export NDKROOT=<NDK local path>
2. 
export
AR=$NDKROOT/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-ar 
export
LD=$NDKROOT/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-ld
export
CC=$NDKROOT/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android29-clang
export
CXX=$NDKROOT/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android29-clang++

3.
./autogen.sh

4.
CPPFLAGS="--sysroot=$NDKROOT/toolchains/llvm/prebuilt/linux-x86_64/sysroot" \
   CFLAGS="--sysroot=$NDKROOT/toolchains/llvm/prebuilt/linux-x86_64/sysroot" \
   ./configure --prefix=/data/local/Inst \
   --host=aarch64-linux  --target=aarch64-linux-android\
   --with-tmpdir=/data/local/tmp --enable-only64bit

5. make -j4
6. make -j4 install DESTDIR=`pwd`/Inst
7. push binaries to android device
8. run valgrind executable

OBSERVED RESULT
segmentation fault

EXPECTED RESULT

help menu

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Ubunt 18.04 (host for cross compilation)
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to