<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/tests/ui/backtrace, branch beta</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=beta</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=beta'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2025-08-06T23:59:47+00:00</updated>
<entry>
<title>Print thread ID in panic message if thread name is unknown</title>
<updated>2025-08-06T23:59:47+00:00</updated>
<author>
<name>Trevor Gross</name>
<email>tmgross@umich.edu</email>
</author>
<published>2023-09-11T04:59:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=289fe36d373c5a13fa7f1b93f39ff88425ab2351'/>
<id>urn:sha1:289fe36d373c5a13fa7f1b93f39ff88425ab2351</id>
<content type='text'>
`panic!` does not print any identifying information for threads that are
unnamed. However, in many cases, the thread ID can be determined.

This changes the panic message from something like this:

    thread '&lt;unnamed&gt;' panicked at src/main.rs:3:5:
    explicit panic

To something like this:

    thread '&lt;unnamed&gt;' (0xff9bf) panicked at src/main.rs:3:5:
    explicit panic

Stack overflow messages are updated as well.

This change applies to both named and unnamed threads. The ID printed is
the OS integer thread ID rather than the Rust thread ID, which should
also be what debuggers print.
</content>
</entry>
<entry>
<title>Rollup merge of #144356 - GuillaumeGomez:gcc-ignore-tests, r=jieyouxu</title>
<updated>2025-07-26T06:15:08+00:00</updated>
<author>
<name>Trevor Gross</name>
<email>t.gross35@gmail.com</email>
</author>
<published>2025-07-26T06:15:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6b1b68f4ee9314e4286f98d38f8b0f3cde3938c5'/>
<id>urn:sha1:6b1b68f4ee9314e4286f98d38f8b0f3cde3938c5</id>
<content type='text'>
Add `ignore-backends` annotations in failing GCC backend ui tests

Follow-up of https://github.com/rust-lang/rust/pull/144125.

In the GCC backend, we don't support all ui tests yet and we have a list of tests we currently ignore available [here](https://github.com/rust-lang/rustc_codegen_gcc/blob/master/tests/failing-ui-tests.txt).

This PR adds the `ignore-backends` annotations to the corresponding ui tests.

The second commit is a fix to compiletest, complaining about `ignore-backends`.

r? ```@jieyouxu```
</content>
</entry>
<entry>
<title>Add `ignore-backends` annotations in failing GCC backend ui tests</title>
<updated>2025-07-23T11:48:04+00:00</updated>
<author>
<name>Guillaume Gomez</name>
<email>guillaume1.gomez@gmail.com</email>
</author>
<published>2025-07-23T11:31:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=de93fb13feeb6263bef61d4035e78ab8651c5714'/>
<id>urn:sha1:de93fb13feeb6263bef61d4035e78ab8651c5714</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tests: Don't check for self-printed output in std-backtrace.rs test</title>
<updated>2025-07-09T06:43:56+00:00</updated>
<author>
<name>Martin Nordholts</name>
<email>martin.nordholts@codetale.se</email>
</author>
<published>2025-07-03T21:24:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=54cc45d5b4a949fa29813253efc7897e27f48fe2'/>
<id>urn:sha1:54cc45d5b4a949fa29813253efc7897e27f48fe2</id>
<content type='text'>
The `Display` implementation for `Backtrace` used to print

    stack backtrace:

but that print was later removed. To make the existing test pass, the
print was added to the existing test. But it doesn't make sense to check
for something that the test itself does since that will not detect any
regressions in the implementation of `Backtrace`. Fully remove the
checks.
</content>
</entry>
<entry>
<title>tests: use `needs-subprocess` instead of `ignore-{wasm32,emscripten,sgx}`</title>
<updated>2025-01-23T12:51:29+00:00</updated>
<author>
<name>许杰友 Jieyou Xu (Joe)</name>
<email>39484203+jieyouxu@users.noreply.github.com</email>
</author>
<published>2025-01-23T08:36:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8a0310a0b131cfc24b931cd537b400525727cf6c'/>
<id>urn:sha1:8a0310a0b131cfc24b931cd537b400525727cf6c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Try to write the panic message with a single `write_all` call</title>
<updated>2025-01-01T14:58:29+00:00</updated>
<author>
<name>John Kåre Alsaker</name>
<email>john.kare.alsaker@gmail.com</email>
</author>
<published>2024-03-15T18:09:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=4bf85c25eceee6172ed3892570f36b5d06d5177f'/>
<id>urn:sha1:4bf85c25eceee6172ed3892570f36b5d06d5177f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Run `tests/ui/backtrace/std-backtrace.rs` on MSVC.</title>
<updated>2024-12-25T12:44:20+00:00</updated>
<author>
<name>jyn</name>
<email>github@jyn.dev</email>
</author>
<published>2024-12-24T21:21:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c880e8bbcb3479092b2b6e00889a3f5639ee425f'/>
<id>urn:sha1:c880e8bbcb3479092b2b6e00889a3f5639ee425f</id>
<content type='text'>
The original PR which disabled these only mentions them being broken on
i686 msvc. Let's try to see if we can reenable this test for msvc (both
32-bit and 64-bit).
</content>
</entry>
<entry>
<title>Emscripten: Xfail backtrace ui tests</title>
<updated>2024-10-16T10:22:14+00:00</updated>
<author>
<name>Hood Chatham</name>
<email>roberthoodchatham@gmail.com</email>
</author>
<published>2024-10-16T10:22:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=476ea45c68223e4b2f9674d20f1aff8dd52fe1fb'/>
<id>urn:sha1:476ea45c68223e4b2f9674d20f1aff8dd52fe1fb</id>
<content type='text'>
It is possible to link libunwind and use the normal backtrace code, but it fails
to symbolize stack traces. I investigated and could get the list of instruction
pointers and symbol names, but I'm not sure how to use the dwarf info to map
from instruction pointer to source location. In any case, fixing this is
probably not a high priority.

See https://github.com/rust-lang/rust/issues/131738
</content>
</entry>
<entry>
<title>the output in stderr expects panic-unwind</title>
<updated>2024-07-30T06:16:47+00:00</updated>
<author>
<name>aissata</name>
<email>aimaiga2@gmail.com</email>
</author>
<published>2024-07-30T06:16:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=dadf3d2a970999ee0d7a0f97045acc70919d751e'/>
<id>urn:sha1:dadf3d2a970999ee0d7a0f97045acc70919d751e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix interleaved panic output</title>
<updated>2024-07-12T15:52:04+00:00</updated>
<author>
<name>jyn</name>
<email>github@jyn.dev</email>
</author>
<published>2024-07-05T21:24:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1c8f9bb84d5956abe6671bf77ccaba64505266a5'/>
<id>urn:sha1:1c8f9bb84d5956abe6671bf77ccaba64505266a5</id>
<content type='text'>
previously, we only held a lock for printing the backtrace itself. since all threads were printing to the same file descriptor, that meant random output in the default panic hook would be interleaved with the backtrace. now, we hold the lock for the full duration of the hook, and the output is ordered.
</content>
</entry>
</feed>
