<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/libstd/sys_common/gnu, branch master</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=master</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=master'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2019-05-26T00:09:45+00:00</updated>
<entry>
<title>std: Depend on `backtrace` crate from crates.io</title>
<updated>2019-05-26T00:09:45+00:00</updated>
<author>
<name>Alex Crichton</name>
<email>alex@alexcrichton.com</email>
</author>
<published>2019-05-15T14:30:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d1040fe329a8db99ae0aae47975830a0829d7792'/>
<id>urn:sha1:d1040fe329a8db99ae0aae47975830a0829d7792</id>
<content type='text'>
This commit removes all in-tree support for generating backtraces in
favor of depending on the `backtrace` crate on crates.io. This resolves
a very longstanding piece of duplication where the standard library has
long contained the ability to generate a backtrace on panics, but the
code was later extracted and duplicated on crates.io with the
`backtrace` crate. Since that fork each implementation has seen various
improvements one way or another, but typically `backtrace`-the-crate has
lagged behind libstd in one way or another.

The goal here is to remove this duplication of a fairly critical piece
of code and ensure that there's only one source of truth for generating
backtraces between the standard library and the crate on crates.io.
Recently I've been working to bring the `backtrace` crate on crates.io
up to speed with the support in the standard library which includes:

* Support for `StackWalkEx` on MSVC to recover inline frames with
  debuginfo.
* Using `libbacktrace` by default on MinGW targets.
* Supporting `libbacktrace` on OSX as an option.
* Ensuring all the requisite support in `backtrace`-the-crate compiles
  with `#![no_std]`.
* Updating the `libbacktrace` implementation in `backtrace`-the-crate to
  initialize the global state with the correct filename where necessary.

After reviewing the code in libstd the `backtrace` crate should be at
exact feature parity with libstd today. The backtraces generated should
have the same symbols and same number of frames in general, and there's
not known divergence from libstd currently.

Note that one major difference between libstd's backtrace support and
the `backtrace` crate is that on OSX the crates.io crate enables the
`coresymbolication` feature by default. This feature, however, uses
private internal APIs that aren't published for OSX. While they provide
more accurate backtraces this isn't appropriate for libstd distributed
as a binary, so libstd's dependency on the `backtrace` crate explicitly
disables this feature and forces OSX to use `libbacktrace` as a
symbolication strategy.

The long-term goal of this refactoring is to eventually move us towards
a world where we can drop `libbacktrace` entirely and simply use Gimli
and the surrounding crates for backtrace support. That's still aways off
but hopefully will much more easily enabled by having the source of
truth for backtraces live in crates.io!

Procedurally if we go forward with this I'd like to transfer the
`backtrace-rs` crate to the rust-lang GitHub organization as well, but I
figured I'd hold off on that until we get closer to merging.
</content>
</entry>
<entry>
<title>libstd =&gt; 2018</title>
<updated>2019-02-27T19:06:15+00:00</updated>
<author>
<name>Taiki Endo</name>
<email>te316e89@gmail.com</email>
</author>
<published>2019-02-10T19:23:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=93b6d9e086c6910118a57e4332c9448ab550931f'/>
<id>urn:sha1:93b6d9e086c6910118a57e4332c9448ab550931f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove licenses</title>
<updated>2018-12-26T04:08:33+00:00</updated>
<author>
<name>Mark Rousskov</name>
<email>mark.simulacrum@gmail.com</email>
</author>
<published>2018-12-25T15:56:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2a663555ddf36f6b041445894a8c175cd1bc718c'/>
<id>urn:sha1:2a663555ddf36f6b041445894a8c175cd1bc718c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>std: Use backtrace-sys from crates.io</title>
<updated>2018-12-24T16:32:57+00:00</updated>
<author>
<name>Alex Crichton</name>
<email>alex@alexcrichton.com</email>
</author>
<published>2018-12-15T00:47:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8d500572fa8f4110033fa3bc5e925831f6bbd18e'/>
<id>urn:sha1:8d500572fa8f4110033fa3bc5e925831f6bbd18e</id>
<content type='text'>
This commit switches the standard library to using the `backtrace-sys`
crate from crates.io instead of duplicating the logic here in the Rust
repositor with the `backtrace-sys`'s crate's logic.

Eventually this will hopefully be a good step towards using the
`backtrace` crate directly from crates.io itself, but we're not quite
there yet! Hopefully this is a small incremental first step we can take.
</content>
</entry>
<entry>
<title>Various minor/cosmetic improvements to code</title>
<updated>2018-12-07T23:53:34+00:00</updated>
<author>
<name>Alexander Regueiro</name>
<email>alexreg@me.com</email>
</author>
<published>2018-11-27T02:59:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ee89c088b057affb5bdb96195e107a218b64b1c5'/>
<id>urn:sha1:ee89c088b057affb5bdb96195e107a218b64b1c5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix some errors in libstd</title>
<updated>2017-12-22T17:40:39+00:00</updated>
<author>
<name>Michael Hewson</name>
<email>michael@michaelhewson.ca</email>
</author>
<published>2017-12-22T17:40:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e94b29065fab8da9530029f810306da1797810a1'/>
<id>urn:sha1:e94b29065fab8da9530029f810306da1797810a1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>std: Avoid use of `libc` in portable modules</title>
<updated>2017-11-09T15:56:44+00:00</updated>
<author>
<name>Alex Crichton</name>
<email>alex@alexcrichton.com</email>
</author>
<published>2017-11-01T20:04:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=5c3fe111d4a6e72f0461320f5166bcd6aaf2f37f'/>
<id>urn:sha1:5c3fe111d4a6e72f0461320f5166bcd6aaf2f37f</id>
<content type='text'>
This commit removes usage of the `libc` crate in "portable" modules like
those at the top level and `sys_common`. Instead common types like `*mut
u8` or `u32` are used instead of `*mut c_void` or `c_int` as well as
switching to platform-specific functions like `sys::strlen` instead of
`libc::strlen`.
</content>
</entry>
<entry>
<title>Correctly bubble up errors from libbacktrace</title>
<updated>2017-09-12T19:27:54+00:00</updated>
<author>
<name>Aidan Hobson Sayers</name>
<email>aidanhs@cantab.net</email>
</author>
<published>2017-09-12T19:27:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=15887d786ba05a84f2fc5e7036cae88b91291c6c'/>
<id>urn:sha1:15887d786ba05a84f2fc5e7036cae88b91291c6c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>travis: Fuchsia builder</title>
<updated>2017-03-10T16:28:40+00:00</updated>
<author>
<name>Petr Hosek</name>
<email>phosek@google.com</email>
</author>
<published>2017-02-17T04:54:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9a8461104e1520c7194f8b4589262c9e292c6988'/>
<id>urn:sha1:9a8461104e1520c7194f8b4589262c9e292c6988</id>
<content type='text'>
This change introduces a Dockerfile and script which builds a complete
Fuchsia toolchain which can be used to build Rust distribution for
Fuchsia. We only support cross-compiling at the moment, hence only
setting the target.
</content>
</entry>
<entry>
<title>Improve backtrace formating while panicking.</title>
<updated>2017-02-15T19:24:37+00:00</updated>
<author>
<name>Yamakaky</name>
<email>yamakaky@yamaworld.fr</email>
</author>
<published>2016-12-04T21:38:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d50e4cc0640e54a64d0f7ccb05a77fd4a2fe0741'/>
<id>urn:sha1:d50e4cc0640e54a64d0f7ccb05a77fd4a2fe0741</id>
<content type='text'>
- `RUST_BACKTRACE=full` prints all the informations (old behaviour)
- `RUST_BACKTRACE=(0|no)` disables the backtrace.
- `RUST_BACKTRACE=&lt;everything else&gt;` (including `1`) shows a simplified
  backtrace, without the function addresses and with cleaned filenames
  and symbols. Also removes some unneded frames at the beginning and the
  end.

Fixes #37783.

PR is #38165.
</content>
</entry>
</feed>
