From: Ian Jackson Subject: Re: [PATCH OSSTEST v2] Arrange for core dumps to be placed in /var/core and collect them Date: Tue, 21 Apr 2015 16:20:34 +0100 Message-ID: <21814.27330.495800.880905@mariner.uk.xensource.com> References: <1427207038-28090-1-git-send-email-ian.campbell@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1427207038-28090-1-git-send-email-ian.campbell@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("[PATCH OSSTEST v2] Arrange for core dumps to be placed in /var/core and collect them"): > Refactor the $kvp_replace helper in ts-xen-install into a generic > helper (which requires using ::EO and ::EI for namespacing) for use > with target_editfile and use it to edit /etc/sysctl.conf to set > kernel.core_pattern on boot. > > Tested in standalone mode by installing and running a C program > containing "*(int *)0 = 1;" which, after running "ulimit -c unlimited" > produces the expected core file. ts-logs-capture when run in > standalone mode then picks them up. > > I've not yet figured out how to make the desired rlimit take affect > for all processes (including e.g. daemons spawned on boot). Likely > this will involve some combination of pam_limits.so PAM module and > adding explicit ulimit calls to the initscripts which we care about > (primarily xencommons and libvirt initscripts). > > Signed-off-by: Ian Campbell > Acked-by: Ian Jackson > --- > v2: Add /var/core to ts-leak-check I'm going to push this and the two related patches, and the $r{enable_xsm} one, RSN. Ian.