ruby-dev (Japanese) list archive (unofficial mirror)
 help / color / mirror / Atom feed
From: "xtkoba (Tee KOBAYASHI)" <noreply@ruby-lang.org>
To: ruby-dev@ruby-lang.org
Subject: [ruby-dev:51103] [Ruby master Bug#18263] "make install" crashed when Ruby3.0.2 clean install. (in japanese)
Date: Sat, 23 Oct 2021 06:03:28 +0000 (UTC)	[thread overview]
Message-ID: <redmine.journal-94264.20211023060322.14915@ruby-lang.org> (raw)
In-Reply-To: <redmine.issue-18263.20211022122510.14915@ruby-lang.org>

Issue #18263 has been updated by xtkoba (Tee KOBAYASHI).



From `LOG.make`:

```
compiling ../.././ext/psych/yaml/api.c
../.././ext/psych/yaml/api.c: 関数 ‘yaml_strdup’ 内:
../.././ext/psych/yaml/api.c:66:27: 警告: implicit declaration of function ‘strdup’; did you mean ‘cmp’? [-Wimplicit-function-declaration]
     return (yaml_char_t *)strdup((char *)str);
                           ^~~~~~
                           strcmp
../.././ext/psych/yaml/api.c:66:12: 警告: 異なるサイズの整数からポインタへのキャストです [-Wint-to-pointer-cast]
     return (yaml_char_t *)strdup((char *)str);
            ^
```

The compiler assumes that `strdup(3)` is implicitly declared as `int strdup();`, which is of course not correct and should be instead as follows:

```c
char *strdup(const char *s);
```

I have no idea as to why `strdup(3)` is not declared here. For instance, on my GNU/Linux environment it is declared in `<string.h>` which is included (indirectly) in `ext/psych/yaml/api.c`.

A workaround would be to add the correct declaration in `ext/psych/yaml/api.c`.

----------------------------------------
Bug #18263: "make install" crashed when Ruby3.0.2 clean install. (in japanese)
https://bugs.ruby-lang.org/issues/18263#change-94264

* Author: tksotn (TAKASHI OOTANI)
* Status: Open
* Priority: Normal
* ruby -v: ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [x86_64-linux]
* Backport: 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN
----------------------------------------
本日 gem update を行った後、gem コマンドが異常終了するようになってしまいました。

/usr/local/lib/ruby/gems/3.0.0/gems/psych-4.0.2/lib/psych.rb:455: [BUG] Segmentation fault at 0xffffffff9ade4120
ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [x86_64-linux]

OSは、CentOS Linux release 8.4.2105 です。

gem update自体は正常に終了しました。その直後の gem clean でこけています。
gem だけでもこけます。OS再起動後にも同様。

昨日までは異常なく、昨日今日に dnf install や update でインストール・更新した
OSパッケージはログを見る限りないです。

念のため、PATHからインストール先の/usr/local/binを外した状態で、
tar.gzから新規ディレクトリを--prefix指定してconfigureして
まっさらな環境にインストールしてみようとしましたが、
make install の時点で同じエラーになります。
ということは、gem updateは原因では無いという事になるかと思います。

上記の、configure、make、make test、make check (これは以前からこける)、
make installと、dnf list のリストを添付します。

よろしくお願いします。

本日のgem update対象:
fileutils-1.6.0/
io-wait-0.2.0/
net-http-0.2.0/
net-protocol-0.1.2/
optparse-0.2.0/
ostruct-0.5.0/
pp-0.2.1/
prettyprint-0.1.1/
readline-ext-0.1.3/
rinda-0.1.1/
securerandom-0.1.1/
stringio-3.0.1/
uri-0.11.0/
net-ftp-0.1.2/
minitest-5.14.2/
power_assert-1.2.0/
rake-13.0.3/


---Files--------------------------------
LOG.tar.gz (243 KB)


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

  reply	other threads:[~2021-10-23  6:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-22 12:25 [ruby-dev:51102] " tksotn (TAKASHI OOTANI)
2021-10-23  6:03 ` xtkoba (Tee KOBAYASHI) [this message]
2021-10-24  8:54 ` [ruby-dev:51104] " xtkoba (Tee KOBAYASHI)
2021-10-24 14:42 ` [ruby-dev:51105] " tksotn (TAKASHI OOTANI)
2021-10-25 18:27 ` [ruby-dev:51106] " jeremyevans0 (Jeremy Evans)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=redmine.journal-94264.20211023060322.14915@ruby-lang.org \
    --to=noreply@ruby-lang.org \
    --cc=ruby-dev@ruby-lang.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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 NNTP newsgroup(s).