From owner-freebsd-hackers@FreeBSD.ORG Wed Feb 23 13:11:39 2011 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 2A6BF1065675 for ; Wed, 23 Feb 2011 13:11:39 +0000 (UTC) (envelope-from drbaud@yahoo.com) Received: from nm16.bullet.mail.sp2.yahoo.com (nm16.bullet.mail.sp2.yahoo.com [98.139.91.86]) by mx1.freebsd.org (Postfix) with SMTP id 05F7B8FC18 for ; Wed, 23 Feb 2011 13:11:38 +0000 (UTC) Received: from [98.139.91.66] by nm16.bullet.mail.sp2.yahoo.com with NNFMP; 23 Feb 2011 12:59:01 -0000 Received: from [98.139.91.27] by tm6.bullet.mail.sp2.yahoo.com with NNFMP; 23 Feb 2011 12:59:01 -0000 Received: from [127.0.0.1] by omp1027.mail.sp2.yahoo.com with NNFMP; 23 Feb 2011 12:59:01 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 118086.49250.bm@omp1027.mail.sp2.yahoo.com Received: (qmail 87202 invoked by uid 60001); 23 Feb 2011 12:59:00 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1298465940; bh=o4wVsklDvl4Y/OMImR4H1QnYuuyRuLMXOXDsiikubXk=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=lMmfhu9IOLqsp+QOR6xEuDFeM54kPyz4YVX8bCS6IurcsYaYIuZA6NzGzSZ3rblspOJCkiDKyvU2iAA30OWlD5WH2mqGflitLRfZgI2dLzGVSydP/cEd67T5fOcbMt9Fvfbp/SKna6Th4v1iBE8Ba2bjQqupjp3ZwVgyt9RSnRQ= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=nZnC5Ajg2PESgIId5SWKcgIA1lpyq5VsubMZ+53hZg3WQ5apDsCDbYGBQzwIoPNJyswPf0uF99RavYdDRrAO/sSWLYQa5Tt+q80HaKv0F9Qn+jx70Uvjvryi+M3sYjV+5WrYpIYHMxL8o0bqae8vupawW3Gvo0bAYeGo6QppLRE=; Message-ID: <601918.80426.qm@web120714.mail.ne1.yahoo.com> X-YMail-OSG: 9yHaThMVM1mnlOj6Xf5vYKX5dUu8XhWoPbUDce2Y7PsPnfe 85pDC1ehVs6tNjFY9Efo6ILDXPZBJ1MXtBNWvZ1whEi8fTzNtxXqigYQcfpg WOwM5L7maBgoRcKgdCJKgzVuMqL33ISxEupIGgdf7rVnJyTlE29LzUN.otDh JjU4n3Bp5gcBjcjrlFeDVE901ILUu2RWzelusIkc0JHqKEueTB6lCOzv5Szv RuboW18z0qNhKmp6Otz2.7e5wZ_DVXqx99F2gL_XlQNGd4oomGIxM5r.nnTe P4VVEBS58Lk_cAp2A.ppF Received: from [64.238.244.146] by web120714.mail.ne1.yahoo.com via HTTP; Wed, 23 Feb 2011 04:59:00 PST X-Mailer: YahooMailRC/555 YahooMailWebService/0.8.109.292656 References: <137445.33642.qm@web120719.mail.ne1.yahoo.com> <20110218122136.GA78089@deviant.kiev.zoral.com.ua> Date: Wed, 23 Feb 2011 04:59:00 -0800 (PST) From: "Dr. Baud" To: freebsd-hackers@freebsd.org In-Reply-To: <20110218122136.GA78089@deviant.kiev.zoral.com.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailman-Approved-At: Wed, 23 Feb 2011 13:47:36 +0000 Subject: Re: spontaneous reboot - ptrace 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: Wed, 23 Feb 2011 13:11:39 -0000 As it happens the NMI was caused by attempting to access memory mapped PCI address space. The HBA associated with the mapped PCI address space generated a PERR. Thanks for the help. ----- Original Message ---- From: Kostik Belousov To: Dr. Baud Cc: freebsd-hackers@freebsd.org Sent: Fri, February 18, 2011 6:21:36 AM Subject: Re: spontaneous reboot - ptrace On Fri, Feb 18, 2011 at 03:58:05AM -0800, Dr. Baud wrote: > > > > First, do you have a console output during the run ? Is it possible > > that machine paniced ? If not, were there any kernel messages before> > > reboot ? > > > > Second, what is the process you are dumping ? Can you show at least > > the procstat -v output for the process ? > > Sorry for this late response but my earlier response appears to have been > consumed by the email reflector. > > I'm getting an NMI. And the trouble appears to be when trying to > read via ptrace memory segments of type KVME_TYPE_DEVICE. The app in > quesion allocates a large number of large memory buffers and maps them > into virtual address space. Not all segments cause the NMI however. > Small sampling of the virtual memory map. You did not provided exact console output on the panic, despite requested. What is the device that was mmaped ? Obviously, this is your problem. Can you gather all required information ? > > PID START END PRT RES PRES REF SHD FL TP PATH > 931 0x400000 0x1773000 r-x 4239 5053 2 1 CN vn >/mnt/dia > g/problemchild > 931 0x1872000 0x2ef2000 rw- 416 0 1 0 C- vn >/mnt/dia > g/problemchld > 931 0x2ef2000 0x6700000 rw- 11765 0 1 0 C- df > 931 0x801872000 0x8018a2000 r-x 48 0 57 28 CN vn >/libexec > /ld-elf.so.1 > 931 0x8018a2000 0x8018b3000 rw- 15 0 1 0 C- df > 931 0x8018b3000 0x801924000 rw- 113 0 1698 0 -- dv > 931 0x801924000 0x801925000 rw- 1 0 1698 0 -- dv > 931 0x801925000 0x801926000 rw- 1 0 1698 0 -- dv > 931 0x801926000 0x801927000 rw- 1 0 1698 0 -- dv > 931 0x801927000 0x801928000 rw- 1 0 1698 0 -- dv > 931 0x801928000 0x80192a000 rw- 2 0 1698 0 -- dv > 931 0x80192a000 0x80192b000 rw- 1 0 1698 0 -- dv > 931 0x80192b000 0x80192c000 rw- 1 0 1698 0 -- dv > 931 0x80192c000 0x80192d000 rw- 1 0 1698 0 -- dv > 931 0x80192d000 0x80192e000 rw- 1 0 1698 0 -- dv > 931 0x80192e000 0x801930000 rw- 2 0 1698 0 -- dv > 931 0x801930000 0x801932000 rw- 2 0 1698 0 -- dv > 931 0x801932000 0x801993000 rw- 97 0 1698 0 -- dv > 931 0x801993000 0x8019a0000 rw- 13 0 1698 0 -- dv > 931 0x8019a0000 0x8019a1000 rw- 1 0 1698 0 -- dv > > .... > > 931 0x802ab7000 0x802bb7000 --- 0 0 1 0 CN df > 931 0x0x802bb70 0x0x802bd6000 rw- 17 0 1 0 C- vn >/lib/lib > c.so.7 > 931 0x802bd6000 0x802bf1000 rw- 18 0 1 0 C- df > 931 0x802bf1000 0x802bfd000 r-x 9 14 2 1 CN vn >/lib/lib > gcc_s.so.1 > 931 0x802bfd000 0x802cfc000 --- 0 0 1 0 CN df > 931 0x802cfc000 0x802cfe000 rw- 2 0 1 0 CN vn >/lib/lib > gcc_s.so.1 > 931 0x802cfe000 0x802cff000 rw- 1 0 1698 0 -- dv > 931 0x802cff000 0x802d00000 rw- 1 0 1698 0 -- dv > 931 0x802d00000 0x802e00000 rw- 132 0 1 0 C- df > 931 0x802e00000 0x802f00000 rw- 109 0 1 0 C- df > 931 0x802f00000 0x802f91000 rw- 145 0 1698 0 -- dv > 931 0x802f91000 0x802fb2000 rw- 33 0 1698 0 -- dv > 931 0x802fb2000 0x802fd3000 rw- 33 0 1698 0 -- dv > 931 0x802fd3000 0x802ff5000 rw- 34 0 1698 0 -- dv > 931 0x802ff5000 0x802ff6000 rw- 1 0 1698 0 -- dv > > > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"