Bug 429692 - unhandled ppc64le-linux syscall: 147 (getsid)
Summary: unhandled ppc64le-linux syscall: 147 (getsid)
Status: RESOLVED FIXED
Alias: None
Product: valgrind
Classification: Developer tools
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Gentoo Packages Linux
: NOR major
Target Milestone: ---
Assignee: Julian Seward
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-26 14:53 UTC by Luke-Jr
Modified: 2020-11-27 11:54 UTC (History)
1 user (show)

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 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