summaryrefslogtreecommitdiff
path: root/ext/socket/raddrinfo.c
diff options
context:
space:
mode:
authorYusuke Endoh <[email protected]>2023-10-25 20:04:18 +0900
committerYusuke Endoh <[email protected]>2023-10-25 20:04:18 +0900
commitde82439215dd2770ef9a3a2cf5798bdadb788533 ()
tree7e689e8d449285a3b811a9db10444e008f5d998f /ext/socket/raddrinfo.c
parent54a5623e2654771a418c39f245eb83923a6338d3 (diff)
Do not use pthread_setaffinity_np on s390x
Looks like it randomly causes a segfault https://rubyci.s3.amazonaws.com/rhel_zlinux/ruby-master/log/20231025T093302Z.fail.html.gz ``` [11186/26148] TestNetHTTP_v1_2#test_set_form/home/chkbuild/build/20231025T093302Z/ruby/tool/lib/webrick/httprequest.rb:197: [BUG] Segmentation fault at 0x000003ff1ffff000 ruby 3.3.0dev (2023-10-25T07:50:00Z master 526292d9fe) [s390x-linux] ```
-rw-r--r--ext/socket/raddrinfo.c7
1 files changed, 5 insertions, 2 deletions
@@ -482,7 +482,10 @@ start:
}
pthread_detach(th);
-#if defined(HAVE_PTHREAD_SETAFFINITY_NP) && defined(HAVE_SCHED_GETCPU)
cpu_set_t tmp_cpu_set;
CPU_ZERO(&tmp_cpu_set);
CPU_SET(sched_getcpu(), &tmp_cpu_set);
@@ -701,7 +704,7 @@ start:
}
pthread_detach(th);
-#if defined(HAVE_PTHREAD_SETAFFINITY_NP) && defined(HAVE_SCHED_GETCPU)
cpu_set_t tmp_cpu_set;
CPU_ZERO(&tmp_cpu_set);
CPU_SET(sched_getcpu(), &tmp_cpu_set);