From owner-freebsd-current@FreeBSD.ORG Sat Jul 20 10:26:09 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 5C395EFF for ; Sat, 20 Jul 2013 10:26:09 +0000 (UTC) (envelope-from gperez@entel.upc.edu) Received: from violet.upc.es (violet.upc.es [147.83.2.51]) by mx1.freebsd.org (Postfix) with ESMTP id E5455C68 for ; Sat, 20 Jul 2013 10:26:08 +0000 (UTC) Received: from ackerman2.upc.es (ackerman2.upc.es [147.83.2.244]) by violet.upc.es (8.14.1/8.13.1) with ESMTP id r6K8xLXR011085 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Sat, 20 Jul 2013 10:59:21 +0200 Received: from [192.168.1.110] (48.Red-83-60-209.dynamicIP.rima-tde.net [83.60.209.48]) (authenticated bits=0) by ackerman2.upc.es (8.14.4/8.14.4) with ESMTP id r6K8xJGR019079 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Sat, 20 Jul 2013 10:59:20 +0200 Message-ID: <51EA5166.4020508@entel.upc.edu> Date: Sat, 20 Jul 2013 10:59:18 +0200 From: =?UTF-8?B?R3VzdGF1IFDDqXJleiBpIFF1ZXJvbA==?= User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130322 Thunderbird/17.0.4 MIME-Version: 1.0 To: freebsd-current@freebsd.org Subject: Re: Panic when starting X with Intel KMS References: <51E6EB0A.2060407@entel.upc.edu> In-Reply-To: <51E6EB0A.2060407@entel.upc.edu> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.70 on 147.83.2.244 X-Mail-Scanned: Criba 2.0 + Clamd X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (violet.upc.es [147.83.2.51]); Sat, 20 Jul 2013 10:59:21 +0200 (CEST) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Jul 2013 10:26:09 -0000 Al 17/07/2013 21:05, En/na Gustau Pérez i Querol ha escrit: > Hi, > > I'm having panics or hard freezes when starting X with an Intel > video card. The machine is able to start old X+twm without problems > but when I try gnome3 (in normal or fallback mode, doesn't matter) the > machine panics or hard freezes. > > This doesn't happen when running X with vesa. With vesa the gnome > is able to start in fallback (no composition) mode. Also, an old i386 > with an nvidia card is able to run that gnome3 with composition so I'd > say it has to do with the intel card. > > These are the specs of the machine: > > FreeBSD 10.0-CURRENT #4 r+3dc57aa: Wed Jul 17 15:13:07 CEST 2013 > root@portgus:/usr/obj/usr/src/sys/CUSTOM amd64 > FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610 > RAM: 8GB > Video Card: Intel chipid=0x00468086 > > The debugging knobs in the kernel config are there. I can also > confirm that I can break to the debugger with CTRL+ALT+ESC before > starting X. The world was build without debug symbols. > > Because the machine runs with an Intel card, I had to use my $work > dockstation to obtain a serial port and do the debug via serial port > with another machine. > > When starting X, either the machine freezes hard (and so no > CTRL+ALT+ESC) or the machine panics. It has never executed X without > panics or freezes. > > I was able to obtain a core dump, the results are at: > > https://dl.dropboxusercontent.com/u/2094962/core.txt.4 > > I was unable to dive any further because the dump only shows the > kernel side of things. The bt only seems to show the kernel side and > the user side of things seems to be corrupt. > > Any other info I can obtain from the machine in the moment of the > panic, let me know. I can easy do the debug via serial port. > > Gus > Reading the backtrace I see this: panic: pmap_release: pmap resident count -398580 != 0 which comes from amd64/amd64/pmap.c:1936. I suspect that pmap->pm_stats.resident_count being negative is a bug. Can this be caused by a userspace process? If that's possible, any idea why I get a corrupted stack an thus I'm not able to find the root of the problem. G. -- Salut i força, Gustau --------------------------------------------------------------------------- Prou top-posting : http://ca.wikipedia.org/wiki/Top-posting Stop top-posting : http://en.wikipedia.org/wiki/Posting_style O O O Gustau Pérez i Querol O O O Unitat de Gestió dels departaments O O O Matemàtica Aplicada IV i Enginyeria Telemàtica Universitat Politècnica de Catalunya Edifici C3 - Despatx S101-B UPC Campus Nord UPC C/ Jordi Girona, 1-3 08034 - Barcelona