Bug 413369 - unhandled amd64-darwin syscall: unix:151 (getpgid)
Summary: unhandled amd64-darwin syscall: unix:151 (getpgid)
Status: REPORTED
Alias: None
Product: valgrind
Classification: Developer tools
Component: memcheck (show other bugs)
Version: 3.15 SVN
Platform: unspecified macOS
: NOR normal
Target Milestone: ---
Assignee: Rhys Kidd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-23 16:12 UTC by abcsxyz
Modified: 2022-05-25 13:59 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description abcsxyz 2019-10-23 16:12:02 UTC
SUMMARY

I'm getting a warning "WARNING: unhandled amd64-darwin syscall: unix:151"
whenever I'm calling getpgid under valgrind.

STEPS TO REPRODUCE
```
#include <stdio.h>
#include <unistd.h>

int             main()
{
        pid_t pgid;

        if ((pgid = getpgid(0)) == -1)
                perror("getpgid");
        else
                printf("pgid : %d\n", pgid);
}
```

OBSERVED RESULT
I'm getting the pgid properly whenever I'm just running the program alone.
With valgrind, perror is printing me `getpgid: Function not implemented`.

EXPECTED RESULT

I should always have my pgid.

SOFTWARE/OS VERSIONS
Windows: 
macOS: Sierra 10.12.6
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Personnal stackoverflow question.
https://stackoverflow.com/questions/58525060/getpgid-not-implemented-with-valgrind/58526688#58526688