분류 전체보기 (212) 썸네일형 리스트형 64bit Stack Walking 64bit 프로그램에서 대부분의 함수들은 대개 Stack에 RBP Register의 값을 Push 하지 않습니다. 이는 Compile 시에 -fomit-frame-pointer flag 때문에 발생합니다. 이런 경우, 32bit 프로그램에 비해서 Call Stack을 수동으로 쫓아가는 것이 쉽지는 않습니다. 64bit 프로그램에서 Return Address를 확인하기 위해 Stack에 있는 Data와 Instruction Pointer를 이용할 수 있습니다. 다음과 같은 Call Stack 예제를 통해서 하나씩 확인해보겠습니다. ## 아래 Call Stack의 9번 Frame 부터 보면, Symbol 이 없기 때문에 정상적으로 함수명이 표현되지 않는 것을 알 수 있습니다. (gdb) bt ... #7 0.. How to create local YUM Repository ## CentOS 7 기준 ## VMware 환경에서 VM에 CentOS ISO 파일을 CDROM으로 Mount 한 환경에서 테스트 인터넷이 안되는 환경에서 RPM Package를 설치하려고 할 때 Dependency 문제로 설치가 어려운 경우, Local Repository를 구성하여, YUM 명령어로 Package를 설치할 수 있도록 구성할 수 있습니다. ## Prerequisites CentOS Full ISO 파일이 필요 1. 우선 OS에서 CDROM을 Mount 합니다. [root@localhost /]# mkdir /mnt/cdrom [root@localhost /]# mount /dev/cdrom /mnt/cdrom [root@localhost /]# cd /mnt/cdrom [root@lo.. ELF Format #3 - Section Header 3. Section header ELF file에는 여러 Section이 위치하고, 각 Section 관련 정보는 Section header에 보관됩니다. 또한, 각 Section은 고유의 이름을 가질 수 있고 주요 Section으로는 .text와 .data를 들 수 있습니다. .text section은 프로그램의 instruction을 보관하고 있고, .data section은 프로그램 시작 전 초기화되는 값들을 보관하고 있습니다. 아래는 실행 파일과 오브젝트 파일의 Section header 정보 예제입니다. 예제1) 실행 파일 hwjung@jhaewon-z01:~$ readelf -S helloworld There are 31 section headers, starting at offset 0x39.. ELF Format #2 - Program Header 2. Program header Program header는 ELF header 바로 다음에 위치한 Program header table에 있습니다. 각 Program header는 관련된 Section 정보를 가지고 있습니다. 프로그램을 시작할 때, OS Loader는 Program header에 있는 정보를 기반으로 Segment들을 Virtual Address Space에 위치시킵니다. Segment는 Read Only, Read/Write, Executable 속성으로 분리됩니다. hwjung@jhaewon-z01:~$ readelf -l helloworld Elf file type is DYN (Shared object file) Entry point 0x1060 There are 13 prog.. VMTools version 확인 및 Download VMTools Version 확인 사이트 https://packages.vmware.com/tools/versions VMTools 수동 Download 사이트 https://packages.vmware.com/tools/ [Automation] How to unregister the specific resource from the deployment #prerequisites 아래 문서를 통해 vRealize Automation API Server에 Login을 했다는 가정하에 진행합니다. How to login vRealize Automation API Server (tistory.com) How to login vRealize Automation API Server # Prerequisites 먼저, vRealize Automation에 연결 가능한 PC 또는 서버에 Postman을 설치해야 합니다. https://www.postman.com/downloads/ Download Postman | Get Started for Free Try Postman for free! Joi.. haewon83.tistory.com #Environment vR.. Corrupted vfat filesystem scratch partition의 filesystem이 손상되어 hostd log를 기록하지 못한 케이스에 대해서 다뤄봅니다. ## ESXi 6.5 + vSAN 로그 분석을 위해 Support Bundle을 수집했으나, 로그가 정상적으로 수집이 되지 않는 환경이 있었으며 특히 hostd.log의 경우에는 특정 시점 이후로 대부분이 Special Character로 꽉 채워져 있는 현상이 있었습니다. 2022-08-19T10:53:26Z iofiltervpd[69914]: IOFVPXMLExtensions_GetXMLDataFile:125:xmlDataFile queried: /usr/lib/vmware/iofilter/server/vasaServiceSoap12Binding.queryCapabilityP.. ELF Format #1 - ELF Header ELF Format(Executable and Linkable Format)은 각 영역(TEXT, DATA, BSS등)을 정의하여 프로그램이 실행 시에 이 영역들을 메모리에 올리기 위해 사용됩니다. ELF Format의 File은 여러 segments와 sections로 구성되며, 단일 segment는 여러 section으로 구성될 수 있습니다. ELF Format에는 ELF header, Program header, Section header가 존재하며 이를 통해 각 영역들을 확인할 수 있습니다. 아래에서는 위에서 언급한 각 header에 대해서 보다 상세하게 알아보도록 하겠습니다. 1. ELF header ELF Format File의 맨 처음에 위치하며, Program header와 Section .. [Automation] How to login vRealize Automation API Server # Prerequisites 먼저, vRealize Automation에 연결 가능한 PC 또는 서버에 Postman을 설치해야 합니다. https://www.postman.com/downloads/ Download Postman | Get Started for Free Try Postman for free! Join 20 million developers who rely on Postman, the collaboration platform for API development. Create better APIs—faster. www.postman.com 1. 먼저 Refresh Token을 획득합니다. URL : https:///csp/gateway/am/api/login?access_token Meth.. How to set up WSLv2 1. Microsoft Store에서 Windows Terminal 설치 2. 필요한 feature 설치 Terminal을 관리자 권한으로 실행하고, DISM으로 필요한 feature 설치 dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart 3. Linux Kernel Update 아래 경로에서 업데이트 패키지 다운로드 후 설치 https://wslstorestorage.blob.core.windows.net/wslblob/wsl_upd.. 이전 1 ··· 16 17 18 19 20 21 22 다음