Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1251181

Summary: [aarch64] unhandled syscall: setuid (146) and setresgid (149)
Product: Red Hat Enterprise Linux 7 Reporter: Patrik Kis <pkis>
Component: valgrindAssignee: Mark Wielaard <mjw>
Status: CLOSED ERRATA QA Contact: Miloš Prchlík <mprchlik>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.1CC: jakub, mbenitez, mcermak, mfranc, mprchlik
Target Milestone: rc   
Target Release: ---   
Hardware: aarch64   
OS: Unspecified   
Whiteboard:
Fixed In Version: valgrind-3.10.0-13.el7 Doc Type: Bug Fix
Doc Text:
Cause: Valgrind didn't recognize the setuid and setresgid system calls on aarch64. Consequence: Programs using those system calls on aarch64 would generate a warning when running under valgrind. Fix: valgrind now recognizes those system calls. Result: No more warnings when running programs under valgrind that use those system calls.
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-19 09:05:16 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Patrik Kis 2015-08-06 15:58:25 UTC
Description of problem:
Valgrind drops the following error:

==10476== Memcheck, a memory error detector
==10476== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
==10476== Using Valgrind-3.10.0 and LibVEX; rerun with -h for copyright info
==10476== Command: /usr/sbin/slapd -u ldap -g ldap -h ldap://127.0.0.1 -d0
==10476== 
--10476-- WARNING: unhandled syscall: 149
--10476-- You may be able to write your own handler.
--10476-- Read the file README_MISSING_SYSCALL_OR_IOCTL.
--10476-- Nevertheless we consider this a bug.  Please report
--10476-- it at http://valgrind.org/support/bug_reports.html.
==10476== 
==10476== HEAP SUMMARY:
==10476==     in use at exit: 81,118 bytes in 75 blocks
==10476==   total heap usage: 213 allocs, 138 frees, 118,947 bytes allocated
==10476== 
==10476== For a detailed leak analysis, rerun with: --leak-check=full
==10476== 
==10476== For counts of detected and suppressed errors, rerun with: -v
==10476== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)


Version-Release number of selected component (if applicable):
valgrind-3.10.0-11.el7.aarch64
openldap-2.4.40-5.el7.aarch64

How reproducible:
always

Steps to Reproduce:
# valgrind --leak-check=no --show-possibly-lost=no --malloc-fill=0xFF /usr/sbin/slapd -u ldap -g ldap -h ldap://127.0.0.1
==10660== Memcheck, a memory error detector
==10660== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
==10660== Using Valgrind-3.10.0 and LibVEX; rerun with -h for copyright info
==10660== Command: /usr/sbin/slapd -u ldap -g ldap -h ldap://127.0.0.1
==10660== 
--10660-- WARNING: unhandled syscall: 149
--10660-- You may be able to write your own handler.
--10660-- Read the file README_MISSING_SYSCALL_OR_IOCTL.
--10660-- Nevertheless we consider this a bug.  Please report
--10660-- it at http://valgrind.org/support/bug_reports.html.
==10660== 
==10660== HEAP SUMMARY:
==10660==     in use at exit: 81,098 bytes in 74 blocks
==10660==   total heap usage: 205 allocs, 131 frees, 118,772 bytes allocated
==10660== 
==10660== For a detailed leak analysis, rerun with: --leak-check=full
==10660== 
==10660== For counts of detected and suppressed errors, rerun with: -v
==10660== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)

Comment 1 Mark Wielaard 2015-08-07 11:43:10 UTC
This seems to be setresgid which indeed hasn't been implemented for arm64 in valgrind.

Comment 2 Mark Wielaard 2015-08-09 22:40:06 UTC
This is fixed upstream in valgrind svn r15517.

Comment 3 Mark Wielaard 2015-08-10 22:02:43 UTC
Upstream patch has been backported to the fedora package valgrind-3.10.1-17.fc24.

Comment 6 Miloš Prchlík 2015-09-23 11:55:24 UTC
Verified for build valgrind-3.10.0-16.el7.

Comment 8 errata-xmlrpc 2015-11-19 09:05:16 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-2259.html