Bug 319419

Summary: unhandled syscall: unix:369 (kevent64)
Product: [Developer tools] valgrind Reporter: Paul <paul.gedeon>
Component: generalAssignee: Rhys Kidd <rhyskidd>
Status: RESOLVED FIXED    
Severity: normal CC: adam.taylor, marinus.savoritias, rhyskidd
Priority: NOR    
Version First Reported In: 3.8.0   
Target Milestone: ---   
Platform: Other   
OS: macOS   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: 369 error log

Description Paul 2013-05-06 17:28:13 UTC
Hello, I have the following bug. I use Valgrind to debug the iOS Simulator launched by Xamarin Studio.

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

Thank you,
Paul
Comment 1 Paul 2013-05-06 18:21:19 UTC
After some googling, syscall 369 is prlimit64. If it's any help, I installed Valgrind with the argument --enable-only32bit.
Comment 2 adam 2013-05-13 22:37:54 UTC
Created attachment 79876 [details]
369 error log
Comment 3 adam 2013-05-13 22:39:50 UTC
I'm launching valgrind as follows from within Xcode:

#define VALGRIND "/usr/valgrind/bin/valgrind"
int main(int argc, char *argv[])
{
    
#ifdef VALGRIND_REXEC
    /* Using the valgrind build config, rexec ourself
     * in valgrind */
    if (argc < 2 || (argc >= 2 && strcmp(argv[1], "-valgrind") != 0)) {
        execl(VALGRIND, VALGRIND, "--leak-check=full", argv[0], "-valgrind -v",
              NULL);
    }
#endif
...
}
Comment 4 Rhys Kidd 2015-05-21 14:18:15 UTC
Actually, on OS X 10.6+ syscall: unix: 369 appears to be kevent64. We do now support that syscall in Valgrind SVN trunk.

Perhaps you could provide some more details of the specific OS X you are running these programs on when the error reports? And have a test with an SVN trunk version of Valgrind if possible.
Comment 5 Rhys Kidd 2016-12-05 06:50:10 UTC
Resolving as fixed in Valgrind SVN.

On macOS syscall: unix: 369 (kevent64) has been implemented for >= DARWIN_10_6.

Please reopen if a reproducing test case can be created for modern Valgrind.
Comment 6 fbampaloukas 2019-06-16 13:59:15 UTC
Closing as Worksforme due to inactivity for more than 15 days as per:

https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging#Policies

Fanis