From: "Ethan (Ethan -)" Date: 2021-11-17T08:25:53+00:00 Subject: [ruby-core:106108] [Ruby master Bug#18343] empty hash passed to Array#pack causes Segmentation fault (2.6) Issue #18343 has been updated by Ethan (Ethan -). oops, in writing that last sentence a "not" slipped by me and I said the opposite of what I meant to say. I meant to say "seemed worth reporting, but fine to close." did not mean to complain about the closing, brainfart. ---------------------------------------- Bug #18343: empty hash passed to Array#pack causes Segmentation fault (2.6) https://bugs.ruby-lang.org/issues/18343#change-94697 * Author: Ethan (Ethan -) * Status: Closed * Priority: Normal * ruby -v: ruby 2.6.8p205 (2021-07-07 revision 67951) [x86_64-linux] * Backport: 2.6: REQUIRED, 2.7: DONTNEED, 3.0: DONTNEED ---------------------------------------- passing an empty hash to `Array#pack` segfaults from ruby 2.4 to ruby 2.6 on ubuntu, macos, and windows. ```ruby [0].pack('c', {}) ``` pack takes a keyword argument, and handles unknown keywords, but the empty hash segfaults. here is the error trace in a github workflow running only the above expression: https://github.com/notEthan/jsi/runs/4226433638 (other ruby versions and OSes are part of the same run) -- https://bugs.ruby-lang.org/ Unsubscribe: