Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
BIND
BIND
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 632
    • Issues 632
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 106
    • Merge Requests 106
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • ISC Open Source Projects
  • BINDBIND
  • Merge Requests
  • !2990

Merged
Opened Feb 03, 2020 by Michal Nowak@mnowakMaintainer

Enhance unit test debugging

  • Overview 59
  • Commits 1
  • Pipelines 16
  • Changes 2

When unit test fails, core file is created. Kyua's 'debug' command can run GDB on it and provide a backtrace. Unfortunately Kyua is picky about location of these core files:

Attempting core file candidate /tmp/kyua.J8TrsX/131/work/query_test.core: not found
Attempting core file candidate /home/newman/isc/ws/bind9/lib/ns/tests/query_test.core: not found
Attempting core file candidate /tmp/kyua.J8TrsX/131/work/core.271745: not found
Attempting core file candidate /cores/core.271745: not found

Instead of Kyua being configured to match system core file handler, one has to change system core file handler to be in line with Kyua's expectations.

The safest location to put core files in is /cores/, name of the core file needs to be core.<PID>, see https://gitlab.isc.org/isc-private/devops/issues/69.

Edited Mar 19, 2020 by Michał Kępień
Assignee
Assign to
Reviewer
Request review from
April 2020 (9.11.18, 9.16.2, 9.17.1)
Milestone
April 2020 (9.11.18, 9.16.2, 9.17.1) (Past due)
Assign milestone
Time tracking
Reference: isc-projects/bind9!2990
Source branch: mnowak/unit-test-debugging-enhancements