{"width":"100%","provider_url":"https://hatena.blog","provider_name":"Hatena Blog","published":"2021-08-19 19:34:42","categories":["Ruby","bugs.ruby"],"type":"rich","version":"1.0","url":"https://secret-garden.hatenablog.com/entry/2021/08/19/193442","blog_title":"Secret Garden(Instrumental)","author_name":"osyo-manga","image_url":null,"title":"2021/08/19 \u4eca\u9031\u306e\u6c17\u306b\u306a\u3063\u305f bugs.ruby \u306e\u30c1\u30b1\u30c3\u30c8","blog_url":"https://secret-garden.hatenablog.com/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsecret-garden.hatenablog.com%2Fentry%2F2021%2F08%2F19%2F193442\" title=\"2021/08/19 \u4eca\u9031\u306e\u6c17\u306b\u306a\u3063\u305f bugs.ruby \u306e\u30c1\u30b1\u30c3\u30c8 - Secret Garden(Instrumental)\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","description":"\u4eca\u9031\u306f\u53f3\u4ee3\u5165\u3067\u7279\u5b9a\u306e\u30b1\u30fc\u30b9\u3067\u30b7\u30f3\u30bf\u30c3\u30af\u30b9\u30a8\u30e9\u30fc\u306b\u306a\u308b\u3068\u3044\u3046\u30d0\u30b0\u5831\u544a\u304c\u3042\u308a\u307e\u3057\u305f\u3002 \u524d\u56de\u306e\u307e\u3068\u3081 [Bug #18084] JSON.dump can crash VM. \u6b21\u306e\u3088\u3046\u306b\u518d\u5e30\u7684\u306a Hash \u3092 JSON.dump \u306b\u6e21\u3059\u3068 VM \u304c\u30af\u30e9\u30c3\u30b7\u30e5\u3059\u308b\u30d0\u30b0\u5831\u544a \u3069\u3046\u3084\u3089 Linux \u7cfb\u3067\u306e\u307f\u767a\u751f\u3057\u3066\u3044\u308b\u307d\u3044\uff1f require 'json' x = {} # \u81ea\u8eab\u306b\u81ea\u8eab\u3092\u5272\u308a\u5f53\u3066\u308b x[:x] = x # machine stack overflow in critical region (fatal) p JSON.dump(x) \u3053\u308c\u306f Ruby 2.7 \u304b\u3089\u518d\u73fe\u3057\u3066\u304a\u308a\u3001Ruby 2.\u2026","author_url":"https://blog.hatena.ne.jp/osyo-manga/"}