Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
howto:gdb [2018/01/09 16:55] – [Core File] Tips on service startup file modifications to enable core dumps digital man | howto:gdb [2018/10/07 00:11] – [Core File] Mention the suid_dumpable thing needed for core files to be generated on Linux when running sbbs with the setuid feature digital man | ||
---|---|---|---|
Line 35: | Line 35: | ||
LimitCORE=infinity | LimitCORE=infinity | ||
| | ||
- | :!: Linux Sysops: | + | :!: **Linux Sysops**:\\ |
- | lines in your ''/ | + | To help locate sbbs crash core files, |
# Controls whether core dumps will append the PID to the core filename. | # Controls whether core dumps will append the PID to the core filename. | ||
Line 45: | Line 45: | ||
This will place core files with the name '' | This will place core files with the name '' | ||
instead of '' | instead of '' | ||
+ | |||
+ | Also, if you're using the '' | ||
+ | fs.suid_dumpable = 2 | ||
+ | | ||
+ | You can also set '' | ||
+ | # echo 2 > / | ||
+ | | ||
===== Debugging ===== | ===== Debugging ===== | ||
Line 52: | Line 59: | ||
or (if debugging with a core file): | or (if debugging with a core file): | ||
# gdb / | # gdb / | ||
+ | or (if attaching to an existing running instance, read the pid from ''/ | ||
+ | # gdb / | ||
B. Run Synchronet (if no core file used): | B. Run Synchronet (if no core file used): |