[#102393] [Ruby master Feature#17608] Compact and sum in one step — sawadatsuyoshi@...

Issue #17608 has been reported by sawa (Tsuyoshi Sawada).

13 messages 2021/02/04

[#102438] [Ruby master Bug#17619] if false foo=42; end creates a foo local variable set to nil — pkmuldoon@...

Issue #17619 has been reported by pkmuldoon (Phil Muldoon).

10 messages 2021/02/10

[#102631] [Ruby master Feature#17660] Expose information about which basic methods have been redefined — tenderlove@...

Issue #17660 has been reported by tenderlovemaking (Aaron Patterson).

9 messages 2021/02/27

[#102639] [Ruby master Misc#17662] The herdoc pattern used in tests does not syntax highlight correctly in many editors — eregontp@...

Issue #17662 has been reported by Eregon (Benoit Daloze).

13 messages 2021/02/27

[#102652] [Ruby master Bug#17664] Behavior of sockets changed in Ruby 3.0 to non-blocking — ciconia@...

Issue #17664 has been reported by ciconia (Sharon Rosner).

23 messages 2021/02/28

[ruby-core:102425] [Ruby master Feature#17616] Support backtracing on Linux with non-GNU-libc + libunwind

From: xtkoba+ruby@...
Date: 2021-02-09 13:12:31 UTC
List: ruby-core #102425
Issue #17616 has been reported by xtkoba (Tee KOBAYASHI).

----------------------------------------
Feature #17616: Support backtracing on Linux with non-GNU-libc + libunwind
https://bugs.ruby-lang.org/issues/17616

* Author: xtkoba (Tee KOBAYASHI)
* Status: Open
* Priority: Normal
----------------------------------------
Currently, `vm_dump.c` assumes that the availability of `backtrace` implies the existence of `execinfo.h`, but it is not the case with non-GNU libc (e.g. musl or Bionic) Linux systems where libunwind is installed.

A patch is attached to enable backtracing on those systems. With this patch, we modify `configure` so that it (1) always checks if `execinfo.h` exists, and that (2) when it cannot find that file on Linux, then checks if `unw_backtrace` is available.

In this patch, we assume (in `vm_dump.c`) that on Linux the availability of `unw_backtrace` implies the existence of `libunwind.h`. If it is not the case, a further modification will be needed.

It is preferable if we can choose between `backtrace` in glibc or `unw_backtrace` in libunwind when both are available. With this patch, the former is chosen by default, and the latter is chosen when `ac_cv_header_execinfo_h=no` is passed to `configure`.

---Files--------------------------------
ruby-linux-non_glibc-libunwind-backtrace.patch (1.79 KB)


-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next