Bug 459511 - [aarch64][android] crash in getUIntLittleEndianly
Summary: [aarch64][android] crash in getUIntLittleEndianly
Status: REPORTED
Alias: None
Product: valgrind
Classification: Developer tools
Component: memcheck (other bugs)
Version First Reported In: 3.19.0
Platform: Android Android 10.x
: NOR crash
Target Milestone: ---
Assignee: Julian Seward
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-22 07:15 UTC by 632423316@163.com
Modified: 2022-09-22 07:15 UTC (History)
0 users

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


Attachments
always crash in getUIntLittleEndianly (110.86 KB, text/plain)
2022-09-22 07:15 UTC, 632423316@163.com
Details

Note You need to log in before you can comment on or make changes to this bug.
Description 632423316@163.com 2022-09-22 07:15:16 UTC
Created attachment 152323 [details]
always crash in getUIntLittleEndianly

==8300== Use of uninitialised value of size 8
==8300==    at 0x40E2624: __dl__ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE21__grow_by_and_replaceEmmmmmmPKc (in /apex/com.android.runtime/bin/linker64)
==8300==    by 0x4053F83: __dl__Z14normalize_pathPKcPNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE (in /apex/com.android.runtime/bin/linker64)
==8300==    by 0x405410B: __dl__Z14parse_zip_pathPKcPNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES8_ (in /apex/com.android.runtime/bin/linker64)
==8300==    by 0x40545F7: __dl__Z13resolve_pathsRNSt3__16vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEEEPS8_ (in /apex/com.android.runtime/bin/linker64)
==8300==    by 0x40518E7: __dl__ZN6soinfo14set_dt_runpathEPKc (in /apex/com.android.runtime/bin/linker64)
==8300==    by 0x403B067: __dl__ZN6soinfo13prelink_imageEv (in /apex/com.android.runtime/bin/linker64)
==8300==    by 0x404E423: __dl__ZL29__linker_init_post_relocationR19KernelArgumentBlockR6soinfo (in /apex/com.android.runtime/bin/linker64)
==8300==    by 0x404D7FF: __dl___linker_init (in /apex/com.android.runtime/bin/linker64)
==8300==    by 0x4054B07: __dl__start (in /apex/com.android.runtime/bin/linker64)
==8300==
WARNING: linker: Warning: "/data/NdkInst/libexec/valgrind/vgpreload_core-arm64-linux.so" has unsupported flags DT_FLAGS_1=0x421 (ignoring unsupported flags)
WARNING: linker: Warning: "/data/NdkInst/libexec/valgrind/vgpreload_memcheck-arm64-linux.so" has unsupported flags DT_FLAGS_1=0x421 (ignoring unsupported flags)
--8300-- VALGRIND INTERNAL ERROR: Valgrind received a signal 11 (SIGSEGV) - exiting
--8300-- si_code=2;  Faulting address: 0x66D575F;  sp: 0x10035895a0

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

host stacktrace:
==8300==    at 0x581AEF68: getUIntLittleEndianly (guest_arm64_toIR.c:137)
==8300==    by 0x581AEF68: disInstr_ARM64_WRK (guest_arm64_toIR.c:15818)
==8300==    by 0x581AEC8F: disInstr_ARM64 (guest_arm64_toIR.c:15989)
==8300==    by 0x581AB71B: disassemble_basic_block_till_stop (guest_generic_bb_to_IR.c:956)
==8300==    by 0x581A9C2F: bb_to_IR (guest_generic_bb_to_IR.c:1365)
==8300==    by 0x5818F27F: LibVEX_FrontEnd (main_main.c:583)
==8300==    by 0x5818FC1F: LibVEX_Translate (main_main.c:1235)
==8300==    by 0x580CC507: vgPlain_translate (m_translate.c:1831)
==8300==    by 0x581429C3: handle_tt_miss (scheduler.c:1141)
==8300==    by 0x581429C3: vgPlain_scheduler (scheduler.c:1503)
==8300==    by 0x58156357: thread_wrapper (syswrap-linux.c:101)
==8300==    by 0x58156357: run_a_thread_NORETURN (syswrap-linux.c:154)
==8300==    by 0xFFFFFFFFFFFFFFFF: ???

sched status:
  running_tid=1

Thread 1: status = VgTs_Runnable (lwpid 8300)
==8300==    at 0x66D575C: ??? (in /apex/com.android.runtime/lib64/bionic/libc.so)
client stack range: [0x1FFEFF8000 0x1FFF000FFF] client SP: 0x1FFEFFEC20
valgrind stack range: [0x100348A000 0x1003589FFF] top usage: 15504 of 1048576