Added a FAQ about multithreaded core dumps on linux and the kernel patch.
This commit is contained in:
7
FAQ
7
FAQ
@@ -63,3 +63,10 @@ bar: ran out of space"
|
||||
|
||||
A: This is often caused by TXT records with missing close quotes. Check that
|
||||
all TXT records containing quoted strings have both open and close quotes.
|
||||
|
||||
|
||||
Q: How do I produce a useful core file on Linux?
|
||||
|
||||
A: Apply the kernel patch found in bind9/linux/coredump-patch and rebuild
|
||||
the kernel. This patch causes multithreaded programs to dump the correct
|
||||
thread.
|
||||
|
||||
12
contrib/linux/coredump-patch
Normal file
12
contrib/linux/coredump-patch
Normal file
@@ -0,0 +1,12 @@
|
||||
--- binfmt_elf.c.old Mon Dec 11 10:49:57 2000
|
||||
+++ binfmt_elf.c Wed Nov 1 13:05:23 2000
|
||||
@@ -1091,7 +1091,8 @@
|
||||
|
||||
if (!current->dumpable ||
|
||||
limit < ELF_EXEC_PAGESIZE ||
|
||||
- atomic_read(¤t->mm->count) != 1)
|
||||
+/* atomic_read(¤t->mm->count) != 1) */
|
||||
+ test_and_set_bit(31, ¤t->mm->def_flags) != 0)
|
||||
return 0;
|
||||
current->dumpable = 0;
|
||||
|
||||
Reference in New Issue
Block a user