Added a FAQ about multithreaded core dumps on linux and the kernel patch.

This commit is contained in:
Brian Wellington
2000-12-11 18:55:49 +00:00
parent dea478db31
commit b48ada653e
2 changed files with 19 additions and 0 deletions

7
FAQ
View File

@@ -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.

View 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(&current->mm->count) != 1)
+/* atomic_read(&current->mm->count) != 1) */
+ test_and_set_bit(31, &current->mm->def_flags) != 0)
return 0;
current->dumpable = 0;