ruby-dev (Japanese) list archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-dev:52034]  [Ruby master Bug#19792] arm の alpine 上でネストしたハッシュに長い文字列を入れると segmentation fault が発生する
@ 2023-08-01  4:52 koke2y via ruby-dev
  2023-08-01  4:58 ` [ruby-dev:52035] " k0kubun (Takashi Kokubun) via ruby-dev
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: koke2y via ruby-dev @ 2023-08-01  4:52 UTC (permalink / raw)
  To: ruby-dev; +Cc: koke2y

Issue #19792 has been reported by koke2y (優樹 纐纈).

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

* 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/

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-09-30  7:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-01  4:52 [ruby-dev:52034] [Ruby master Bug#19792] arm の alpine 上でネストしたハッシュに長い文字列を入れると segmentation fault が発生する 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 ` [ruby-dev:52037] " willnet (Shinichi Maeshima) via ruby-dev
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

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).