Bug 388664 - unhandled arm64-linux syscall: 117 (ptrace)
Summary: unhandled arm64-linux syscall: 117 (ptrace)
Status: RESOLVED DUPLICATE of bug 368913
Alias: None
Product: valgrind
Classification: Developer tools
Component: memcheck (show other bugs)
Version: 3.13.0
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Julian Seward
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-08 03:43 UTC by John Reiser
Modified: 2018-06-19 16:20 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Reiser 2018-01-08 03:43:31 UTC
On aarch64 (arm64-linux, 64-bit ARM) memcheck complains
   WARNING: unhandled arm64-linux syscall: 117
for the terminal input
   $ valgrind gdb /bin/date
   (gdb) run

Diagnostic info:
   $ grep 117 $(find /usr/include -name '*unistd*')
   /usr/include/asm-generic/unistd.h:#define __NR_ptrace 117

Version info:
=====
$ uname -a
Linux host.domain 4.14.11-300.fc27.aarch64 #1 SMP Wed Jan 3 13:38:59 UTC 2018 aarch64 aarch64 aarch64 GNU/Linux

$ valgrind --version
valgrind-3.13.0

$ gdb --version
GNU gdb (GDB) Fedora 8.0.1-33.fc27

$ /lib64/libc.so.6
GNU C Library (GNU libc) stable release version 2.26, by Roland McGrath et al.
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 7.2.1 20170915 (Red Hat 7.2.1-2).     <<<<<
Available extensions:
	crypt add-on version 2.1 by Michael Glad and others
	GNU Libidn by Simon Josefsson
	Native POSIX Threads Library by Ulrich Drepper et al
	BIND-8.2.3-T5B
libc ABIs: UNIQUE
=====


Hundreds of "ordinary" complaints from memcheck precede the complaint about syscall #117.  Such as:
=====
==2405== Conditional jump or move depends on uninitialised value(s)
==2405==    at 0x4BCCAF0: GC_push_all_eager (mark.c:1540)
==2405==    by 0x4BCD82F: GC_push_current_stack (mark_rts.c:664)
==2405==    by 0x4BC9E2F: GC_with_callee_saves_pushed (mach_dep.c:303)
==2405==    by 0x4BCE663: GC_push_regs_and_stack (mark_rts.c:741)
==2405==    by 0x4BCE663: GC_push_roots (mark_rts.c:814)
==2405==    by 0x4BCD5BB: GC_mark_some (mark.c:408)
==2405==    by 0x4BC27F7: GC_stopped_mark (alloc.c:698)
==2405==    by 0x4BC2E7B: GC_try_to_collect_inner (alloc.c:486)
==2405==    by 0x4BD025B: GC_init (misc.c:1282)
==2405==    by 0x4A87787: scm_storage_prehistory (gc.c:619)
==2405==    by 0x4A972FB: scm_i_init_guile (init.c:389)
==2405==    by 0x4AF169F: scm_i_init_thread_for_guile (threads.c:833)
==2405==    by 0x4AF16D7: with_guile_and_parent (threads.c:899)
=====
Comment 1 John Reiser 2018-01-08 04:04:33 UTC
THe complete complaint is
=====
(gdb) run
Starting program: /usr/bin/date 
--2479-- WARNING: unhandled arm64-linux syscall: 117
--2479-- You may be able to write your own handler.
--2479-- Read the file README_MISSING_SYSCALL_OR_IOCTL.
--2479-- Nevertheless we consider this a bug.  Please report
--2479-- it at http://valgrind.org/support/bug_reports.html.
Could not trace the inferior process.
Error: ptrace: Function not implemented==2479== 
==2479== HEAP SUMMARY:
==2479==     in use at exit: 5,824,751 bytes in 60,163 blocks
==2479==   total heap usage: 130,709 allocs, 70,546 frees, 52,604,986 bytes allocated
==2479== 
==2479== LEAK SUMMARY:
==2479==    definitely lost: 5,905 bytes in 10 blocks
==2479==    indirectly lost: 0 bytes in 0 blocks
==2479==      possibly lost: 1,353,411 bytes in 10,972 blocks
==2479==    still reachable: 4,465,435 bytes in 49,181 blocks
==2479==         suppressed: 0 bytes in 0 blocks
==2479== Rerun with --leak-check=full to see details of leaked memory
==2479== 
==2479== For counts of detected and suppressed errors, rerun with: -v
==2479== Use --track-origins=yes to see where uninitialised values come from
==2479== ERROR SUMMARY: 42793 errors from 121 contexts (suppressed: 0 from 0)
During startup program exited with code 127.
(gdb) q
=====

and perhaps this part "Function not implemented" is an additional clue:
=====
Could not trace the inferior process.
Error: ptrace: Function not implemented==2479== 
==2479== HEAP SUMMARY:
=====
Comment 2 Mark Wielaard 2018-06-19 16:20:26 UTC

*** This bug has been marked as a duplicate of bug 368913 ***