* 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* Re: core dumps on Linux/Alpha
1998-05-22 10:52 core dumps on Linux/Alpha Thomas Bogendoerfer
@ 1998-05-24 19:09 ` Christoph Zens
0 siblings, 0 replies; 2+ messages in thread
From: Christoph Zens @ 1998-05-24 19:09 UTC (permalink / raw)
To: axp-list; +Cc: torvalds, linux-alpha
> after getting 2.1.102 stable on my machine, I found another problem.
I experienced random "hangs" with an original 2.1.102...
But I have to say, that I compiled it with gcc-2.7.2.1 which is not
the recommended thing to do. The overall performance seemed to be
much better with kernels 2.1.x than with 2.0.32 though.
Just an impression.
--
_
_ //
\X/ Christoph Zens <e9126506@student.tuwien.ac.at>
^ 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