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/06 14:56] – [Debugging] Details on handling SIGPIPE and gdbinit files digital man | howto:gdb [2019/03/13 09:28] – [See Also] A link to Debian gdb how-to article digital man | ||
---|---|---|---|
Line 20: | Line 20: | ||
You can run '' | You can run '' | ||
current user profile (0 = disabled, non-zero or " | current user profile (0 = disabled, non-zero or " | ||
- | " | + | " |
- | configured for no core file generation, check for a call to '' | + | |
- | in your ''/ | + | |
- | :!: Linux Sysops: | + | On Debian Linux (at least), you can enable unlimited core file generation as the default for |
- | lines in your ''/ | + | all (non-root) users by adding the following line to ''/ |
+ | < | ||
+ | * | ||
+ | </ | ||
+ | |||
+ | If you're running sbbs daemonzied (e.g. as a *nix service), you may need to edit your service | ||
+ | start up script (e.g. ''/ | ||
+ | ulimit -c unlimited | ||
+ | |||
+ | Of in the '' | ||
+ | LimitCORE=infinity | ||
+ | |||
+ | :!: **Linux Sysops**:\\ | ||
+ | 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 34: | 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 41: | 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): | ||
Line 64: | Line 84: | ||
===== See Also ===== | ===== See Also ===== | ||
- | * [[:howto:|howto index]] | + | * [[:howto:|How-To |
+ | * [[https:// | ||
{{tag> | {{tag> | ||