Bug 14702 – struct epoll_event is packed incorrectly

Status
RESOLVED
Resolution
FIXED
Severity
critical
Priority
P1
Component
druntime
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2015-06-16T10:22:00Z
Last change time
2015-10-04T18:18:59Z
Keywords
pull
Assigned to
nobody
Creator
tomer

Comments

Comment #0 by tomer — 2015-06-16T10:22:05Z
In core.sys.linux.epoll, struct epoll_event is defined as struct epoll_event { align(1): uint events; epoll_data_t data; } where it should be align(1) struct epoll_event { align(1): uint events; epoll_data_t data; } This causes epoll_event.sizeof == 16, where it should be 12, thus an array of epoll_event is meaningless.
Comment #1 by tomer — 2015-06-16T10:23:29Z
Comment #2 by github-bugzilla — 2015-07-15T08:54:45Z
Comment #3 by bugzilla — 2015-07-20T14:59:11Z
*** Issue 13338 has been marked as a duplicate of this issue. ***
Comment #4 by github-bugzilla — 2015-10-04T18:18:59Z