Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation fault #313

Closed
KenxinKun opened this issue Mar 8, 2022 · 1 comment
Closed

Segmentation fault #313

KenxinKun opened this issue Mar 8, 2022 · 1 comment

Comments

@KenxinKun
Copy link

Hi! I'm just trying to run the verification steps (here) and all the variants of the command return me a segmentation fault... Here's the output:

$ openocd -f interface/stlink.cfg -f target/stm32f3x.cfg

Open On-Chip Debugger 0.11.0
Licensed under GNU GPL v2
For bug reports, read
	http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "hla_swd". To override use 'transport select <transport>'.
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : clock speed 1000 kHz
[1]    71890 segmentation fault  openocd -f interface/stlink.cfg -f target/stm32f3x.cfg

Some extra context:

  • STM32F3DISCOVERY connected via USB ST-LINK to miniB to USB-A cable to USB-C adapter to my mac
  • Board is functional (i.e. default loaded SW is running with LEDs flashing and gyroscope on etc)
  • Running MacOs Monterey 12.2.1
  • rustc 1.58.1
  • Added rustup target thumbv7em-none-eabihf
  • Installed cargo-binutils, llvm-tools-preview and cargo-generate
  • gdb 10.3-2021.07
  • openocd 0.11.0
  • qemu 6.2.0

Any suggestions on how to solve this?

Thanks!

@KenxinKun
Copy link
Author

Aftes some help from a friend debugging via lldb it seems my issue is the same as the one described here.
Uninstalling openocd and reinstalling with brew install openocd --HEAD fixed the segmentation fault issue :)
Closing this but adding link above in case someone else gets stuck in the same place!
Screenshot 2022-03-12 at 14 31 41

neerajadsul added a commit to neerajadsul/book-1 that referenced this issue Mar 16, 2022
neerajadsul added a commit to neerajadsul/book-1 that referenced this issue Mar 16, 2022
bors bot added a commit that referenced this issue Mar 17, 2022
314: Update OpenOCD install instruction for #313 r=eldruin a=neerajadsul

Hi, I faced same issue as #313. I thought it may help to add the resolution to the docs.

Co-authored-by: Neeraj Adsul <neeraj.adsul@gmail.com>
bors added a commit to rust-lang-ci/rust that referenced this issue Mar 29, 2022
Update books

## nomicon

3 commits in f6d6126fc96ecf4a7f7d22da330df9506293b0d0..11f1165e8a2f5840467e748c8108dc53c948ee9a
2022-02-26 02:21:21 +0900 to 2022-03-19 16:02:00 -0400
- Make the Vec impl be slightly more careful with ZSTs and alignment.
- implement `IntoIterator` for `Vec` (rust-lang/nomicon#337)
- Add an explanation shared to exclusive transmute (rust-lang/nomicon#344)

## reference

2 commits in 0a2fe6651fbccc6416c5110fdf5b93fb3cb29247..c97d14fa6fed0baa9255432b8a93cb70614f80e3
2022-03-15 09:32:25 -0700 to 2022-03-19 18:18:10 -0700
- Fixed inconsistency in the usage of semicolon at end of scopes (rust-lang/reference#1182)
- Document ADX `target_feature` (rust-lang/reference#1172)

## book

23 commits in 036e88a4f135365de85358febe5324976a56030a..ea90bbaf53ba64ef4e2da9ac2352b298aec6bec8
2022-03-04 21:53:33 -0500 to 2022-03-28 21:59:34 -0400
- Fix nostarch snapshot
- Snapshot of chapter 7 for nostarch
- Add a forward reference to chapter 14, another example of pub use
- Clarify pub use example. Fixes rust-lang/book#2716.
- Fancy quotes
- Fix incorrectly worded sentence. Fixes rust-lang/book#3086.
- Reword description of how a listing came to be
- Call out binary+library crate practices
- Define binary and library crates more explicitly
- Clarify when a path is a crate name and when it should be literal crate
- Make it clearer the outer `mod` doesn't move to the file
- Don't wrap this example in main when copying. Fixes rust-lang/book#2930.
- Try to make clearer that `mod` is not an `import`
- Mention mod.rs file naming scheme
- Explain why submodule subdirectories are needed more
- Rename a separate example of serve_order to deliver_order
- Show an example that `use` only applies in its own scope
- quick modules guide
- Tweak a snippet of ch18-03
- Propagating edits to chapter 10 back
- Responses to nostarch questions of chapter 10
- Update src/ch04-01-what-is-ownership.md
- Add Danish translation link. Connects to rust-lang/book#3079.

## rust-by-example

2 commits in d504324f1e7dc7edb918ac39baae69f1f1513b8e..ec954f35eedf592cd173b21c05a7f80a65b61d8a
2022-03-07 09:26:32 -0300 to 2022-03-22 11:09:06 -0300
- PathBuf details and example (rust-lang/rust-by-example#1519)
- Move allow dead code attribute and add comment (rust-lang/rust-by-example#1518)

## rustc-dev-guide

1 commits in 0e4b961a9c708647bca231430ce1b199993e0196..155126b1d2e2cb01ddb1d7ba9489b90d7cd173ad
2022-03-14 08:40:37 -0700 to 2022-03-22 14:34:21 +0100
- update section for type system constants (rust-lang/rustc-dev-guide#1329)

## embedded-book

1 commits in d5fc1bce3f8eb398f9c25f1b15e0257d7537cd41..a6de8b6e3ea5d4f0de8b7b9a7e5c1405dc2c2ddb
2022-01-24 07:13:31 +0000 to 2022-03-17 21:21:39 +0000
- Update OpenOCD install instruction for rust-embedded/book#313  (rust-embedded/book#314)
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

No branches or pull requests

1 participant