Skip to content

Conversation

@yoinspiration
Copy link
Contributor

@yoinspiration yoinspiration commented Dec 20, 2025

  • Handle ExceptionKind::Breakpoint by skipping instruction on aarch64
  • Handle ExceptionKind::Other by skipping instruction on aarch64
  • Fixes ffmpeg --help crash with 'Trace/breakpoint trap' on aarch64
  • Matches Linux behavior where breakpoint instructions are ignored when not debugged

Fixes #47

- Handle ExceptionKind::Breakpoint by skipping instruction on aarch64
- Handle ExceptionKind::Other by skipping instruction on aarch64
- Fixes ffmpeg --help crash with 'Trace/breakpoint trap' on aarch64
- Matches Linux behavior where breakpoint instructions are ignored when not debugged
@yoinspiration yoinspiration mentioned this pull request Dec 20, 2025
Copy link
Contributor

@AsakuraMizu AsakuraMizu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hacking here is clearly inappropriate, and breakpoint exceptions also exist in other architectures. In reality, we haven't considered this behavior yet. Please modify axcpu.

On another note, your mention of may be reported as "Other" instead of "Breakpoint" is also due to a typo in axcpu; the correct exception type is Brk64, not BreakpointLowerEL.

You might refer to the relevant code at https://github.com/Starry-OS/axcpu/tree/dev/axprobe, but we don't need BREAK_HANDLER yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ffmpeg crash

2 participants