Date: Tue, 2 Nov 1999 02:34:14 -0800 (PST) From: Higashi.Hiroyuki@ss.anritsu.co.jp To: freebsd-gnats-submit@freebsd.org Subject: kern/14660: limit coredumpsize 0, but dumps Zero Size Core File Message-ID: <19991102103414.13E6414FBC@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 14660 >Category: kern >Synopsis: limit coredumpsize 0, but dumps Zero Size Core File >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Nov 2 02:40:00 PST 1999 >Closed-Date: >Last-Modified: >Originator: HIGASHI Hiroyuki >Release: FreeBSD-3.3R i386 >Organization: ANRITSU CORPORATION >Environment: 3.3-RELEASE FreeBSD 3.3-RELEASE >Description: I set "limit coredumpsize 0". But kernel dumps "Zero Size Core File". >How-To-Repeat: Test Program source is below.(This file name is "foo.c".) ----- main(void) { int a; a = 1/0; } ----- Compile this source program. And execute it. ----- % limit coredumpsize 0 % cc foo.c % a.out Floating point exception % ls -l a.out* -rwxrwxr-x 1 higashi TR 3093 Nov 2 19:13 a.out -rw------- 1 higashi TR 0 Nov 2 19:13 a.out.core ----- Other version of FreeBSD DOSE NOT DUMP core file. >Fix: at kern_sig.c of coredump() before call "p->p_sysent->sv_coredump(p, vp, limit)" check "limit" size Ex. ----- 1393 error = (limit & p->p_sysent->sv_coredump) ? 1394 p->p_sysent->sv_coredump(p, vp, limit) : 1395 ENOSYS; ----- >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991102103414.13E6414FBC>