Comments (4)
I installed GDB 13.1 (from here: https://raw.githubusercontent.com/archlinux/svntogit-community/531f42bb21a34e9a291247e6eee744931061c83a/trunk/PKGBUILD) in an attempt to debug with symbols and the bug is gone. So I guess that they fixed it upstream already!
Sorry for the noise and thanks for this awesome dashboard!
from gdb-dashboard.
This is likely a GDB bug (like #154 was), IMHO I shouldn't be able to crash GDB using its Python API, even if I wanted to.
You can try to identify which module causes the issue (start with no modules at all), my bet is on some modules that prints values from the inferior, just like the aforementioned issue. You can follow a similar approach to try to pinpoint the root cause.
from gdb-dashboard.
I could reproduce the issue with GDB 12.1. I got the following stack trace (sadly missing a lot of symbols):
─── Output/messages ──────────────────────────────────────────────────────────── [0/0]
0x08101c84 in ?? ()
Fatal signal: Segmentation fault
----- Backtrace -----
0x4c1515 ???
0x5a60cf ???
0x5a613f ???
0x7f1493651f4f ???
0x7ef471 ???
0x7f3e67 ???
0x542376 ???
0x542e3c ???
0x68c734 ???
0x7f14944fabad cfunction_call
Objects/methodobject.c:543
0x7f14944c0471 _PyObject_Call
Objects/call.c:305
0x7f149446e7c6 do_call_core
Python/ceval.c:5943
0x7f149446e7c6 _PyEval_EvalFrameDefault
Python/ceval.c:4277
0x7f1494580d9f _PyEval_EvalFrame
./Include/internal/pycore_ceval.h:46
0x7f1494580d9f _PyEval_Vector
Python/ceval.c:5065
0x7f1494470f98 _PyObject_VectorcallTstate
./Include/cpython/abstract.h:114
0x7f1494470f98 PyObject_Vectorcall
./Include/cpython/abstract.h:123
0x7f1494470f98 call_function
Python/ceval.c:5891
0x7f1494470f98 _PyEval_EvalFrameDefault
Python/ceval.c:4198
0x7f1494580d9f _PyEval_EvalFrame
./Include/internal/pycore_ceval.h:46
0x7f1494580d9f _PyEval_Vector
Python/ceval.c:5065
0x7f1494470f98 _PyObject_VectorcallTstate
./Include/cpython/abstract.h:114
0x7f1494470f98 PyObject_Vectorcall
./Include/cpython/abstract.h:123
0x7f1494470f98 call_function
Python/ceval.c:5891
0x7f1494470f98 _PyEval_EvalFrameDefault
Python/ceval.c:4198
0x7f1494580d9f _PyEval_EvalFrame
./Include/internal/pycore_ceval.h:46
0x7f1494580d9f _PyEval_Vector
Python/ceval.c:5065
0x7f14944c2d25 _PyObject_VectorcallTstate
./Include/cpython/abstract.h:114
0x7f14944c2d25 method_vectorcall
Objects/classobject.c:53
0x7f149446f9f1 _PyObject_VectorcallTstate
./Include/cpython/abstract.h:114
0x7f149446f9f1 PyObject_Vectorcall
./Include/cpython/abstract.h:123
0x7f149446f9f1 call_function
Python/ceval.c:5891
0x7f149446f9f1 _PyEval_EvalFrameDefault
Python/ceval.c:4231
0x7f1494580d9f _PyEval_EvalFrame
./Include/internal/pycore_ceval.h:46
0x7f1494580d9f _PyEval_Vector
Python/ceval.c:5065
0x7f14944c2c2c _PyObject_VectorcallTstate
./Include/cpython/abstract.h:114
0x7f14944c2c2c method_vectorcall
Objects/classobject.c:83
0x7f14944c0d0b _PyObject_VectorcallTstate
./Include/cpython/abstract.h:114
0x7f14944c0d0b object_vacall
Objects/call.c:734
0x7f14944c10ee PyObject_CallFunctionObjArgs
Objects/call.c:841
0x69634a ???
0x6aae6b ???
0x69be61 ???
0x60192d ???
0x5f5416 ???
0x5ff9ec ???
0x6fe3cd ???
0x880204 ???
0x88038f ???
0x6301e4 ???
0x631e94 ???
0x416c44 ???
0x7f149363c78f ???
0x7f149363c849 ???
0x41c581 ???
0xffffffffffffffff ???
---------------------
A fatal error internal to GDB has been detected, further
debugging is not possible. GDB will now terminate.
This is a bug, please report it. For instructions, see:
<https://www.gnu.org/software/gdb/bugs/>.
Segmentation fault (core dumped)
This happens very early on boot. I can no longer reproduce once in e.g. main(). Not true, not sure when and why it happens exactly.
from gdb-dashboard.
Good to know! Not at all, and thanks for your deep dive into this.
from gdb-dashboard.
Related Issues (20)
- crashed when I debug a cuda app HOT 1
- [Feature Request]: unwatch expression by id HOT 2
- Ability to control module output with configurable format string HOT 1
- Cannot write the dashboard HOT 1
- Issue with catch throw HOT 3
- Don't know how to use gdb-dashboard HOT 3
- Color scheme for the bottom section HOT 1
- Disable gdb startup text HOT 5
- how to disable output / messages? or remove from source code? HOT 1
- doesn't work, when source the .gdb-dashboard HOT 1
- Clion GDB HOT 1
- armv8 registers cannot be displayed HOT 2
- Last command still fails on gdb 8.2-19.el8 on rocky 8 HOT 3
- Dashboard flickering due to unexpected disappear/re-appear of original one-line src code at the top
- How do you save the dashboard layout? HOT 3
- Not able to install HOT 22
- On gdb shell, print <var_nam> must wait for user to press enter for more and q for quit and c for continue to print till end. But not happening HOT 3
- [Enhancement] trace from born till death HOT 1
- Invalid escape sequence errors with new Python HOT 1
- Windows GDB is broken
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gdb-dashboard.