-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Bug: openocd 0.10.0-6 Ubuntu dies while debugging with -rtos auto #13285
Comments
i just saw i forgot the bt of the open ocd crash:
|
This is an openocd bug: before (malfuctioning)
after (working just not knowing how to handle RIOT)
|
wrong button |
There's a branch of openocd here that has RTOS support for Riot cooked in. It doesn't get updated all the time but it's a fairly recent build. |
I just also did a forward-port of the daniel-k RIOT for openocd patches |
The openocd with the forward ported daniel-k RIOT RTOS patches is available here https://github.com/kfessel/openocd |
Any plans to provide this work upstream ? |
@aabadie: atm i have no intention to get this upstream But something happened there: http://openocd.zylin.com/#/c/4256/ seems like @benpicco got something into openocds current master i think he will have tested with current RIOT |
The latest stable OpenOCD works fine and there is little we can do on the RIOT side anyway, so IMO this can be closed. |
Description
$_TARGETNAME configure -rtos auto
seemingly leads to maldetection of a different RTOS with Ubuntu upstream openocd-0.10.0-6 (Ubuntu)
there is no maldetection but a failure in named openocd that happens when the execution is stopped
for some reason the thread update will be called even though no RTOS was detected, which leads to openocd segfaulting.
this is reproducable with openocd-0.10.0-6 on Ubuntu (may also Debian since it uses the same Package)
gdb> attach <openocd pid>
provides following backtrace
Thread 1 "openocd" received signal SIGSEGV, Segmentation fault. uCOS_III_update_thread_offsets (rtos=0x564ae6dc72e0) at src/rtos/uCOS-III.c:193 193 src/rtos/uCOS-III.c: No such file or directory.
after that openocd dies
i patched the pm_set_lowest to do nothing to avoid missing clock beeing the reason
Steps to reproduce the issue
build and flash default example (does happen with other applications to)
then start debugging
to debug this get openocd dbg symbols and do ein parrallel
Expected results
not dieing openocd while debuging
Actual results
openocd dies
Versions
Ubuntu openocd-0.10.0-6
riot master
#4058
The text was updated successfully, but these errors were encountered: