Latest (3.5.1.) version crashing when broadcasting password input

Crash report

Thanks for filing an issue! Please answer the questions below so I can help you.

  • iTerm2 version: 3.5.1.
  • OS version: macOS 13.6.7 (22G720)
  • Attach ~/Library/Preferences/com.googlecode.iterm2.plist here (drag-drop from finder into this window) com.googlecode.iterm2.plist
  • Attach a debug log, if possible.
  • Attach a screen capture video if it would make the reproduction steps clearer.
  • Please attach the crash log. crash_log.txt

PLEASE ATTACH YOUR PLIST FILE FOR BUG REPORTS! Seriously! I'll probably ask you for it if you don’t.

Detailed steps to reproduce the problem

  1. Open new iTerm2 window
  2. SSH into remote server
  3. Split vertically with current profile
  4. SSH into (different) remote server
  5. Get both sessions to be at a password prompt (e.g. try becoming sudo on both sessions)
  6. Open password manager
  7. select a saved password
  8. Mark Broadcast
  9. Select Enter Password
  10. Crash occurs

What happened

When trying to broadcast passwords to (at least) two sessions split vertically in the same window a crash occurs.

What should have happened

Password should have been broadcast to both sessions