[Pkg-electronics-devel] Bug#1008870: openocd: segfault when using stm32f1x config

Matsievskiy S.V. seregaxvm.main at gmail.com
Sun Apr 3 10:26:05 BST 2022


Package: openocd
Version: 0.11.0-1
Severity: important
X-Debbugs-Cc: seregaxvm.main at gmail.com

Dear Maintainer,

OpenOCD segfaults when using target/stm32f1x.cfg configuration. I do not
experience this issue with newer version built from source (Open On-Chip
Debugger 0.11.0+dev-02226-gf6ffede8b).

dmesg entry:
[ 7388.531636] openocd[36055]: segfault at 14 ip 00007f64e097b12d sp
00007ffdde27a090 error 4 in libusb-1.0.so.0.3.0[7f64e0974000+f000]

Way to reproduce:
1. Connect STLinkV2
2. Run command openocd -f openocd.cfg (file is attached)


-- System Information:
Debian Release: bookworm/sid
  APT prefers testing
  APT policy: (900, 'testing'), (580, 'stable-security'), (550, 'stable-updates'), (500, 'stable'), (200, 'unstable'), (60, 'testing-debug'), (50, 'stable-debug'), (40, 'unstable-debug'), (20, 'experimental'), (1, 'experimental-debug')
Architecture: amd64 (x86_64)

Kernel: Linux 5.16.0-5-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_FIRMWARE_WORKAROUND
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages openocd depends on:
ii  libc6              2.33-7
ii  libcapstone4       4.0.2-5
ii  libftdi1-2         1.5-5+b2
ii  libgpiod2          1.6.3-1+b1
ii  libhidapi-hidraw0  0.11.2-1
ii  libjaylink0        0.2.0-1
ii  libjim0.79         0.79+dfsg0-3
ii  libusb-0.1-4       2:0.1.12-32
ii  libusb-1.0-0       2:1.0.25-1

openocd recommends no packages.

openocd suggests no packages.

-- no debconf information
-------------- next part --------------
source [find interface/stlink.cfg]
transport select hla_swd
adapter speed 1800
telnet_port 9999

source [find target/stm32f1x.cfg]

stm32f1x.cpu configure -event gdb-attach halt
stm32f1x.cpu configure -event gdb-detach resume
gdb_port pipe

log_output openocd.log

init
reset halt
stm32f1x unlock 0
reset halt


More information about the Pkg-electronics-devel mailing list