ruby-dev (Japanese) list archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-dev:50643] [Ruby trunk Bug#15178] Wrong paramaters passing to pthread_setname_np(3)
       [not found] <redmine.issue-15178.20180929154345@ruby-lang.org>
@ 2018-09-29 15:43 ` taca
  0 siblings, 0 replies; only message in thread
From: taca @ 2018-09-29 15:43 UTC (permalink / raw)
  To: ruby-dev

Issue #15178 has been reported by taca (Takahiro Kambe).

----------------------------------------
Bug #15178: Wrong paramaters passing to pthread_setname_np(3)
https://bugs.ruby-lang.org/issues/15178

* Author: taca (Takahiro Kambe)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: 
* Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN
----------------------------------------
Ruby 2.6.0-preview2の動作を調べている途中で見つけました。

[Bug #9586]の修正r45713で、NetBSDの場合のpthread_setname_np(3)の引数を修正しています。
ここは第2引数と第3引数を入れ替えるのではなく、単に二重引用符を適切にquoteするだけとすべき
だったのではないでしょうか。

また、実際にthread_pthread.cで`SET_CURRENT_THREAD_NAME`を介してpthread_setname_np(3)が
呼び出される状況を理解していないのですが、指定する名前は`PTHREAD_MAX_NAMELEN_NP`を超える
ことはないと思って良いのでしょうか。(`PTHREAD_MAX_NAMELEN_NP`の値は32です。)

---Files--------------------------------
configure.ac.diff (645 Bytes)


-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-09-29 15:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <redmine.issue-15178.20180929154345@ruby-lang.org>
2018-09-29 15:43 ` [ruby-dev:50643] [Ruby trunk Bug#15178] Wrong paramaters passing to pthread_setname_np(3) taca

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).