Program received signal SIGSYS, Bad system call. [Switching to LWP 24547] 0xf4b88a7f in __pthread_getaffinity_new (th=th@entry=3949722432, cpusetsize=cpusetsize@entry=32, cpuset=cpuset@entry=0x5d7f0158) at ../nptl/sysdeps/unix/sysv/linux/pthread_getaffinity.c:35 35 ../nptl/sysdeps/unix/sysv/linux/pthread_getaffinity.c: No such file or directory. (gdb) p ((void *)$sp) - 0x394 $1 = (void *) 0xeb6be33c (gdb) awatch *(void **) 0xeb6be33c Hardware access (read/write) watchpoint 2: *(void **) 0xeb6be33c (gdb) c Continuing. Hardware access (read/write) watchpoint 2: *(void **) 0xeb6be33c Old value = (void *) 0x0 New value = (void *) 0xb20 0x00000b20 in ?? () (gdb) bt #0 0x00000b20 in () #1 0x0000001f in () #2 0xffffffff in () (gdb) info reg eax 0x5f5d7200 1599959552 ecx 0xeb6be3cc -345250868 edx 0x5d7f0158 1568604504 ebx 0x7 7 esp 0xeb6be340 0xeb6be340 ebp 0x20 0x20 esi 0x20 32 edi 0xf4b92000 -189194240 eip 0xb20 0xb20 eflags 0x246 [ PF ZF IF ] cs 0x23 35 ss 0x2b 43 ds 0x2b 43 es 0x2b 43 fs 0x0 0 gs 0x63 99 (gdb) c Continuing. Program received signal SIGSEGV, Segmentation fault. 0x00000b20 in ?? ()