Bug 376870 - unhandled amd64-darwin syscall: unix:446 (proc_rlimit_control)
Summary: unhandled amd64-darwin syscall: unix:446 (proc_rlimit_control)
Status: REPORTED
Alias: None
Product: valgrind
Classification: Developer tools
Component: memcheck (show other bugs)
Version: 3.12.0
Platform: macOS (DMG) macOS
: NOR normal
Target Milestone: ---
Assignee: Rhys Kidd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-24 03:55 UTC by Hamish Moffatt
Modified: 2017-04-30 20:15 UTC (History)
2 users (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 Hamish Moffatt 2017-02-24 03:55:37 UTC
I am trying to run my app in memcheck on Mavericks/10.9. (It is actually running in a 10.9 virtual machine in Parallels 11, because the host is running Sierra/10.12 which is not supported yet.)

I got quite a few messages about an unhandled syscall:

--10283-- WARNING: unhandled amd64-darwin syscall: unix:446
--10283-- You may be able to write your own handler.
--10283-- Read the file README_MISSING_SYSCALL_OR_IOCTL.
--10283-- Nevertheless we consider this a bug.  Please report
--10283-- it at http://valgrind.org/support/bug_reports.html.

At the point when I expected my program to crash, I got:

eq_SyscallStatus:
  {78 0 43}
  {78 0 40}

valgrind: m_syswrap/syswrap-main.c:438 (Bool eq_SyscallStatus(UInt, SyscallStatus *, SyscallStatus *)): the 'impossible' happened.

host stacktrace:
==10283==    at 0x238042521: ???
==10283==    by 0x238042932: ???
==10283==    by 0x238042915: ???
==10283==    by 0x2380C13FE: ???
==10283==    by 0x2380C0989: ???
==10283==    by 0x2380BEDDB: ???
==10283==    by 0x2380BCCCD: ???
==10283==    by 0x2380CE1CC: ???

sched status:
  running_tid=1


and a stack trace.
Comment 1 Rhys Kidd 2017-04-30 20:15:46 UTC
Hello Hamish,

I've tagged this bug report with the macOS attributes.

The missing syscall is proc_rlimit_control(). That is one Valgrind needs to have support added for.

macOS 10.12 support is also improving in latest SVN trunk of Valgrind, if you're interested in testing the bleeding edge code.