vscode debugging container (for rocksdb debugging) + vscode compares different branches of the git project and which branch of the fork

vscode debugging container (for rocksdb debugging) Reference links: https://blog.csdn.net/qq_29809823/article/details/128445308#t5 https://blog.csdn.net/qq_29809823/article/details/121978762#t7 Use the plug-in dev containers in vscode->click the remote resource manager on the left to open the container running rocksdb and configure the following files #Command line compilation by debugging cpp into an executable file, and debugging by setting launch.json and f5 root@62db0822831f:/# find . […]

Linux system programming_process: C program space allocation, (v)fork, wait, exec, system, popen

1. Process related concepts (414.1) Question 1. What is a program, what is a process, and what is the difference? Program is a static concept, gcc xxx.c –o pro, the pro file is generated on the disk, which is called a program A process is a running activity of a program. In simple terms, when […]

Process termination, process waiting and fork(), wait(), waitpid()

Article directory 1. Process termination (1) Situation of process termination (2) How to terminate the process 2. Process waiting (1) Concept (2) Necessity (3) wait()–system call (4) waitpid()–system call (5) Get child process status 3. fork() function 1. Process termination (1) Process termination situation The code is run and the result is correct The code […]

Solving ForkingPickler(file, protocol).dump(obj) TypeError: cant pickle Environment objects

Table of Contents Solving ForkingPickler(file, protocol).dump(obj) TypeError: cant pickle Environment objects Error background Solution Summarize Solve ForkingPickler(file, protocol).dump(obj) TypeError: cant pickle Environment objects In Python parallel programming, if you need to transfer objects between multiple processes, you often use the pickle module to serialize and deserialize objects. However, sometimes when using pickle for serialization, you […]

Regarding the problem of printf in fork multi-process

About the problem of printf in fork multi-process Program 1 int main(int argc, char **argv) {<!– –> int remaining = 4; int child_pid; while (remaining > 0) {<!– –> child_pid = fork(); if (child_pid == 0) break; remaining–; } printf(“P”); return 0; } The above program will output: PPPPP (5 P) Program execution process: remain=4, […]

Use frida to spawn the child process of Fork

Index need test program Parent process code child process code x64dbg Plug-in function Start debugging frida Operating environment Files and code used Requirements Recently, I was learning basic Windows reverse engineering knowledge and encountered a small problem. How should a process created using CreateProcessW be attached at startup? I want to debug the function that […]

Fork() function: interaction between “parent” and “child” processes (creation of process)

Reading Navigation Preface 1. First introduction to fork function 1. Basic concepts 2. fork function return value 2. Copy-on-write of fork function 3. Summary Kind tips Foreword Earlier we talked about the basic knowledge of C language, also learned about some data structures, and talked about some knowledge about C++. We also learned some basic […]