no core dump on Alpha 2.1.103 (patch)

Christian Groessler (cpg@aladdin.de)
Wed, 27 May 1998 23:58:30 +0100


Hello Linus,

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