Synchronet v3.19b-Win32 (install) has been released (Jan-2022).

You can donate to the Synchronet project using PayPal.

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
howto:gdb [2018/01/06 14:56] – [Debugging] Details on handling SIGPIPE and gdbinit files digital manhowto:gdb [2018/03/24 01:38] – [Debugging] Add attach to running instance instructions digital man
Line 20: Line 20:
 You can run ''ulimit -c'' to check if core file generation is enabled for the You can run ''ulimit -c'' to check if core file generation is enabled for the
 current user profile (0 = disabled, non-zero or "unlimited" = enabled). An  current user profile (0 = disabled, non-zero or "unlimited" = enabled). An 
-"unlimited" core file size is the preferred setting. If your system is +"unlimited" core file size is the preferred setting.
-configured for no core file generation, check for a call to ''ulimit -c 0'' +
-in your ''/etc/profile'' (or similar startup file) and remove/edit the command.+
  
 +On Debian Linux (at least), you can enable unlimited core file generation as the default for
 +all (non-root) users by adding the following line to ''/etc/security/limits.conf'' file:
 +<file>
 +*               soft    core            unlimited
 +</file>
 +
 +If you're running sbbs daemonzied (e.g. as a *nix service), you may need to edit your service
 +start up script (e.g. ''/etc/init.d/sbbs'') to set the core limit to //unlimited//:
 +  ulimit -c unlimited
 +  
 +Of in the ''[Service]'' section of your ''/lib/systemd/system/sbbs.service'' file:
 +  LimitCORE=infinity
 +  
 :!: Linux Sysops: to help locate sbbs crash core files, the following :!: Linux Sysops: to help locate sbbs crash core files, the following
 lines in your ''/etc/sysctl.conf'' file can be helpful: lines in your ''/etc/sysctl.conf'' file can be helpful:
Line 41: Line 52:
 or (if debugging with a core file): or (if debugging with a core file):
   # gdb /sbbs/exec/sbbs /tmp/core.sbbs.####   # gdb /sbbs/exec/sbbs /tmp/core.sbbs.####
 +or (if attaching to an existing running instance, read the pid from ''/var/run/sbbs.pid''):
 +  # gdb /sbbs/exec/sbbs <pid>
  
 B. Run Synchronet (if no core file used): B. Run Synchronet (if no core file used):