apache / apache/nuttx

[BUG] JLink thread-aware support is broken on main

Open
#18,109 3 comments 0 reactions 0 assignees View on GitHub
Arch: arm Area: Debugging OS: Linux Type: Bug
Dominant language
C
Stars
4k
Forks
1.7k
Avg merge
1d 17h
Merged PRs (30d)
237

Description

### Description / Steps to reproduce the issue

When debugging with the `jlink-nuttx.so` I'm getting following crash, with NuttX 12.12 this worked fine.

```
/build/gdb-1WjiBe/gdb-15.0.50.20240403/gdb/regcache.c:432: internal-error: get_thread_regcache: Assertion `thread->state != THREAD_EXITED' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.

Create a core file of GDB?
(y or n) [answered Y; input not from terminal]
GDB session ended unexpectedly. exit-code: none, signal: SIGABRT
```

### On which OS does this issue occur?

[OS: Linux]

### What is the version of your OS?

Ubuntu 24.04

### NuttX Version

Main

### Issue Architecture

[Arch: arm]

### Issue Area

[Area: Debugging]

### Host information

_No response_

### Verification

- [x] I have verified before submitting the report.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.