Skip to content

rust-gdb crashes on FreeBSD due to invalid sed syntax #110334

@asomers

Description

@asomers

Code

I tried this code:

rust-gdb

I expected to see this happen: GDB starts

Instead, this happened: GDB crashed:

$ rust-gdb
sed: 1: "s/commit-hash: \(\w*\)/ ...": RE error: trailing backslash (\)

Version it worked on

It most recently worked on:
rustc 1.70.0-nightly (4a04d08 2023-03-18)

Version with regression

rustc 1.70.0-nightly (a41fc00ea 2023-04-13)
binary: rustc
commit-hash: a41fc00eaf352541008965fec0dee811e44373b3
commit-date: 2023-04-13
host: x86_64-unknown-freebsd
release: 1.70.0-nightly
LLVM version: 16.0.2

The bug was introduced by commit 8dd0ec6 , which invokes sed with GNU-specific syntax.

@rustbot modify labels: +regression-from-stable-to-nightly -regression-untriaged

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions