Project

General

Profile

Actions

Bug #17572

closed

coerceで作成した(0.0/1)を計算に用いるとコアダンプする

Added by freedom (free dom) over 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86_64-linux]
[ruby-dev:50994]

Description

coerceで(0.0/1)等の値を作成することができ、こちらを計算に使用するとコアダンプして落ちます(出力は添付参照)

再現コード

1/0r.coerce(0.0+0i)[0]

よろしくおねがいします


Files

coredump (19 KB) coredump freedom (free dom), 01/22/2021 11:55 PM
Actions #1

Updated by nobu (Nobuyoshi Nakada) over 1 year ago

  • Backport changed from 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN to 2.5: REQUIRED, 2.6: REQUIRED, 2.7: REQUIRED, 3.0: REQUIRED
Actions #2

Updated by nobu (Nobuyoshi Nakada) over 1 year ago

  • Status changed from Open to Closed

Applied in changeset git|a55eb9a2af7950d180d9d31ffde2bce66710f44f.


Make reciprocal properly of non-integral rational [Bug #17572]

Updated by naruse (Yui NARUSE) over 1 year ago

  • Backport changed from 2.5: REQUIRED, 2.6: REQUIRED, 2.7: REQUIRED, 3.0: REQUIRED to 2.5: REQUIRED, 2.6: REQUIRED, 2.7: REQUIRED, 3.0: DONE

ruby_3_0 d370cb62d26f212e431d4a7b38db56254c95cd5d merged revision(s) 9efd590a13d1e8b8a141c46eabb48c2a1c286d2b,a55eb9a2af7950d180d9d31ffde2bce66710f44f.

Updated by nagachika (Tomoyuki Chikanaga) over 1 year ago

  • Backport changed from 2.5: REQUIRED, 2.6: REQUIRED, 2.7: REQUIRED, 3.0: DONE to 2.5: REQUIRED, 2.6: REQUIRED, 2.7: DONE, 3.0: DONE

ruby_2_7 4b6df7f735c10f326f09a44fe38dc10b05ced21c merged revision(s) a55eb9a2af7950d180d9d31ffde2bce66710f44f.

Updated by usa (Usaku NAKAMURA) about 1 year ago

  • Backport changed from 2.5: REQUIRED, 2.6: REQUIRED, 2.7: DONE, 3.0: DONE to 2.5: REQUIRED, 2.6: DONE, 2.7: DONE, 3.0: DONE

ruby_2_6 r67926 merged revision(s) a55eb9a2af7950d180d9d31ffde2bce66710f44f.

Actions

Also available in: Atom PDF