User Tools

Site Tools


debugging

Table of Contents

If you want to send us your comments, please do so. Thanks
More on comments


Debugging

Coredumps

Enable

  • Login as root
  • ulimit -c unlimited
    • Check with ulimit -c
  • vi /etc/security/limits.conf and add:
  *               soft    core            unlimited
  *               hard    core            unlimited
  • To save core dumps in /var/dumps, run:
    • mkdir -p /var/dumps
    • chmod 1777 /var/dumps
    • Check permissions: ll -d /var/dumps should result in something like:
      • drwxrwxrwt 2 root root 4096 13 aug 14:52 /var/dumps (black text on green background)
    • Make sure /var/dumps has enough empty space
    • echo /var/dumps/core.%e.%p | tee /proc/sys/kernel/core_pattern
  • reboot
  • After reboot login as root in a terminal again and check with ulimit -c
    • It should return unlimited
      • If not, run ulimit -c unlimited and check again with ulimit -c
  • Make a program crash and check if a core dump is created in /var/dumps

Disable

Replace “/var/dumps/core.%e.%p” from /proc/sys/kernel/core_pattern with “core” # Without the double quotes


Main subjects on this wiki: Linux, Debian, HTML, Microcontrollers, Privacy

RSS
Disclaimer
Privacy statement
Bugs statement
Cookies
Copyright © : 2014 - 2026 Webevaluation.nl and the authors
Changes reserved.

debugging.txt · Last modified: by wim