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.