00-agenda

14
Crash Dump Analysis MFF UK – summer semester 2011 Jakub Jermář Martin Děcký

description

Agenda

Transcript of 00-agenda

  • Crash Dump AnalysisMFF UK summer semester 2011

    Jakub JermMartin Dck

  • CrashDumpAnalysisMFFUKsummersemester2011 2

    Motivation

    Goal:Usetherighttoolwhenanapplicationorthekernelcrashes.

    Observation:printf()isusuallynottherighttoolforsatisfyinggoal.

  • CrashDumpAnalysisMFFUKsummersemester2011 3

    Motivation(2)

    Moreobservations

    Acrashmighthappeninaproductionsystem Wecannotalterthebinaryandrunitagain Wehavetoinvestigatefromtherecordofthememorylayoutinthetimeofthecrash(crashdump)

    Itisnotwisetoreinventthewheel Thiscourseisaboutsomewellproventoolsandbestpractices

    Somedegreeoflowlevelprogrammingknowledgeisnecessary

  • CrashDumpAnalysisMFFUKsummersemester2011 4

    Outline

    Basiclowlevelprogrammingknowledge

    Processorarchitectures,assembler,stack,ABI

    IA32,AMD64,SPARCV9

    Basicsystemdebuggingtools

    Solaris,Linux,Windows

    Corefiles,crashdumps

    Howtoanalyzethem

    Basicsofgdb,mdb

  • CrashDumpAnalysisMFFUKsummersemester2011 5

    Outline(2)

    Somecommoncausesofcrashes

    Memorycorruption

    Deadlock

    Lockup

    Toolsfordynamictracing

    DTrace

    Toolsforcommandlinesystemdiagnostics

    prstat,pstack,ptree,iostat,vmstat,mpstat,truss

  • CrashDumpAnalysisMFFUKsummersemester2011 6

    Agenda

    Lectures

    Tuesday10:4012:10roomS10

    Tutorials/Labs

    Tuesday12:2013:50roomSU1 Physicalcapacityislimitedto15students

    Pleasemakesureyouhaveyourulabaccountworking

    Youcanbringyourownnotebooks MakesureyouhaveInternetconnection

  • CrashDumpAnalysisMFFUKsummersemester2011 7

    Agenda(2)

    Lecturers

    JakubJerm([email protected])

    MartinDck([email protected])

    Othercontributors

    VtzslavBtrla([email protected])

    VineethPillai

  • CrashDumpAnalysisMFFUKsummersemester2011 8

    Agenda(3)

    Web

    Slides,basicinformation

    http://d3s.mff.cuni.cz/cda

    Mailinglist

    Importantannouncements,discussion Pleasemakesureyouareenlisted

    [email protected]

    https://d3s.mff.cuni.cz/mailman/listinfo/cda

  • CrashDumpAnalysisMFFUKsummersemester2011 9

    Grading

    Credit

    Nolabattendanceneeded Butstronglyrecommended

    Passingapracticaltest E.g.identifyingarootcausefromacrashdump Attheendofthesemester,threepossibilities

    Exam

    Passingawrittentest Atleastthreeterms,questionswillbeavailable

  • CrashDumpAnalysisMFFUKsummersemester2011 10

    ExpectedKnowledge

    BasicClanguageknowledge Atleastverybasicknowledgeoflowlevelprogramming

    Principlesofcomputersshouldsuffice BasicEnglish

    Fortheslidesandsomelectures

  • CrashDumpAnalysisMFFUKsummersemester2011 11

    Resources

    Lectures&Labs

    Mostimportanthandsonexperience

    Slidesarejustanoutline

    TheBook

    FrankHofmann:TheSolarisOperatingSystemonx86Platforms,CrashdumpAnalysis,OperatingSystemInternals

    http://opensolaris.org/os/community/documentation/files/book.pdf

  • CrashDumpAnalysisMFFUKsummersemester2011 12

    Resources(2)

    Otherbooks

    RichardMcDougall,JimMauro,BrendanGregg:SolarisPerformanceandTools:DTraceandMDBTechniquesforSolaris10andOpenSolaris Dynamictracingandcoredumpanalysisusingmdb

    ChrisDrake,KimberleyBrown:PANIC!UNIXSystemCrashDumpAnalysisHandbook Usefullgeneralreference

  • CrashDumpAnalysisMFFUKsummersemester2011 13

    Resources(3)

    Otherusefulresources

    NASMManual,AppendixB:InstructionList QuickreferenceofIA32andAMD64instructions

    http://www.nasm.us/doc/nasmdocb.html

    SPARCAssemblyLanguageReferenceManual,AppendixE:SPARCV9InstructionSet QuickreferenceofSPARCV9instructions

    http://download.oracle.com/docs/cd/E1996301/8211607/sparcv915322/index.html

  • CrashDumpAnalysisMFFUKsummersemester2011 14

    Disclaimer

    Yourmileagemayvary

    Notallsystemshavethesamelevelofsupportforcrashdumpanalysisandobservability Wewouldliketoteachtheprincipleswithoutrestrainingyoutoanyparticularplatform

    Butwealsoneedtobeabletoshowtheprinciplesinaction

    ThereforewearegoingtouseSolarismostofthetime Weareopentoyoursuggestions

    Slide 1Slide 2Slide 3Slide 4Slide 5Slide 6Slide 7Slide 8Slide 9Slide 10Slide 11Slide 12Slide 13Slide 14