CISC 361 Operating Systems Midterm Review

Slides:



Advertisements
Similar presentations
C Tutorial Ross Shaull cs146a Why C Standard systems language – Historical reasons (OS have historically been written in C, so libraries written.
Advertisements

Recitation By yzhuang, sseshadr. Agenda Debugging practices – GDB – Valgrind – Strace Errors and Wrappers – System call return values and wrappers – Uninitialization.
Programming Languages and Paradigms The C Programming Language.
SPLINT STATIC CHECKING TOOL Sripriya Subramanian 10/29/2002.
DEBUGGING IN THE REAL WORLD : Recitation 4.
CSE 451: Operating Systems Section 1. Why are you here? 9/30/102.
CSE 303 Lecture 13a Debugging C programs
C and Data Structures Baojian Hua
Memory Layout C and Data Structures Baojian Hua
C Slides and captured lecture (video and sound) are available at:
Homework Reading –Finish K&R Chapter 1 (if not done yet) –Start K&R Chapter 2 for next time. Programming Assignments –DON’T USE and string library functions,
Debugger Presented by 李明璋 2012/05/08. The Definition of Bug –Part of the code which would result in an error, fault or malfunctioning of the program.
 Knowledge and use of tools and resources in a system: standard libraries, system calls, debuggers, the shell environment, system programs and scripting.
The Programming Interface. Main Points Creating and managing processes – fork, exec, wait Performing I/O – open, read, write, close Communicating between.
Programming Tools gcc make utility Open Source code Static and Shared Libraries gdb Memory debugging tools.
Goals: To gain an understanding of assembly To get your hands dirty in GDB.
C What you Know* Objective: To introduce some of the features of C. This assumes that you are familiar with C++ or java and concentrates on the features.
CS 241 Section Week #2 9/9/10. 2 Topics This Section MP1 issues MP2 overview Process creation using fork()‏ Debugging tools: valgrind, gdb.
1 Pointers to structs. 2 A pointer to a struct is used in the same way as a pointer to a simple type, such as an int. Pointers to structs were introduced.
Agenda Attack Lab C Exercises C Conventions C Debugging
1 SEEM3460 Tutorial Compiling and Debugging C programs.
C/C++ Basics. Basic Concepts Basic functions of each language: Input, output, math, decision, repetition Types of errors: Syntax errors, logic errors,
Chapter 5 Process API Chien-Chung Shen CIS, UD
Process Management Azzam Mourad COEN 346.
C LANGUAGE Characteristics of C · Small size
CSc 352 Debugging Tools Saumya Debray Dept. of Computer Science The University of Arizona, Tucson
17/02/2016S. Ponce / EP-LBC1 Debugging Under Linux Sebastien Ponce Friday, 8 March 2002.
C Programming Chapters 11, . . .
CSE 333 – SECTION 2 Memory Management. Questions, Comments, Concerns Do you have any? Exercises going ok? Lectures make sense? Homework 1 – START EARLY!
系統程式 System Programming 羅習五 國立中正大學資訊工程學系 Class: EA-001 (05) ext.
Using System Calls (Unix) Have to tell compiler (if C/C++) where to find the headers, etc. – i.e., the “include” files May have to tell compiler where.
Hank Childs, University of Oregon April 13 th, 2016 CIS 330: _ _ _ _ ______ _ _____ / / / /___ (_) __ ____ _____ ____/ / / ____/ _/_/ ____/__ __ / / /
Background Survey Answers Operating Systems CS 550 Spring 2016 Kenneth Chiu.
CSCI 4061 Recitation 2 1.
a.k.a how we test Your code
YongChul Kwon CSE451 Section 1: Spring 2006 YongChul Kwon
Winter 2009 Tutorial #6 Arrays Part 2, Structures, Debugger
Programming Languages and Paradigms
Chien-Chung Shen CIS, UD
CS 537 Section 1 Programming in Unix and C
Checking Memory Management
Programming Paradigms
Programming Languages and Paradigms
Recitation: C Review TA’s 19 Feb 2018.
ניפוי שגיאות - Debugging
Debuggers.
Lists, Strings & Multi-dimensional arrays
Chien-Chung Shen CIS/UD
C/C++ Basics.
C What you Know* Objective: To introduce some of the features of C. This assumes that you are familiar with C++ or java and concentrates on the features.
CSc 352 Debugging Tools Saumya Debray Dept. of Computer Science
CSE451 Fall 2008 Section 1 Roxana Geambasu
Simple Shell Due date: March 27, 2002.
Chien-Chung Shen CIS/UD
CAP6135: Malware and Software Vulnerability Analysis Buffer Overflow : Example of Using GDB to Check Stack Memory Cliff Zou Spring 2015.
CNT4704: Analysis of Computer Communication Network Buffer Overflow : Example of Using GDB to Check Stack Memory Cliff Zou Fall 2011.
Tutorial: The Programming Interface
Chien-Chung Shen CIS/UD
a.k.a how we test Your code
Homework Reading Programming Assignments Finish K&R Chapter 1
Chien-Chung Shen CIS/UD
Appendix F C Programming Environment on UNIX Systems
Chien-Chung Shen CIS, UD
Homework Continue with K&R Chapter 5 Skipping sections for now
C By Example The assumption is that you know Java and need to extend that knowledge so you can program in C. 1. Hello world 2. declarations 3. pass.
CAP6135: Malware and Software Vulnerability Analysis Buffer Overflow : Example of Using GDB to Check Stack Memory Cliff Zou Spring 2016.
Makefiles, GDB, Valgrind
CAP6135: Malware and Software Vulnerability Analysis Buffer Overflow : Example of Using GDB to Check Stack Memory Cliff Zou Spring 2013.
Hello World Program In Visual Studio and Debugging
Introduction to C CS 3410.
Presentation transcript:

CISC 361 Operating Systems Midterm Review Chien-Chung Shen cshen@udel.edu

March 20, Wednesday C pointer and struct malloc() and free() sizeof() malloc() and free() C string and associated library functions strcpy(), strcmp(), strlen() Gdb given only an executable file that had been compiled with –g flag, use gdb to run the executable, observe bug(s), view the source code, print values (addresses) of variables (pointers), and state how to fix bug(s) gdb commands of run, list, print, break, next, step, etc. Makefile Valgrind – definite and indirect leaks

Both Days Process creation (OSTEP Chapter 5) fork() wait() and waitpid() https://www.geeksforgeeks.org/fork-system-call/

March 22, Friday PATH environment variable Shell commands: which and where Unix pipe (Stevens & Rago’s Chapter 15.2) http://beej.us/guide/bgipc/html/multi/pipes.html