From: Willem Jan Withagen Subject: Re: Finding cores in ceph-helper is even more convoluted ..... Date: Fri, 11 Aug 2017 12:20:12 +0200 Message-ID: <83d111e9-320d-bd47-5a61-92fea45bcbfc@digiware.nl> References: <56f1b93d-7ec0-2515-e9cf-de5c3a659483@digiware.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: Received: from smtp.digiware.nl ([176.74.240.9]:54061 "EHLO smtp.digiware.nl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751618AbdHKKUR (ORCPT ); Fri, 11 Aug 2017 06:20:17 -0400 Received: from [192.168.10.67] (opteron [192.168.10.67]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.digiware.nl (Postfix) with ESMTPSA id 729B6223D9 for ; Fri, 11 Aug 2017 12:20:15 +0200 (CEST) In-Reply-To: <56f1b93d-7ec0-2515-e9cf-de5c3a659483@digiware.nl> Content-Language: en-US Sender: ceph-devel-owner@vger.kernel.org List-ID: To: Ceph Development And something to be aware of as well: wjw@cephdev:~/master % sysctl -w kern.corefile=core.%N.%P kern.corefile: core.%N sysctl: kern.corefile=core.%N.%P: Operation not permitted Setting core-name output only works as root. --WjW On 11-8-2017 10:51, Willem Jan Withagen wrote: > @dzafman > I'm running into a small snag when running a full test: > I've added a line to show what is in the directory > ``` > 6: > /home/jenkins/workspace/ceph-master/qa/standalone/ceph-helpers.sh:172: > teardown: pwd > 6: /home/jenkins/workspace/ceph-master/build/src/test > 6: > /home/jenkins/workspace/ceph-master/qa/standalone/ceph-helpers.sh:173: > teardown: ls . > 6: CMakeFiles > 6: CTestTestfile.cmake > 6: Makefile > 6: ObjectMap > 6: bench > 6: cls_hello > 6: cls_lock > 6: cls_log > 6: cls_lua > 6: cls_numops > 6: cls_rbd > 6: cls_refcount > 6: cls_replica_log > 6: cls_rgw > 6: cls_sdk > 6: cls_statelog > 6: cls_version > 6: cmake_install.cmake > 6: common > 6: compressor > 6: core.ceph_test_objectsto.51398 > 6: core.unittest_bufferlist.50899 > 6: core.unittest_signals.50922 > 6: core.unittest_texttable.51005 > ``` > CWD = build/src/test > > So the setup routine already starts to fail in teardown because there > where cores, left from previous tests. > Question is how to find out who generated the cores, and do they > actually belong to the current test. > Complexing problem is that `%N` only uses the first 19 chars of a > process name. > > perhaps we should set core-names to something like "core.${testname}"?? > > --WjW > -- > To unsubscribe from this list: send the line "unsubscribe ceph-devel" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html >