version 1.145, 2019/02/03 14:40:33
|
version 1.154, 2025/04/15 10:17:51
|
Line 1
|
Line 1
|
/* |
/* |
================================================================================ |
================================================================================ |
RPL/2 (R) version 4.1.31 |
RPL/2 (R) version 4.1.36 |
Copyright (C) 1989-2019 Dr. BERTRAND Joël |
Copyright (C) 1989-2025 Dr. BERTRAND Joël |
|
|
This file is part of RPL/2. |
This file is part of RPL/2. |
|
|
Line 3966 debug_memoire_ajout(size_t taille, const
|
Line 3966 debug_memoire_ajout(size_t taille, const
|
sizeof(unsigned char))) == NULL) |
sizeof(unsigned char))) == NULL) |
{ |
{ |
pthread_mutex_unlock(&mutex_allocation); |
pthread_mutex_unlock(&mutex_allocation); |
|
|
|
uprintf("[%d-%llu] ILLEGAL POINTER (malloc) $%016X\n", |
|
getpid(), (unsigned long long) pthread_self(), NULL); |
|
# ifdef __BACKTRACE |
|
BACKTRACE(PROFONDEUR_PILE); |
|
# endif |
|
|
return(NULL); |
return(NULL); |
} |
} |
|
|
Line 4026 debug_memoire_modification(void *pointeu
|
Line 4033 debug_memoire_modification(void *pointeu
|
{ |
{ |
pthread_mutex_unlock(&mutex_allocation); |
pthread_mutex_unlock(&mutex_allocation); |
|
|
uprintf("[%d-%llu] ILLEGAL POINTER (realloc)\n", |
uprintf("[%d-%llu] ILLEGAL POINTER (realloc) $%016X\n", |
getpid(), (unsigned long long) pthread_self()); |
getpid(), (unsigned long long) pthread_self(), |
|
pointeur); |
# ifdef __BACKTRACE |
# ifdef __BACKTRACE |
BACKTRACE(PROFONDEUR_PILE); |
BACKTRACE(PROFONDEUR_PILE); |
# endif |
# endif |
Line 4123 debug_memoire_retrait(void *pointeur)
|
Line 4131 debug_memoire_retrait(void *pointeur)
|
|
|
if (element_courant == NULL) |
if (element_courant == NULL) |
{ |
{ |
uprintf("[%d-%llu] ILLEGAL POINTER (free)\n", |
uprintf("[%d-%llu] ILLEGAL POINTER (free) $%016X\n", |
getpid(), (unsigned long long) pthread_self()); |
getpid(), (unsigned long long) pthread_self(), pointeur); |
# ifdef __BACKTRACE |
# ifdef __BACKTRACE |
BACKTRACE(PROFONDEUR_PILE); |
BACKTRACE(PROFONDEUR_PILE); |
# endif |
# endif |
Line 4241 debug_memoire_verification()
|
Line 4249 debug_memoire_verification()
|
} |
} |
|
|
pid_t |
pid_t |
debug_fork() |
debug_fork(struct_processus *s_etat_processus) |
{ |
{ |
pid_t pid; |
pid_t pid; |
|
|