From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 20015 invoked from network); 22 May 1998 11:08:04 -0000 Received: from rachael.franken.de (193.175.24.38) by mail2.redhat.com with SMTP; 22 May 1998 11:08:04 -0000 Received: from hub-fue by rachael.franken.de via rmail with uucp id for redhat.com!axp-list; Fri, 22 May 1998 12:50:04 +0200 (MET DST) (Smail-3.2 1996-Jul-4 #4 built DST-Sep-8) Received: by hub-fue.franken.de (Smail3.1.29.1 #35) id m0ycpg5-002P8MC; Fri, 22 May 98 13:07 MET DST Received: (from tsbogend@localhost) by alpha.franken.de (8.8.7/8.8.5) id MAA00837; Fri, 22 May 1998 12:52:35 +0200 Message-ID: <19980522125235.09379@alpha.franken.de> Date: Fri, 22 May 1998 12:52:35 +0200 From: Thomas Bogendoerfer To: torvalds@transmeta.com Cc: linux-alpha@vger.rutgers.edu, axp-list@redhat.com Subject: core dumps on Linux/Alpha Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.85 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>]