Bug 429692

Summary: unhandled ppc64le-linux syscall: 147 (getsid)
Product: [Developer tools] valgrind Reporter: Luke-Jr <luke-jr+kdebugs>
Component: generalAssignee: Julian Seward <jseward>
Status: RESOLVED FIXED    
Severity: major CC: mark
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Luke-Jr 2020-11-26 14:53:09 UTC
uname -a: Linux ryuu 4.19.152-gentoo-nobuiltinmemcmp #1 SMP Sun Oct 18 21:38:42 EDT 2020 ppc64le POWER9, altivec supported PowerNV T2P9D01 REV 1.00 GNU/Linux
Comment 1 Mark Wielaard 2020-11-27 00:01:59 UTC
This is getsid, which seems enabled for all other arches.

Untested fix:

diff --git a/coregrind/m_syswrap/syswrap-ppc64-linux.c b/coregrind/m_syswrap/syswrap-ppc64-linux.c
index 7026e4ac6..6f682923b 100644
--- a/coregrind/m_syswrap/syswrap-ppc64-linux.c
+++ b/coregrind/m_syswrap/syswrap-ppc64-linux.c
@@ -772,7 +772,7 @@ static SyscallTableEntry syscall_table[] = {
 
    GENXY(__NR_readv,             sys_readv),              // 145
    GENX_(__NR_writev,            sys_writev),             // 146
-// _____(__NR_getsid,            sys_getsid),             // 147
+   GENX_(__NR_getsid,            sys_getsid),             // 147
    GENX_(__NR_fdatasync,         sys_fdatasync),          // 148
    LINXY(__NR__sysctl,           sys_sysctl),             // 149
Comment 2 Mark Wielaard 2020-11-27 11:54:46 UTC
Tested, that was indeed the right fix.

commit b092ed44abf80ee6861203133803d4924a8d3ce9
Author: Mark Wielaard <mark@klomp.org>
Date:   Fri Nov 27 12:53:18 2020 +0100

    Hook up unhandled ppc64le-linux syscall: 147 (getsid)
    
    https://bugs.kde.org/show_bug.cgi?id=429692