ruby-dev (Japanese) list archive (unofficial mirror)
 help / color / mirror / Atom feed
From: "willnet (Shinichi Maeshima) via ruby-dev" <ruby-dev@ml.ruby-lang.org>
To: ruby-dev@ml.ruby-lang.org
Cc: "willnet (Shinichi Maeshima)" <noreply@ruby-lang.org>
Subject: [ruby-dev:52037]  [Ruby master Bug#19792] arm の alpine 上でネストしたハッシュに長い文字列を入れると segmentation fault が発生する
Date: Thu, 03 Aug 2023 08:14:16 +0000 (UTC)	[thread overview]
Message-ID: <redmine.journal-104076.20230803081415.52915@ruby-lang.org> (raw)
In-Reply-To: <redmine.issue-19792.20230801045203.52915@ruby-lang.org>

Issue #19792 has been updated by willnet (Shinichi Maeshima).


以下の環境でも再現しました

- Docker version 24.0.2, build cb74dfc
- M1 Max
- Ventura 13.5

----------------------------------------
Bug #19792: arm の alpine 上でネストしたハッシュに長い文字列を入れると segmentation fault が発生する
https://bugs.ruby-lang.org/issues/19792#change-104076

* Author: koke2y (優樹 纐纈)
* Status: Open
* Priority: Normal
* ruby -v: ruby 3.2.2 (2023-03-30 revision e51014f9c0) +YJIT [aarch64-linux-musl]
* Backport: 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN
----------------------------------------
## 実行環境
Docker version: Docker version 24.0.2, build cb74dfc
Docker image: ruby:3.2.2-alpine3.18

ホスト環境
- chip: Apple M2 Max
- OS version: Version 13.4

## 発生した事象
上記の環境で下記のスクリプトを実行すると、segmentation faultが発生しました。

```
str = 'a' * 100_000_000

hash = {
  x: {
    y: {
      z: str
    }
  }
}

p hash
```

```
81a3dc0d38e8:/api# ruby test.rb
test.rb:11: [BUG] Segmentation fault at 0x0000ffff84e454a0
ruby 3.2.2 (2023-03-30 revision e51014f9c0) +YJIT [aarch64-linux-musl]

-- Control frame information -----------------------------------------------
c:0006 p:---- s:0022 e:000021 CFUNC  :inspect
c:0005 p:---- s:0019 e:000018 CFUNC  :inspect
c:0004 p:---- s:0016 e:000015 CFUNC  :inspect
c:0003 p:---- s:0013 e:000012 CFUNC  :p
c:0002 p:0029 s:0008 E:001cc0 EVAL   test.rb:11 [FINISH]
c:0001 p:0000 s:0003 E:000da0 DUMMY  [FINISH]
```



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

  parent reply	other threads:[~2023-08-03  8:14 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-01  4:52 [ruby-dev:52034] " koke2y via ruby-dev
2023-08-01  4:58 ` [ruby-dev:52035] " k0kubun (Takashi Kokubun) via ruby-dev
2023-08-01  5:24 ` [ruby-dev:52036] " koke2y via ruby-dev
2023-08-03  8:14 ` willnet (Shinichi Maeshima) via ruby-dev [this message]
2023-08-23 22:27 ` [ruby-dev:52039] " alanwu (Alan Wu) via ruby-dev
2023-09-30  7:09 ` [ruby-dev:52049] " nagachika (Tomoyuki Chikanaga) via ruby-dev

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-104076.20230803081415.52915@ruby-lang.org \
    --to=ruby-dev@ml.ruby-lang.org \
    --cc=noreply@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).