Linux ceased to generate core dumps on the Alpha after I've set
"ulimit -c unlimited".
elf_core_dump() had a variable "limit" (an int) which was initialized
with the current rlimit value (a long), getting -1 in case
of "unlimited".
Fix is easy:
----------------
--- fs/binfmt_elf.c.org Sun Apr 26 07:51:31 1998
+++ fs/binfmt_elf.c Wed May 27 23:23:08 1998
@@ -1054,7 +1054,7 @@
struct vm_area_struct *vma;
struct elfhdr elf;
off_t offset = 0, dataoff;
- int limit = current->rlim[RLIMIT_CORE].rlim_cur;
+ long limit = current->rlim[RLIMIT_CORE].rlim_cur;
int numnote = 4;
struct memelfnote notes[4];
struct elf_prstatus prstatus; /* NT_PRSTATUS */
----------------
regards,
chris
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu