[Webkit-unassigned] [Bug 128572] New: O_CLOEXEC in shm_open does not work on FreeBSD
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Feb 10 18:51:56 PST 2014
https://bugs.webkit.org/show_bug.cgi?id=128572
Summary: O_CLOEXEC in shm_open does not work on FreeBSD
Product: WebKit
Version: 528+ (Nightly build)
Platform: PC
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P2
Component: WebKit2
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: lantw44 at gmail.com
In Source/WebKit2/Platform/unix/SharedMemoryUnix.cpp, line 110:
fileDescriptor = shm_open(tempName.data(), O_CREAT | O_CLOEXEC | O_RDWR, S_IRUSR | S_IWUSR);
The O_CLOEXEC flag causes the system call to fail with EINVAL (invalid arguments).
According to POSIX standard (http://pubs.opengroup.org/onlinepubs/9699919799/functions/shm_open.html), the O_CLOEXEC is not needed because the FD_CLOEXEC file descriptor flag is automatically set by shm_open.
I think we can just remove the O_CLOEXEC flag to fix the issue. This issue has caused all applications using WebKit2GTK+ on FreeBSD endlessly retrying shm_open.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list