Giter VIP home page Giter VIP logo

bsd-coredump-history's Introduction

The History and Future of Core Dumps in FreeBSD

This paper details the history, present state and some ideas for the future of the core dump routines in FreeBSD. The history follows FreeBSD back through BSD to 5th Edition Research UNIX. This project would have not been possible without unix-history-repo.

This started as a talk proposal to AsiaBSD Con 2017 and BSDCan 2017 about my wants in FreeBSD but the research got out of hand and became a complete history on the topic.

1 Abstract

Crash dumps, also known as core dumps, have been a part of BSD since it’s beginnings in Research UNIX. A core dump is “a copy of memory that is saved on secondary storage by the kernel” for debugging a system failure1. Though 38 years have passed since doadump() came about in UNIX/32V, core dumps are still needed and utilized in much the same way they were then. Given this, one might assume the core dump code changed little over time but, with some research, this assumption has proven incorrect.

What has changed over time is where core dumps are sent to and what processor architectures are supported. Previous to the advent of UNIX, core dumps were printed to a line printer or punch cards. At the birth of UNIX core dumps were made to magnetic tape and because UNIX only supported the PDP-11, it was the only architecture supported for dumps. Over time machine architecture support has evolved from different PDP-11 models to hp300, i386 up to the present day with AMD64 and ARM64. In addition the type of dump device has changed from tape, to hard disk or another machine over a LAN.

The following paper begins with a quick background on what core dumps are and why operators might need them. Following that the current state of the core dump facility and some of the more common extensions in use are examined. We conclude with a call to action for upstreaming these extensions and modularizing the core dump code such that different methods of core dump can be dynamically loaded into the kernel on demand.

In addition a complete history of core dumps in UNIX and BSD was produced as research for this paper and can be found in the appendix.

2 ‘TODO’ list

2.1 DONE Create Slides

2.2 DONE Outline Slides

2.3 DONE Flesh Out Slides

2.4 DONE Add backtrace.io features

2.5 DONE Add how to force a dump

2.6 DONE Clean up notes

2.7 DONE Finish Textdump Procedure and Contents

2.8 DONE Revise the details of the minidump procedure

2.9 DONE Add Solaris?

  • Does this make sense (it’s no longer BSD based)? (no)
  • It does have a ton of features I want in FreeBSD. (illumos has all of them)

2.10 DONE Add Illumos

  • Could possibly replace Solaris section (it did)

2.11 DONE Finish Modularization of Core Dump Code section

2.12 TODO minidumpsz code needs publishing so I can reference it

2.13 TODO Finish Conclusion

2.14 DONE Submit Finished Paper to AsiaBSD Con 2017

2.15 DONE Submit to BSDCan

2.16 TODO Add Sandvine (projects/sv) Branch to history

2.17 DONE Add description of dumpon(8)

2.18 DONE Add thanks:

2.18.1 DONE Allan Jude - spelling

2.18.2 DONE Daniel Nowacki - spelling, grammar and syntax

2.18.3 DONE Chris Findeisen - phrasing suggestions

bsd-coredump-history's People

Contributors

allanjude avatar dandanio avatar gwydirsam avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.