From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 4 03:34:44 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E8886106564A for ; Fri, 4 Apr 2008 03:34:44 +0000 (UTC) (envelope-from kubatyszko@gmail.com) Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.190]) by mx1.freebsd.org (Postfix) with ESMTP id B5C6B8FC12 for ; Fri, 4 Apr 2008 03:34:44 +0000 (UTC) (envelope-from kubatyszko@gmail.com) Received: by rv-out-0910.google.com with SMTP id g13so2237718rvb.43 for ; Thu, 03 Apr 2008 20:34:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=aUYYJnltGmyUdYaP0cwFw+4jPgtOI367YkQCCRHLfJY=; b=hwqfiknFplkfANFeU+e1VTGJLIuamYK7gqD801BhC5dIeMq3nY9t8uJCUdHOdSFme/3NetH2lV3vBsgms3E3ASLUzbBFpSR8pLaIOUJbIYThYjySDychVqt0h8qn1Dwf/YEsfe8MvLavwOJqMrCDQbYhOQVKlfrVpTOpgq3vhTM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:mime-version:content-type; b=TXbWq0GfbH+UXQvfmKypBur5elo2qpQbaLxlWqwupj9ayMjiJWrJg0NG9MdHqfBjkRHFdAuIdD5mLDtCi9kdUCBQmoW9ePhynuulhqF/fjEeJN0fE/pvVKpA6Sdhw3Z97BU1pTSbUort/Yw1zkUcSNRI5WAgcurwsN+rOwjvPXY= Received: by 10.141.23.7 with SMTP id a7mr330134rvj.5.1207278367645; Thu, 03 Apr 2008 20:06:07 -0700 (PDT) Received: by 10.140.200.20 with HTTP; Thu, 3 Apr 2008 20:06:07 -0700 (PDT) Message-ID: Date: Fri, 4 Apr 2008 12:06:07 +0900 From: "Kuba Tyszko" To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: force kernel dump - problems X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Apr 2008 03:34:45 -0000 Hi, I am trying to force kernel dump, and observing weird behavior: I have created kernel module that registers sysctl for me, after touching that sysctl it calls dumpsys() function which is supposed to dump kernel to disk. This is what i get in dmesg and on console --------------- Physical memory: 243 MB Dumping 35 MB:Attempt to write outside dump device boundaries. Offset: 14008330027167693824 mediaoffset: 3221225472 mediasize: 14008330023983906816 , length: 512 ** DUMP FAILED (ERROR 6) ** --------------- (The Offset.* line was added by me to the kernel source for debugging, but anyway it shows weird values - the same regardless of swap device i choose via dumpon ( i have 2 swap partitions for this) ). Can anyone help me with this ?, I would like to know first how to obtain kernel dump, then how to check why it doesn't work my way. Thanks