Strace-Ausgabe zeigt Malloc und Free-Systemaufruf in einer Multithread-Anwendung nicht anLinux

Linux verstehen
Guest
 Strace-Ausgabe zeigt Malloc und Free-Systemaufruf in einer Multithread-Anwendung nicht an

Post by Guest »

Ich versuche mit dem folgenden Code ein Speicherverlustproblem zu simulieren und dann die Systemaufrufe zu untersuchen, die zu einem Speicherverlust führen.

Code: Select all

include 
#include 
#include 
#include 
#include 

class SharedObject {
public:
std::string currentTime;

SharedObject() {
// Capture current time as string
auto now = std::chrono::system_clock::to_time_t(std::chrono::system_clock::now());
currentTime = std::ctime(&now); // Convert time to string
}

void displayTime() {
std::cout

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post
  • "Unterbrochener Systemaufruf" Fehler beim Töten von Kindernprozess
    by Anonymous » » in Linux
    0 Replies
    9 Views
    Last post by Anonymous
  • Malloc und Konstruktoren
    by Anonymous » » in C++
    0 Replies
    3 Views
    Last post by Anonymous
  • Std :: malloc () und das Leben des Objekts beginnen
    by Anonymous » » in C++
    0 Replies
    1 Views
    Last post by Anonymous
  • Hat SendMSG -Systemaufruf eine unterschiedliche Validierung für IPv6- und IPv4 -Routen oder Quelladresse
    by Anonymous » » in Linux
    0 Replies
    2 Views
    Last post by Anonymous
  • EF CORE DBCONTEXT in Multithread -Anwendung
    by Anonymous » » in C#
    0 Replies
    11 Views
    Last post by Anonymous