https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70520
Bug ID: 70520 Summary: Incorrect child stack alignment in c-c++-common/asan/clone-test-1.c Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: testsuite Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com Target Milestone: --- c-c++-common/asan/clone-test-1.c has int main(int argc, char **argv) { int i; const int kStackSize = 1 << 20; char child_stack[kStackSize + 1]; char *sp = child_stack + kStackSize; /* Stack grows down. */ printf("Parent: %p\n", sp); pid_t clone_pid = clone(Child, sp, CLONE_FILES | CLONE_VM, NULL, 0, 0, 0); There is no guarantee that "sp" will be aligned at 16 bytes, which is required by x86 psABIs.