1 // FIXME: https://code.google.com/p/address-sanitizer/issues/detail?id=316
4 // RUN: %clangxx_asan -O1 %s -o %t && %run %t 2>&1
6 // https://code.google.com/p/address-sanitizer/issues/detail?id=250
13 int id
= shmget(IPC_PRIVATE
, 4096, 0644 | IPC_CREAT
);
16 int res
= shmctl(id
, IPC_STAT
, &ds
);
18 printf("shm_segsz: %zd\n", ds
.shm_segsz
);
19 assert(ds
.shm_segsz
== 4096);
20 assert(-1 != shmctl(id
, IPC_RMID
, 0));
22 struct shm_info shmInfo
;
23 res
= shmctl(0, SHM_INFO
, (struct shmid_ds
*)&shmInfo
);