[exim-dev] [Bug 2904] "bad memory reference" errors in panic…

Página Inicial
Delete this message
Reply to this message
Autor: admin
Data:  
Para: exim-dev
Assunto: [exim-dev] [Bug 2904] "bad memory reference" errors in paniclog
https://bugs.exim.org/show_bug.cgi?id=2904

Git Commit <git@???> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |git@???


--- Comment #1 from Git Commit <git@???> ---
Git commit:
https://git.exim.org/exim.git/commitdiff/766af058762b2c4e21b69f335adf77265fe9509a

commit 766af058762b2c4e21b69f335adf77265fe9509a
Author:     Jeremy Harris <jgh146exb@???>
AuthorDate: Sat Aug 13 20:58:29 2022 +0100
Commit:     Jeremy Harris <jgh146exb@???>
CommitDate: Sun Aug 14 13:52:56 2022 +0100


    Dump stack for "bad memory reference".  Bug 2904
---
 src/src/exim.c      | 2 +-
 src/src/functions.h | 1 +
 src/src/store.c     | 3 +++
 3 files changed, 5 insertions(+), 1 deletion(-)


diff --git a/src/src/exim.c b/src/src/exim.c
index 23e206d..ea4286a 100644
--- a/src/src/exim.c
+++ b/src/src/exim.c
@@ -232,7 +232,7 @@ exit(1);
***********************************************/

 #define STACKDUMP_MAX 24
-static void
+void
 stackdump(void)
 {
 #ifndef NO_EXECINFO
diff --git a/src/src/functions.h b/src/src/functions.h
index e718234..92a4831 100644
--- a/src/src/functions.h
+++ b/src/src/functions.h
@@ -547,6 +547,7 @@ extern int     stdin_ferror(void);
 extern BOOL    stdin_hasc(void);
 extern int     stdin_ungetc(int);


+extern void    stackdump(void);
 extern void    store_exit(void);
 extern void    store_init(void);
 extern void    store_writeprotect(int);
diff --git a/src/src/store.c b/src/src/store.c
index c98fcbf..d99d2ab 100644
--- a/src/src/store.c
+++ b/src/src/store.c
@@ -274,6 +274,9 @@ for (pp = paired_pools; pp < paired_pools + N_PAIRED_POOLS;
pp++)
   for (b = pp->chainbase; b; b = b->next)
     if (is_pointer_in_block(b, p)) return pp;


+#ifndef COMPILE_UTILITY
+stackdump();
+#endif
log_write(0, LOG_MAIN|LOG_PANIC_DIE,
"bad memory reference; pool not found, at %s %d", func, linenumber);
return NULL;

--
You are receiving this mail because:
You are on the CC list for the bug.