[#106341] [Ruby master Bug#18369] users.detect(:name, "Dorian") as shorthand for users.detect { |user| user.name == "Dorian" } — dorianmariefr <noreply@...>
Issue #18369 has been reported by dorianmariefr (Dorian Mari辿).
14 messages
2021/11/30
[#106351] [Ruby master Bug#18371] Release branches (release information in general) — "tenderlovemaking (Aaron Patterson)" <noreply@...>
Issue #18371 has been reported by tenderlovemaking (Aaron Patterson).
7 messages
2021/11/30
[ruby-core:106257] [Ruby master Bug#17794] addr2line.c can free(3) an invalid pointer without zlib
From:
"usa (Usaku NAKAMURA)" <noreply@...>
Date:
2021-11-24 10:31:10 UTC
List:
ruby-core #106257
Issue #17794 has been updated by usa (Usaku NAKAMURA). Backport changed from 2.6: UNKNOWN, 2.7: REQUIRED, 3.0: DONE to 2.6: UNKNOWN, 2.7: DONE, 3.0: DONE ruby_2_7 0fd9588395294ac97a1f6dc3a51d4f19e84a6ba9 merged revision(s) d795f494a89e0d9498dfedc54b8a98acc2bc4d7b. ---------------------------------------- Bug #17794: addr2line.c can free(3) an invalid pointer without zlib https://bugs.ruby-lang.org/issues/17794#change-94877 * Author: xtkoba (Tee KOBAYASHI) * Status: Closed * Priority: Normal * Backport: 2.6: UNKNOWN, 2.7: DONE, 3.0: DONE ---------------------------------------- When built without zlib (`./configure ac_cv_lib_z_uncompress=no`), `ruby` aborts immediately after C level backtrace information is printed. ``` $ ruby -e 'Process.kill :SEGV, $$' -e:1: [BUG] Segmentation fault at 0x000003e8000052ac (...snip...) -- C level backtrace information ------------------------------------------- /var/tmp/build.debug/x86_64-linux-gcc/lib/libruby.so.3.1(0x7f8abe871147) [0x7f8abe871147] [0x7f8abe871179] (...snip...) [0x7f8abe65b5fa] /var/tmp/build.debug/x86_64-linux-gcc/bin/ruby(main+0x7f) [0x55d1e2fd1234] ../main.c:47 free(): invalid pointer Aborted ``` This happens because at [addr2line.c:2344](https://github.com/ruby/ruby/blob/799ea1d1540aca03542ee31647052343507a4b41/addr2line.c#L2344) `s->ptr` can be an invalid pointer. A patch is attached for a workaround that makes `s->ptr` either valid or `NULL`. ---Files-------------------------------- ruby-addr2line-free-invalid-pointer.patch (490 Bytes) -- https://bugs.ruby-lang.org/ Unsubscribe: <mailto:[email protected]?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>