Comments (8)
Are you getting coredumps? (might not be enabled)
I would really like to see a backtrace from one
$ gdb /path/to/unitd /path/to/coredump
(gdb) bt full
Or if your running systemd then it may be intercepting the core dumps,
$ coredumpctl
If that shows a list, good stuff
$ coredumpctl gdb
Will launch gdb on the most recent coredump...
from unit.
Are you getting coredumps? (might not be enabled)
I would really like to see a backtrace from one
$ gdb /path/to/unitd /path/to/coredump (gdb) bt full
Or if your running systemd then it may be intercepting the core dumps,
$ coredumpctl
If that shows a list, good stuff
$ coredumpctl gdb
Will launch gdb on the most recent coredump...
How I can enable coredumps in unitd processes?
I can't find anything in doc this info, about enabling coredumps in unitd.
How i can do this in docker container?
from unit.
Not really a Unit specific thing...
In the container what does
$ cat /proc/sys/kernel/core_pattern
return?
When unit is running what does
$ cat /proc/`pidof -s unitd`/limits
show?
from unit.
Not really a Unit specific thing...
In the container what does
$ cat /proc/sys/kernel/core_pattern
return?
When unit is running what does
$ cat /proc/`pidof -s unitd`/limits
show?
cat /proc/sys/kernel/core_pattern
/tmp/core
cat /proc/pidof -s unitd
/limits:|
Limit Soft Limit Hard Limit Units
Max cpu time unlimited unlimited seconds
Max file size unlimited unlimited bytes
Max data size unlimited unlimited bytes
Max stack size 8388608 unlimited bytes
Max core file size unlimited unlimited bytes
Max resident set unlimited unlimited bytes
Max processes 1048576 1048576 processes
Max open files 1048576 1048576 files
Max locked memory 8388608 8388608 bytes
Max address space unlimited unlimited bytes
Max file locks unlimited unlimited locks
Max pending signals 1030780 1030780 signals
Max msgqueue size 819200 819200 bytes
Max nice priority 0 0
Max realtime priority 0 0
Max realtime timeout unlimited unlimited us
from unit.
OK, so according to that you should be betting core dumps in /tmp/ named core
or possibly core.pid
(depending on the setting of /proc/sys/kernel/core_uses_pid). See anything there?
from unit.
If you find a core file. You can do
$ gdb /path/to/uniid /path/to/corefile
(gdb) bt full
"Might need to press 'c' to get the full thing"
Alternatively if you are able to create a minimal reproducer...
from unit.
If you find a core file. You can do
$ gdb /path/to/uniid /path/to/corefile (gdb) bt full "Might need to press 'c' to get the full thing"
Alternatively if you are able to create a minimal reproducer...
Thanks for the answer. Another question, are dumps uploaded only when a unitd crashes or can they be uploaded when some process crashes?
from unit.
Coredumps are a standard UNIX (and other OS's) feature and will generally be generated for any processes that crash, or when receiving a signal whose default action is to coredump, (SIGABRT, SIGBUS, SIGFPE, SIGILL, SIGQUIT, SIGSEGV, SIGSYS, SIGTRAP, SIGXCPU, SIGXFSZ).
You can also force a running process to coredump via gcore(1)
from unit.
Related Issues (20)
- Change server name header HOT 1
- Add error code and error message as variables at error page HOT 1
- Docker: for python based images, use the -slim version HOT 14
- Building Containers for amd64 on ARM instances fails HOT 5
- Crypto HOT 2
- Coredump if port 443 is occupied by another process ( Almalinux 9 ) HOT 4
- Problem Too many redirect
- nginx configuration to redirect to existing maintenance page with env var condition HOT 1
- Support Python 3.11/3.12 on RHEL 8/9 HOT 2
- unitctl: fix up the output format tag's default HOT 1
- Inconsistency in Supported Language Count Between Repository Description and README HOT 1
- build fails on freebsd and libressl HOT 1
- grpc idle timeout is affected by `client_header_timeout header` HOT 2
- The issue about try_files cmd HOT 2
- review unit type choice HOT 1
- How to modify the value of nginx-unit backlog parameter? I want to increase it to meet my performance needs. It's time to change the default value, 511 is no longer applicable HOT 26
- Listeners 127.0.0.1:xx is not working, The prompt already exists, but I haven't seen the configuration anywhere HOT 3
- Upgrade wasm-wasi-component to latest Wasmtime HOT 2
- WAF
- Release 1.33 meta tasks HOT 10
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 unit.