<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/addr2line.c, branch v3_2_11</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>merge revision(s) 954b7ac81ef503df3c1efc5566df985b08951d52: [Backport #19789]</title>
<updated>2023-08-12T04:46:25+00:00</updated>
<author>
<name>nagachika</name>
<email>nagachika@ruby-lang.org</email>
</author>
<published>2023-08-12T04:46:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=19823032abc2d1827a2aaf41bf3a3948afad8feb'/>
<id>19823032abc2d1827a2aaf41bf3a3948afad8feb</id>
<content type='text'>
	addr2line.c: fix `DW_FORM_ref_addr` parsing for DWARF 2 (#8146)

	addr2line.c: fix DW_FORM_ref_addr parsing for DWARF 2

	This fixes a crash when retrieving backtrace info with YJIT enabled on
	macOS with Rust 1.71.0. Since Rust 1.71.0, the DWARF info generated by
	the Rust compiler uses DW_FORM_ref_addr instead of DW_FORM_ref4 for
	pointers to other DIEs.
	DW_FORM_ref_addr representation in DWARF 2 is different from DWARF 3+,
	so we need to handle it separately.
	This patch fixes the parsing of DW_FORM_ref_addr for DWARF 2, which is
	the default DWARF version Rustc uses on macOS.

	See the DWARF 2.0.0 spec, section 7.5.4 Attribute Encodings
	https://dwarfstd.org/doc/dwarf-2.0.0.pdf

	https://bugs.ruby-lang.org/issues/19789
	---
	 addr2line.c | 40 ++++++++++++++++++++++++++--------------
	 1 file changed, 26 insertions(+), 14 deletions(-)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
	addr2line.c: fix `DW_FORM_ref_addr` parsing for DWARF 2 (#8146)

	addr2line.c: fix DW_FORM_ref_addr parsing for DWARF 2

	This fixes a crash when retrieving backtrace info with YJIT enabled on
	macOS with Rust 1.71.0. Since Rust 1.71.0, the DWARF info generated by
	the Rust compiler uses DW_FORM_ref_addr instead of DW_FORM_ref4 for
	pointers to other DIEs.
	DW_FORM_ref_addr representation in DWARF 2 is different from DWARF 3+,
	so we need to handle it separately.
	This patch fixes the parsing of DW_FORM_ref_addr for DWARF 2, which is
	the default DWARF version Rustc uses on macOS.

	See the DWARF 2.0.0 spec, section 7.5.4 Attribute Encodings
	https://dwarfstd.org/doc/dwarf-2.0.0.pdf

	https://bugs.ruby-lang.org/issues/19789
	---
	 addr2line.c | 40 ++++++++++++++++++++++++++--------------
	 1 file changed, 26 insertions(+), 14 deletions(-)
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix backtrace beyond _singtramp on macOS arm64 (#7015)</title>
<updated>2022-12-23T17:24:55+00:00</updated>
<author>
<name>NARUSE, Yui</name>
<email>nurse@users.noreply.github.com</email>
</author>
<published>2022-12-23T17:24:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=ee60756495b775c4e8fc93a57094ac4e4b83fa7f'/>
<id>ee60756495b775c4e8fc93a57094ac4e4b83fa7f</id>
<content type='text'>
* move ptrauth_strip logic into vm_dump.c
* don't use _sigtramp special logic on arm64</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* move ptrauth_strip logic into vm_dump.c
* don't use _sigtramp special logic on arm64</pre>
</div>
</content>
</entry>
<entry>
<title>addr2line.c: Strip pointer authentication</title>
<updated>2022-12-23T14:48:18+00:00</updated>
<author>
<name>Yusuke Endoh</name>
<email>mame@ruby-lang.org</email>
</author>
<published>2022-12-19T08:15:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=65920cfc40b47e9e037e0536b2b7de8f0cf30fc3'/>
<id>65920cfc40b47e9e037e0536b2b7de8f0cf30fc3</id>
<content type='text'>
We need to manually strip pointer authentication bits on M1 mac because
libunwind leaks them out.

Co-Authored-By: NARUSE, Yui &lt;naruse@airemix.jp&gt;
Co-Authored-By: Yuta Saito &lt;kateinoigakukun@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We need to manually strip pointer authentication bits on M1 mac because
libunwind leaks them out.

Co-Authored-By: NARUSE, Yui &lt;naruse@airemix.jp&gt;
Co-Authored-By: Yuta Saito &lt;kateinoigakukun@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>addr2line.c: Support DW_FORM_rnglistx</title>
<updated>2022-12-22T15:32:35+00:00</updated>
<author>
<name>Yusuke Endoh</name>
<email>mame@ruby-lang.org</email>
</author>
<published>2022-12-22T13:41:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=95a1d1fde8fb13d6b7bd6d63864d3bae8b34b0b0'/>
<id>95a1d1fde8fb13d6b7bd6d63864d3bae8b34b0b0</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>addr2line.c: Implement DW_AT_*_base</title>
<updated>2022-12-22T15:32:35+00:00</updated>
<author>
<name>Yusuke Endoh</name>
<email>mame@ruby-lang.org</email>
</author>
<published>2022-12-22T13:39:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=53c82a6ce4c90bca5212c2d533014af47c6a5b4e'/>
<id>53c82a6ce4c90bca5212c2d533014af47c6a5b4e</id>
<content type='text'>
... and add code to parse the sections of .debug_addr_base and
.debug_rnglists_base.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
... and add code to parse the sections of .debug_addr_base and
.debug_rnglists_base.
</pre>
</div>
</content>
</entry>
<entry>
<title>addr2line.c: Support DW_FORM_strx* forms</title>
<updated>2022-12-22T15:32:35+00:00</updated>
<author>
<name>Yusuke Endoh</name>
<email>mame@ruby-lang.org</email>
</author>
<published>2022-12-22T13:34:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=515f816b7f3985e0cfa889a574c3b93274d50b6f'/>
<id>515f816b7f3985e0cfa889a574c3b93274d50b6f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>addr2line.c: Support DW_FORM_addrx* forms</title>
<updated>2022-12-22T15:32:35+00:00</updated>
<author>
<name>Yusuke Endoh</name>
<email>mame@ruby-lang.org</email>
</author>
<published>2022-12-22T13:33:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=5234f99b76689e7cf711961a737efd4de863460a'/>
<id>5234f99b76689e7cf711961a737efd4de863460a</id>
<content type='text'>
... and add VAL_addr value type
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
... and add VAL_addr value type
</pre>
</div>
</content>
</entry>
<entry>
<title>addr2line.c: Keep .debug_str_offsets and .debug_addr sections as well</title>
<updated>2022-12-22T15:32:35+00:00</updated>
<author>
<name>Yusuke Endoh</name>
<email>mame@ruby-lang.org</email>
</author>
<published>2022-12-22T13:29:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=303e11697dab49a3522712cdc0b4d34af1dc6bfc'/>
<id>303e11697dab49a3522712cdc0b4d34af1dc6bfc</id>
<content type='text'>
clang generates DWARF with the sections
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
clang generates DWARF with the sections
</pre>
</div>
</content>
</entry>
<entry>
<title>addr2line.c: Fix another indexing bug</title>
<updated>2022-12-22T11:37:40+00:00</updated>
<author>
<name>Yusuke Endoh</name>
<email>mame@ruby-lang.org</email>
</author>
<published>2022-12-22T11:37:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=d1d61cabbc332790c0d53fea01f51d52a3489670'/>
<id>d1d61cabbc332790c0d53fea01f51d52a3489670</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>addr2line.c: Fix indexing bug</title>
<updated>2022-12-22T11:28:03+00:00</updated>
<author>
<name>Yusuke Endoh</name>
<email>mame@ruby-lang.org</email>
</author>
<published>2022-12-22T11:26:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=ebd6b5d826b1a04b20e477f54723aa5c545cbf69'/>
<id>ebd6b5d826b1a04b20e477f54723aa5c545cbf69</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
