Comments (5)
It is not as crazy as it sounds. I have been looking into how to do that, which should be doable in the case of exceptions, less so for segfaults.
from xeus-cling.
On linux, the segmentation fault triggers a sigsegv signal which should result in a core dump containing all the info you need. Some reasons may prevent this core dump to be generated (option disabled in the kernel, redirection to a directory that is not writable); if that cannot be fixed, a solution is to set our own signal handler to generate some information, but there are limitations on what can be done inside such a signal handler.
from xeus-cling.
The core dump is actually printed out by the kernel, but I am not sure how we could generate a traceback from it.
from xeus-cling.
ROOT's interpreter (meaning the actual C++ prompt) does it. I think they trap SIGSEV and execute backtrace and print the result before exiting, as explained here
from xeus-cling.
Could https://github.com/bombela/backward-cpp be used? How can I view crash message for now?
from xeus-cling.
Related Issues (20)
- Trying to use preprocessor with c++11 but it's not work ?? HOT 1
- add_include_path for numpy include headers isn't detected
- Slow printing
- Frequent need to restart HOT 4
- gmp print functions don't print in xeus cling
- Unconditional kernel crash when unpacking pair
- Any plan to support C++20 ?
- std::visit does not work with lambda
- Update LLVM to 13+
- Interpreter errors handing STL objects in functions HOT 2
- Cin is not working HOT 1
- std::cout doesn't work on kernel C++ 14/17 HOT 1
- %%python not working in xeus-cpp HOT 4
- Add header only library
- Connection failed
- Multiuser jupyterhub using active directory
- features.h not found HOT 4
- 0.15.3 is incompatible with xeus-4.0.3: error: too few arguments to function call, expected 3, have 2
- c
- xcpp::xdisplay fails with linking error HOT 1
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 xeus-cling.