Subject: Bug: No more core files on -current ?
To: None <current-users@netbsd.org>
From: Ian Zagorskih <ianzag@megasignal.com>
List: current-users
Date: 03/13/2006 16:11:02
$ uname -a
NetBSD IANZAG 3.99.16 NetBSD 3.99.16 (GENERIC.MPACPI) #0: Wed Mar 8 02:32:49
NOVT 2006
toor@NBSD1:/usr/build/obj/i386/sys/arch/i386/compile/GENERIC.MPACPI i386
$ ulimit -a
time(cpu-seconds) unlimited
file(blocks) unlimited
coredump(blocks) unlimited
data(kbytes) 262144
stack(kbytes) 2048
lockedmem(kbytes) 339918
memory(kbytes) 1019756
nofiles(descriptors) 64
processes 160
sbsize(bytes) unlimited
$ cat foo.c
int
main()
{
int *ptr = (int *)0;
*ptr = 123;
return 0;
}
$ ./foo
Memory fault
$ ls -l
total 20
-rwxr-xr-x 1 ianzag users 5431 Mar 13 16:05 foo
-rw-r--r-- 1 ianzag wheel 63 Mar 13 16:05 foo.c
-rw------- 1 ianzag users 52 Mar 13 16:06 foo.core
I.e. core file is 52 bytes long and of course gdb does not eat it :-/
Is there some significant core size optimization was done in this realm in
comparison to 3.99.15?
// wbr