5
3
Fork
You've already forked bmputil
2

MSVC v1.0.0 Crash during probe switch / firmware update for common targets variant #65

Open
opened 2025年10月06日 20:01:22 +02:00 by DavidKeizerFA · 0 comments
DavidKeizerFA commented 2025年10月06日 20:01:22 +02:00 (Migrated from github.com)
Copy link

When attempting to switch variants, or force a firmware update on a Black Magic Probe 2.0.0 to the "common targets" firmware variant, the executable crashes with the following output:


bmputil-cli.exe probe update -f
⠁ Updating release metadata cache ⠉ Updating release metadata cache ⠙ Updating release metadata cache ⠚ Updating release metadata cache ⠒ Updating release metadata cache ⠂ Updating release metadata cache ⠂ Updating release metadata cache ⠒ Updating release metadata cache ⠲ Updating release metadata cache ⠴ Updating release metadata cache Updating release metadata cache [2025年10月06日T17:46:12Z INFO bmputil::metadata] Validating v1 metadata with 18 releases present
[2025年10月06日T17:46:12Z WARN bmputil_cli] Forcibly downgrading firmware from 2.0.0 to 2.0.0
✔ Which firmware variant would you like to run on your probe? · Black Magic Debug for BMP (common targets)
✔ What action would you like to take with this firmware? · Flash to probe
Error: ------------[ ✂ cut here ✂ ]------------
Unhandled crash in bmputil-cli v1.0.0
 0: bad offset 1229968
 1: bad offset 1229968
Location:
 src/elf.rs:66
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 1: onig_get_start_by_callout_args<unknown>
 at <unknown source file>:<unknown line>
 2: onig_builtin_mismatch<unknown>
 at <unknown source file>:<unknown line>
 3: onig_builtin_mismatch<unknown>
 at <unknown source file>:<unknown line>
 4: onig_builtin_mismatch<unknown>
 at <unknown source file>:<unknown line>
 5: onig_builtin_mismatch<unknown>
 at <unknown source file>:<unknown line>
 6: onig_unicode_define_user_property<unknown>
 at <unknown source file>:<unknown line>
 7: BaseThreadInitThunk<unknown>
 at <unknown source file>:<unknown line>
 8: RtlUserThreadStart<unknown>
 at <unknown source file>:<unknown line>

Remarks:

  • The probe was previously running an older release, but I do not recall which version, and was initially updated to v2.0.0 for ST and ST-clones firmware variant.
  • Flashing the RISC-V variant succeeds, but I do get the following: ERROR nusb::platform::windows_winusb::device] WinUsb_ControlTransfer failed: A device attached to the system is not functioning. (os error 31). This may not be related.
  • Flashing back to the ST and ST-clones targets behaves the same as the RISC-V variant.
  • Flashing to the common target variant always fails with the above crash.
  • The crash is the same for bmputil-cli.exe probe update -f and bmputil-cli.exe probe switch.
  • OS is Windows 10 20H2 (19042.2728)
When attempting to switch variants, or force a firmware update on a Black Magic Probe 2.0.0 to the "common targets" firmware variant, the executable crashes with the following output: ``` bmputil-cli.exe probe update -f ⠁ Updating release metadata cache ⠉ Updating release metadata cache ⠙ Updating release metadata cache ⠚ Updating release metadata cache ⠒ Updating release metadata cache ⠂ Updating release metadata cache ⠂ Updating release metadata cache ⠒ Updating release metadata cache ⠲ Updating release metadata cache ⠴ Updating release metadata cache Updating release metadata cache [2025年10月06日T17:46:12Z INFO bmputil::metadata] Validating v1 metadata with 18 releases present [2025年10月06日T17:46:12Z WARN bmputil_cli] Forcibly downgrading firmware from 2.0.0 to 2.0.0 ✔ Which firmware variant would you like to run on your probe? · Black Magic Debug for BMP (common targets) ✔ What action would you like to take with this firmware? · Flash to probe Error: ------------[ ✂ cut here ✂ ]------------ Unhandled crash in bmputil-cli v1.0.0 0: bad offset 1229968 1: bad offset 1229968 Location: src/elf.rs:66 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1: onig_get_start_by_callout_args<unknown> at <unknown source file>:<unknown line> 2: onig_builtin_mismatch<unknown> at <unknown source file>:<unknown line> 3: onig_builtin_mismatch<unknown> at <unknown source file>:<unknown line> 4: onig_builtin_mismatch<unknown> at <unknown source file>:<unknown line> 5: onig_builtin_mismatch<unknown> at <unknown source file>:<unknown line> 6: onig_unicode_define_user_property<unknown> at <unknown source file>:<unknown line> 7: BaseThreadInitThunk<unknown> at <unknown source file>:<unknown line> 8: RtlUserThreadStart<unknown> at <unknown source file>:<unknown line> ``` Remarks: - The probe was previously running an older release, but I do not recall which version, and was initially updated to v2.0.0 for ST and ST-clones firmware variant. - Flashing the RISC-V variant succeeds, but I do get the following: `ERROR nusb::platform::windows_winusb::device] WinUsb_ControlTransfer failed: A device attached to the system is not functioning. (os error 31)`. This may not be related. - Flashing back to the ST and ST-clones targets behaves the same as the RISC-V variant. - Flashing to the common target variant always fails with the above crash. - The crash is the same for `bmputil-cli.exe probe update -f` and `bmputil-cli.exe probe switch`. - OS is Windows 10 20H2 (19042.2728)
Sign in to join this conversation.
No Branch/Tag specified
main
add-coc-no-ai
v1.1.0
v1.0.0
v1.0.0-rc.2
v1.0.0-rc.1
v0.1.3
v0.1.2
v0.1.1
v0.1.0
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
blackmagic-debug/bmputil#65
Reference in a new issue
blackmagic-debug/bmputil
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?