SlideShare a Scribd company logo
1 of 8
Using Strace
Tracking System Calls and Signals
What is Strace?
• A system program that traces system calls and
signals of any script or program
• Allows the customization of output to focus on the
area you need to examine
• Quickly see a permissions issue
• Find files that are opened and closed
• Helps to troubleshoot problems
How to use Strace?
• Installation done by running
/scripts/ensurerpm strace or
yum install strace
• Run the command “strace” with several options.
Here are a few examples:
strace -fvs 4096 $(SCRIPT)
f = follow forks
v = verbose output
s = output line size
(the size 4096 give this many characters)
How to use Strace?
• Additional options
• Example of using all useful options
This command will show all system calls and signals of cPanel, WHM or
Webmail UI actions
-o = output goes to this file
-p = process PID to strace
strace -fvs 4096 -o /root/cpservd.strace -p `cat /var/run/cpsrvd.pid`
How to use Strace?
• Advanced Use:
• Calls that can be traced:
strace -e trace=file will trace only file accesses
strace -e trace=network will trace only network activity
strace -e trace=open will trace only open system calls
strace -e trace=!open will trace all system calls except open
strace -e trace=open,close,read,write
strace -e trace=process
strace -e trace=signal
How to read Strace output?
• Strace shows System Calls:
• Strace shows the Signals received (but not where
they came from):
read
write
open
close
stat
fork
connect
getuid
getgid
setuid
setgid
execve
chmod
chown
SIGINT (ex. ctrl-c)
SIGKILL (kill -9)
ENOENT (file or directory not found)
EPERM (permission error) (chmod)
ENOPERM (permission error (chown)
EACCESS if -1 (permission denied)
SIGSEGV (Segmentation fault)
How to read output?
• Once you get the strace output, just view the output
file.
1. Start with the error message. Search through the log file for the error
messages displayed:
Example: 32116 write(1, “There was a problem creating the”, 32)=32
2. Then start scrolling up for the last action resulting in an error before the
error was written to stdout:
Example: 32116 open("/home/scooby/etc/snoopy.com/passwd",
O_WRONLY|O_CREAT|O_APPEND| O_LARGEFILE, 0666) = -1 EACCES
(Permission denied)
Strace will not show:
• Any program logic
• Computation
• Strace is not a debugger

More Related Content

What's hot

Kernel Recipes 2017: Using Linux perf at Netflix
Kernel Recipes 2017: Using Linux perf at NetflixKernel Recipes 2017: Using Linux perf at Netflix
Kernel Recipes 2017: Using Linux perf at NetflixBrendan Gregg
 
Linux Performance Analysis: New Tools and Old Secrets
Linux Performance Analysis: New Tools and Old SecretsLinux Performance Analysis: New Tools and Old Secrets
Linux Performance Analysis: New Tools and Old SecretsBrendan Gregg
 
Kernel Module Programming
Kernel Module ProgrammingKernel Module Programming
Kernel Module ProgrammingSaurabh Bangad
 
Assignment unix & shell programming
Assignment  unix  & shell programmingAssignment  unix  & shell programming
Assignment unix & shell programmingMohit Aggarwal
 
Linux Kernel Booting Process (1) - For NLKB
Linux Kernel Booting Process (1) - For NLKBLinux Kernel Booting Process (1) - For NLKB
Linux Kernel Booting Process (1) - For NLKBshimosawa
 
Block I/O Layer Tracing: blktrace
Block I/O Layer Tracing: blktraceBlock I/O Layer Tracing: blktrace
Block I/O Layer Tracing: blktraceBabak Farrokhi
 
Kernel Recipes 2015: Linux Kernel IO subsystem - How it works and how can I s...
Kernel Recipes 2015: Linux Kernel IO subsystem - How it works and how can I s...Kernel Recipes 2015: Linux Kernel IO subsystem - How it works and how can I s...
Kernel Recipes 2015: Linux Kernel IO subsystem - How it works and how can I s...Anne Nicolas
 
Process scheduling (CPU Scheduling)
Process scheduling (CPU Scheduling)Process scheduling (CPU Scheduling)
Process scheduling (CPU Scheduling)Mukesh Chinta
 
Linux booting Process
Linux booting ProcessLinux booting Process
Linux booting ProcessGaurav Sharma
 
The linux networking architecture
The linux networking architectureThe linux networking architecture
The linux networking architecturehugo lu
 
Process' Virtual Address Space in GNU/Linux
Process' Virtual Address Space in GNU/LinuxProcess' Virtual Address Space in GNU/Linux
Process' Virtual Address Space in GNU/LinuxVarun Mahajan
 

What's hot (20)

Kernel Recipes 2017: Using Linux perf at Netflix
Kernel Recipes 2017: Using Linux perf at NetflixKernel Recipes 2017: Using Linux perf at Netflix
Kernel Recipes 2017: Using Linux perf at Netflix
 
Linux Programming
Linux ProgrammingLinux Programming
Linux Programming
 
Memory model
Memory modelMemory model
Memory model
 
Inter Process Communication
Inter Process CommunicationInter Process Communication
Inter Process Communication
 
Linux Performance Analysis: New Tools and Old Secrets
Linux Performance Analysis: New Tools and Old SecretsLinux Performance Analysis: New Tools and Old Secrets
Linux Performance Analysis: New Tools and Old Secrets
 
Kernel Module Programming
Kernel Module ProgrammingKernel Module Programming
Kernel Module Programming
 
Linux Internals - Part II
Linux Internals - Part IILinux Internals - Part II
Linux Internals - Part II
 
What is Bootloader???
What is Bootloader???What is Bootloader???
What is Bootloader???
 
Assignment unix & shell programming
Assignment  unix  & shell programmingAssignment  unix  & shell programming
Assignment unix & shell programming
 
Linux Kernel Booting Process (1) - For NLKB
Linux Kernel Booting Process (1) - For NLKBLinux Kernel Booting Process (1) - For NLKB
Linux Kernel Booting Process (1) - For NLKB
 
Block I/O Layer Tracing: blktrace
Block I/O Layer Tracing: blktraceBlock I/O Layer Tracing: blktrace
Block I/O Layer Tracing: blktrace
 
Kernel Recipes 2015: Linux Kernel IO subsystem - How it works and how can I s...
Kernel Recipes 2015: Linux Kernel IO subsystem - How it works and how can I s...Kernel Recipes 2015: Linux Kernel IO subsystem - How it works and how can I s...
Kernel Recipes 2015: Linux Kernel IO subsystem - How it works and how can I s...
 
Process scheduling (CPU Scheduling)
Process scheduling (CPU Scheduling)Process scheduling (CPU Scheduling)
Process scheduling (CPU Scheduling)
 
Linux booting Process
Linux booting ProcessLinux booting Process
Linux booting Process
 
Embedded Linux Kernel - Build your custom kernel
Embedded Linux Kernel - Build your custom kernelEmbedded Linux Kernel - Build your custom kernel
Embedded Linux Kernel - Build your custom kernel
 
Linux Internals - Interview essentials - 1.0
Linux Internals - Interview essentials - 1.0Linux Internals - Interview essentials - 1.0
Linux Internals - Interview essentials - 1.0
 
Linux Internals - Part I
Linux Internals - Part ILinux Internals - Part I
Linux Internals - Part I
 
The linux networking architecture
The linux networking architectureThe linux networking architecture
The linux networking architecture
 
Process' Virtual Address Space in GNU/Linux
Process' Virtual Address Space in GNU/LinuxProcess' Virtual Address Space in GNU/Linux
Process' Virtual Address Space in GNU/Linux
 
U-Boot - An universal bootloader
U-Boot - An universal bootloader U-Boot - An universal bootloader
U-Boot - An universal bootloader
 

Viewers also liked

Sim,raka hikmah ramadhan,hapzi ali,pengambilan keputusan,universitas mercu bu...
Sim,raka hikmah ramadhan,hapzi ali,pengambilan keputusan,universitas mercu bu...Sim,raka hikmah ramadhan,hapzi ali,pengambilan keputusan,universitas mercu bu...
Sim,raka hikmah ramadhan,hapzi ali,pengambilan keputusan,universitas mercu bu...Universitas MercuBuana
 
Simpeg user-guide-v.1.1
Simpeg user-guide-v.1.1Simpeg user-guide-v.1.1
Simpeg user-guide-v.1.1Aywan Nazhan
 
GeoComputation Conference - Dallas (2015)
GeoComputation Conference - Dallas (2015)GeoComputation Conference - Dallas (2015)
GeoComputation Conference - Dallas (2015)Irene Garcia-Marti
 
4º básico ensayo simce lenguaje
4º básico  ensayo simce lenguaje4º básico  ensayo simce lenguaje
4º básico ensayo simce lenguajeMilena Alarcón
 
ISG: TechChange Presentation on M&E MIS Systems
ISG: TechChange Presentation on M&E MIS SystemsISG: TechChange Presentation on M&E MIS Systems
ISG: TechChange Presentation on M&E MIS SystemsMichael Klein
 
Calendario movil
Calendario movilCalendario movil
Calendario movilHIKOO
 
ГАРААНЫ БИЗНЕС, ТҮҮНТЭЙ ХОЛБОГДОХ НЭР ТОМЪЁОНЫ ТАЙЛБАР ТОЛЬ
ГАРААНЫ БИЗНЕС, ТҮҮНТЭЙ ХОЛБОГДОХ НЭР ТОМЪЁОНЫ ТАЙЛБАР ТОЛЬ ГАРААНЫ БИЗНЕС, ТҮҮНТЭЙ ХОЛБОГДОХ НЭР ТОМЪЁОНЫ ТАЙЛБАР ТОЛЬ
ГАРААНЫ БИЗНЕС, ТҮҮНТЭЙ ХОЛБОГДОХ НЭР ТОМЪЁОНЫ ТАЙЛБАР ТОЛЬ ERKHEMSAIKHAN Altangerel
 
Understanding Geochaching Practices and Motivations
Understanding Geochaching Practices and MotivationsUnderstanding Geochaching Practices and Motivations
Understanding Geochaching Practices and MotivationsYoojung Kim
 
Вищі органи влади в Україні
Вищі органи влади в УкраїніВищі органи влади в Україні
Вищі органи влади в Україніradaprogram
 
Fashion spread outfit 3
Fashion spread outfit 3Fashion spread outfit 3
Fashion spread outfit 3bc05093848
 
Cuadro explicativo de lpoder electoral
Cuadro explicativo de lpoder electoralCuadro explicativo de lpoder electoral
Cuadro explicativo de lpoder electoralyasmin castillo
 
미디어 이용의 시공간적 매핑: 크로노토프 접근과 그 적용
미디어 이용의 시공간적  매핑: 크로노토프 접근과 그 적용미디어 이용의 시공간적  매핑: 크로노토프 접근과 그 적용
미디어 이용의 시공간적 매핑: 크로노토프 접근과 그 적용Yoojung Kim
 
Nasal polyposis
Nasal polyposisNasal polyposis
Nasal polyposisAnkit Sahu
 
Introduction to boilers
Introduction to boilersIntroduction to boilers
Introduction to boilersJinshah B.S
 

Viewers also liked (20)

Sim,raka hikmah ramadhan,hapzi ali,pengambilan keputusan,universitas mercu bu...
Sim,raka hikmah ramadhan,hapzi ali,pengambilan keputusan,universitas mercu bu...Sim,raka hikmah ramadhan,hapzi ali,pengambilan keputusan,universitas mercu bu...
Sim,raka hikmah ramadhan,hapzi ali,pengambilan keputusan,universitas mercu bu...
 
Estadistica
EstadisticaEstadistica
Estadistica
 
Simpeg user-guide-v.1.1
Simpeg user-guide-v.1.1Simpeg user-guide-v.1.1
Simpeg user-guide-v.1.1
 
GeoComputation Conference - Dallas (2015)
GeoComputation Conference - Dallas (2015)GeoComputation Conference - Dallas (2015)
GeoComputation Conference - Dallas (2015)
 
Escrito de artes visuales
Escrito de artes visualesEscrito de artes visuales
Escrito de artes visuales
 
Formulas excel
Formulas excelFormulas excel
Formulas excel
 
Presentación
PresentaciónPresentación
Presentación
 
4º básico ensayo simce lenguaje
4º básico  ensayo simce lenguaje4º básico  ensayo simce lenguaje
4º básico ensayo simce lenguaje
 
ISG: TechChange Presentation on M&E MIS Systems
ISG: TechChange Presentation on M&E MIS SystemsISG: TechChange Presentation on M&E MIS Systems
ISG: TechChange Presentation on M&E MIS Systems
 
Calendario movil
Calendario movilCalendario movil
Calendario movil
 
ГАРААНЫ БИЗНЕС, ТҮҮНТЭЙ ХОЛБОГДОХ НЭР ТОМЪЁОНЫ ТАЙЛБАР ТОЛЬ
ГАРААНЫ БИЗНЕС, ТҮҮНТЭЙ ХОЛБОГДОХ НЭР ТОМЪЁОНЫ ТАЙЛБАР ТОЛЬ ГАРААНЫ БИЗНЕС, ТҮҮНТЭЙ ХОЛБОГДОХ НЭР ТОМЪЁОНЫ ТАЙЛБАР ТОЛЬ
ГАРААНЫ БИЗНЕС, ТҮҮНТЭЙ ХОЛБОГДОХ НЭР ТОМЪЁОНЫ ТАЙЛБАР ТОЛЬ
 
Understanding Geochaching Practices and Motivations
Understanding Geochaching Practices and MotivationsUnderstanding Geochaching Practices and Motivations
Understanding Geochaching Practices and Motivations
 
Вищі органи влади в Україні
Вищі органи влади в УкраїніВищі органи влади в Україні
Вищі органи влади в Україні
 
Fashion spread outfit 3
Fashion spread outfit 3Fashion spread outfit 3
Fashion spread outfit 3
 
Copacetic Diabetic
Copacetic DiabeticCopacetic Diabetic
Copacetic Diabetic
 
Cuadro explicativo de lpoder electoral
Cuadro explicativo de lpoder electoralCuadro explicativo de lpoder electoral
Cuadro explicativo de lpoder electoral
 
미디어 이용의 시공간적 매핑: 크로노토프 접근과 그 적용
미디어 이용의 시공간적  매핑: 크로노토프 접근과 그 적용미디어 이용의 시공간적  매핑: 크로노토프 접근과 그 적용
미디어 이용의 시공간적 매핑: 크로노토프 접근과 그 적용
 
Nasal polyposis
Nasal polyposisNasal polyposis
Nasal polyposis
 
Introduction to boilers
Introduction to boilersIntroduction to boilers
Introduction to boilers
 
Maquinas eletricas
Maquinas eletricasMaquinas eletricas
Maquinas eletricas
 

Similar to Using strace

System Calls.pptxnsjsnssbhsbbebdbdbshshsbshsbbs
System Calls.pptxnsjsnssbhsbbebdbdbshshsbshsbbsSystem Calls.pptxnsjsnssbhsbbebdbdbshshsbshsbbs
System Calls.pptxnsjsnssbhsbbebdbdbshshsbshsbbsashukiller7
 
OPERATING SYSTEM SERVICES, OPERATING SYSTEM STRUCTURES
OPERATING SYSTEM SERVICES, OPERATING SYSTEM STRUCTURESOPERATING SYSTEM SERVICES, OPERATING SYSTEM STRUCTURES
OPERATING SYSTEM SERVICES, OPERATING SYSTEM STRUCTURESpriyasoundar
 
202110 SESUG 49 UNIX X Command Tips and Tricks
202110 SESUG 49 UNIX X Command Tips and Tricks202110 SESUG 49 UNIX X Command Tips and Tricks
202110 SESUG 49 UNIX X Command Tips and Tricksdhorvath
 
Laboratory exercise - Network security - Penetration testing
Laboratory exercise - Network security - Penetration testingLaboratory exercise - Network security - Penetration testing
Laboratory exercise - Network security - Penetration testingseastorm44
 
What Have Syscalls Done for you Lately?
What Have Syscalls Done for you Lately?What Have Syscalls Done for you Lately?
What Have Syscalls Done for you Lately?Docker, Inc.
 
(SAS) UNIX X Command Tips and Tricks
(SAS) UNIX X Command Tips and Tricks(SAS) UNIX X Command Tips and Tricks
(SAS) UNIX X Command Tips and TricksDavid Horvath
 
Process management in linux
Process management in linuxProcess management in linux
Process management in linuxMazenetsolution
 
It802 bruning
It802 bruningIt802 bruning
It802 bruningmrbruning
 
202202 SUGUKI UNIX X Command Tips and Tricks
202202 SUGUKI UNIX X Command Tips and Tricks202202 SUGUKI UNIX X Command Tips and Tricks
202202 SUGUKI UNIX X Command Tips and Tricksdhorvath
 
Introduction to Unix
Introduction to UnixIntroduction to Unix
Introduction to UnixSudharsan S
 
Open Source Systems Performance
Open Source Systems PerformanceOpen Source Systems Performance
Open Source Systems PerformanceBrendan Gregg
 
Monitoring MySQL with DTrace/SystemTap
Monitoring MySQL with DTrace/SystemTapMonitoring MySQL with DTrace/SystemTap
Monitoring MySQL with DTrace/SystemTapPadraig O'Sullivan
 
Servers and Processes: Behavior and Analysis
Servers and Processes: Behavior and AnalysisServers and Processes: Behavior and Analysis
Servers and Processes: Behavior and Analysisdreamwidth
 
Basics of Linux Commands, Git and Github
Basics of Linux Commands, Git and GithubBasics of Linux Commands, Git and Github
Basics of Linux Commands, Git and GithubDevang Garach
 
Essential Linux Commands for DBAs
Essential Linux Commands for DBAsEssential Linux Commands for DBAs
Essential Linux Commands for DBAsGokhan Atil
 
CLUG 2010 09 - systemd - the new init system
CLUG 2010 09 - systemd - the new init systemCLUG 2010 09 - systemd - the new init system
CLUG 2010 09 - systemd - the new init systemPaulWay
 

Similar to Using strace (20)

System Calls.pptxnsjsnssbhsbbebdbdbshshsbshsbbs
System Calls.pptxnsjsnssbhsbbebdbdbshshsbshsbbsSystem Calls.pptxnsjsnssbhsbbebdbdbshshsbshsbbs
System Calls.pptxnsjsnssbhsbbebdbdbshshsbshsbbs
 
OPERATING SYSTEM SERVICES, OPERATING SYSTEM STRUCTURES
OPERATING SYSTEM SERVICES, OPERATING SYSTEM STRUCTURESOPERATING SYSTEM SERVICES, OPERATING SYSTEM STRUCTURES
OPERATING SYSTEM SERVICES, OPERATING SYSTEM STRUCTURES
 
202110 SESUG 49 UNIX X Command Tips and Tricks
202110 SESUG 49 UNIX X Command Tips and Tricks202110 SESUG 49 UNIX X Command Tips and Tricks
202110 SESUG 49 UNIX X Command Tips and Tricks
 
Laboratory exercise - Network security - Penetration testing
Laboratory exercise - Network security - Penetration testingLaboratory exercise - Network security - Penetration testing
Laboratory exercise - Network security - Penetration testing
 
Penetration Testing Boot CAMP
Penetration Testing Boot CAMPPenetration Testing Boot CAMP
Penetration Testing Boot CAMP
 
Linux
LinuxLinux
Linux
 
Systemcall1
Systemcall1Systemcall1
Systemcall1
 
What Have Syscalls Done for you Lately?
What Have Syscalls Done for you Lately?What Have Syscalls Done for you Lately?
What Have Syscalls Done for you Lately?
 
(SAS) UNIX X Command Tips and Tricks
(SAS) UNIX X Command Tips and Tricks(SAS) UNIX X Command Tips and Tricks
(SAS) UNIX X Command Tips and Tricks
 
Process management in linux
Process management in linuxProcess management in linux
Process management in linux
 
It802 bruning
It802 bruningIt802 bruning
It802 bruning
 
202202 SUGUKI UNIX X Command Tips and Tricks
202202 SUGUKI UNIX X Command Tips and Tricks202202 SUGUKI UNIX X Command Tips and Tricks
202202 SUGUKI UNIX X Command Tips and Tricks
 
Introduction to Unix
Introduction to UnixIntroduction to Unix
Introduction to Unix
 
Open Source Systems Performance
Open Source Systems PerformanceOpen Source Systems Performance
Open Source Systems Performance
 
Monitoring MySQL with DTrace/SystemTap
Monitoring MySQL with DTrace/SystemTapMonitoring MySQL with DTrace/SystemTap
Monitoring MySQL with DTrace/SystemTap
 
Servers and Processes: Behavior and Analysis
Servers and Processes: Behavior and AnalysisServers and Processes: Behavior and Analysis
Servers and Processes: Behavior and Analysis
 
x86
x86x86
x86
 
Basics of Linux Commands, Git and Github
Basics of Linux Commands, Git and GithubBasics of Linux Commands, Git and Github
Basics of Linux Commands, Git and Github
 
Essential Linux Commands for DBAs
Essential Linux Commands for DBAsEssential Linux Commands for DBAs
Essential Linux Commands for DBAs
 
CLUG 2010 09 - systemd - the new init system
CLUG 2010 09 - systemd - the new init systemCLUG 2010 09 - systemd - the new init system
CLUG 2010 09 - systemd - the new init system
 

Recently uploaded

08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 

Recently uploaded (20)

08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 

Using strace

  • 1. Using Strace Tracking System Calls and Signals
  • 2. What is Strace? • A system program that traces system calls and signals of any script or program • Allows the customization of output to focus on the area you need to examine • Quickly see a permissions issue • Find files that are opened and closed • Helps to troubleshoot problems
  • 3. How to use Strace? • Installation done by running /scripts/ensurerpm strace or yum install strace • Run the command “strace” with several options. Here are a few examples: strace -fvs 4096 $(SCRIPT) f = follow forks v = verbose output s = output line size (the size 4096 give this many characters)
  • 4. How to use Strace? • Additional options • Example of using all useful options This command will show all system calls and signals of cPanel, WHM or Webmail UI actions -o = output goes to this file -p = process PID to strace strace -fvs 4096 -o /root/cpservd.strace -p `cat /var/run/cpsrvd.pid`
  • 5. How to use Strace? • Advanced Use: • Calls that can be traced: strace -e trace=file will trace only file accesses strace -e trace=network will trace only network activity strace -e trace=open will trace only open system calls strace -e trace=!open will trace all system calls except open strace -e trace=open,close,read,write strace -e trace=process strace -e trace=signal
  • 6. How to read Strace output? • Strace shows System Calls: • Strace shows the Signals received (but not where they came from): read write open close stat fork connect getuid getgid setuid setgid execve chmod chown SIGINT (ex. ctrl-c) SIGKILL (kill -9) ENOENT (file or directory not found) EPERM (permission error) (chmod) ENOPERM (permission error (chown) EACCESS if -1 (permission denied) SIGSEGV (Segmentation fault)
  • 7. How to read output? • Once you get the strace output, just view the output file. 1. Start with the error message. Search through the log file for the error messages displayed: Example: 32116 write(1, “There was a problem creating the”, 32)=32 2. Then start scrolling up for the last action resulting in an error before the error was written to stdout: Example: 32116 open("/home/scooby/etc/snoopy.com/passwd", O_WRONLY|O_CREAT|O_APPEND| O_LARGEFILE, 0666) = -1 EACCES (Permission denied)
  • 8. Strace will not show: • Any program logic • Computation • Strace is not a debugger