Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* core dumps on Linux/Alpha
@ 1998-05-22 10:52 Thomas Bogendoerfer
  1998-05-24 19:09 ` Christoph Zens
  0 siblings, 1 reply; 2+ messages in thread
From: Thomas Bogendoerfer @ 1998-05-22 10:52 UTC (permalink / raw)
  To: torvalds; +Cc: linux-alpha, axp-list

Hi,

after getting 2.1.102 stable on my machine, I found another problem.
While ulimit -c unlimited worked well for 2.1.33, it doesn't generate
a core dump with 2.1.102. Below is a patch which fixes it for me. More
strange is the fact, that 2.1.102 doesn't create core dumps for processes
started by root. I guess this it due to the capabilty changes, but
is the default to not generate core dumps for root (even with ulimit -c)
the right default ? Or is this another Alpha only problem ?

Thomas.

Index: binfmt_elf.c
===================================================================
RCS file: /usr/src/cvs/linux/fs/binfmt_elf.c,v
retrieving revision 1.1.1.36
diff -u -r1.1.1.36 binfmt_elf.c
--- binfmt_elf.c	1998/05/11 19:42:10	1.1.1.36
+++ binfmt_elf.c	1998/05/22 08:33:28
@@ -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 */

-- 
See, you not only have to be a good coder to create a system like Linux,
you have to be a sneaky bastard too ;-)
                   [Linus Torvalds in <4rikft$7g5@linux.cs.Helsinki.FI>]


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1998-05-24 19:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-05-22 10:52 core dumps on Linux/Alpha Thomas Bogendoerfer
1998-05-24 19:09 ` Christoph Zens

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox