From owner-freebsd-hackers@FreeBSD.ORG Sun Nov 28 16:55:04 2010 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 3D678106566B for ; Sun, 28 Nov 2010 16:55:04 +0000 (UTC) (envelope-from mahan@mahan.org) Received: from ns.mahan.org (ns.mahan.org [67.116.10.138]) by mx1.freebsd.org (Postfix) with ESMTP id E4A8A8FC0C for ; Sun, 28 Nov 2010 16:55:03 +0000 (UTC) Received: from Gypsy.mahan.org (crowTrobot [67.116.10.140]) by ns.mahan.org (8.13.6/8.13.6) with ESMTP id oASGIYJc061965 for ; Sun, 28 Nov 2010 08:18:35 -0800 (PST) (envelope-from mahan@mahan.org) Message-ID: <4CF280B0.6000100@mahan.org> Date: Sun, 28 Nov 2010 08:17:52 -0800 From: Patrick Mahan User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.4) Gecko/20100608 Thunderbird/3.1 MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Help with determining a system hang 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: Sun, 28 Nov 2010 16:55:04 -0000 Good day, I am running a FreeBSD 8.0 kernel with my code in the kernel that does some deep packet diving. This is mostly working, but I am having occasional system hangs. No response to the console keyboard, stops receiving packets, etc. I have enabled INVARIANTS, WITNESS and WATCHDOG. The watchdog fires (though not always after the 20 sec wait, sometimes it fires immediately). I also have DDB and KDB enabled in the kernel. What is puzzling me is when the watchdog fires and I get the DDB prompt, the first thing I do is list all cpus: 'show allpcpus'. I would expect to see one of the CPUs having something happening, but most of the time all I see is that all of the CPU's are idle. The couple of times this was not true the CPU showed it was in "em_handle_que" in dev/e1000/if_em.c. But this code is pretty straight forward, though I could see if it would block on reading it's registers. Can anyone give me a suggestion on possible causes? At first I thought that maybe I was having a deadlock issue with my code, but while WITNESS does report a few lock-order reversals, they are not in my code and seem to be false positives. I next looked for some type of resource wait, but cannot find one (or I don't know how to find it). 'show locks' does not show any locks being held. 'show threads' shows almost every thread sitting in an idle state. I am at a loss to explain it. I know it is probably my code that is causing this behavior in some way because I never seen the hang when my code is bypassed. When I do the packet diving, I am getting called in either ip_input() or ip_output() directly. In ip_input() I get called either in the forwarding path or just before calling the upper protocol layer via the protosw. In ip_output(), I get called just before ip_output() deals with IP fragmentation. This is a Intel Xeon that FreeBSD reports as a 8 CPUS (duo core + 4 threads/core). However, I am more experienced in MIPS hardware than Intel. I have not yet dug into the interrupt handling for the Intel in FreeBSD, but it is one of my suspects since the system is not even responding to the console keyboard. This is going to be a learning experience for me :-) Thanks for any and all help, Patrick Mahan From owner-freebsd-hackers@FreeBSD.ORG Sun Nov 28 22:20:09 2010 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 B5C08106564A for ; Sun, 28 Nov 2010 22:20:09 +0000 (UTC) (envelope-from jonc@chen.org.nz) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 5030D8FC1D for ; Sun, 28 Nov 2010 22:20:07 +0000 (UTC) Received: by wyf19 with SMTP id 19so3726510wyf.13 for ; Sun, 28 Nov 2010 14:20:07 -0800 (PST) MIME-Version: 1.0 Received: by 10.216.73.74 with SMTP id u52mr2074665wed.73.1290982806963; Sun, 28 Nov 2010 14:20:06 -0800 (PST) Received: by 10.216.242.139 with HTTP; Sun, 28 Nov 2010 14:20:06 -0800 (PST) X-Originating-IP: [203.99.129.1] In-Reply-To: References: Date: Mon, 29 Nov 2010 11:20:06 +1300 Message-ID: From: Jonathan Chen To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Fwd: puc(4) and single I/O port cards. 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: Sun, 28 Nov 2010 22:20:09 -0000 Hi, I've recently added a PCI 1 Parallel Port card, and I'm trying to get it recognised by my 8-STABLE/amd64 system. The relevant entry from "pciconv -lcv" is: =A0 =A0none2@pci0:4:6:0: =A0 class=3D0x070103 card=3D0x2000a000 chip=3D0x98= 659710 rev=3D0x00 hdr=3D0x00 =A0 =A0 =A0 =A0vendor =A0 =A0 =3D 'MosChip Semiconductors (Was: Netmos Tech= nology)' =A0 =A0 =A0 =A0class =A0 =A0 =A0=3D simple comms =A0 =A0 =A0 =A0subclass =A0 =3D parallel port =A0 =A0 =A0 =A0cap 01[48] =3D powerspec 2 =A0supports D0 D3 =A0current D0 This is matched by info from "devinfo -rv": =A0 =A0unknown pnpinfo vendor=3D0x9710 device=3D0x9865 subvendor=3D0xa000 subdevice=3D0x2000 class=3D0x070103 at slot=3D6 function=3D0 Using this info, I've patched sys/dev/puc/pucdata.c: *** pucdata.c.orig =A0 =A0 =A0Fri Nov 26 20:31:08 2010 --- pucdata.c =A0 Fri Nov 26 20:32:10 2010 *************** *** 820,825 **** --- 820,831 ---- =A0 =A0 =A0 =A0 =A0 =A0PUC_PORT_4S1P, 0x10, 4, 0, =A0 =A0 =A0 =A0}, + =A0 =A0 =A0 { =A0 0x9710, 0x9865, 0xa000, 0x2000, + =A0 =A0 =A0 =A0 =A0 "NetMos NM9865 Single 1284 Printer port", + =A0 =A0 =A0 =A0 =A0 DEFAULT_RCLK, + =A0 =A0 =A0 =A0 =A0 PUC_PORT_1P, 0x10, 4, 0, + =A0 =A0 =A0 }, + =A0 =A0 =A0 =A0{ =A0 0x9710, 0x9865, 0xa000, 0x3002, =A0 =A0 =A0 =A0 =A0 =A0"NetMos NM9865 Dual UART", =A0 =A0 =A0 =A0 =A0 =A0DEFAULT_RCLK, And I've added the following line to /boot/loader.conf: =A0 =A0puc_load=3D"YES" However, all of this doesn't work. dmesg reveals: =A0 =A0pci4: on pcib4 =A0 =A0pci4: at device 6.0 (no driver attache= d) I've taken a look at the puc(4) code, and from my limited understanding, it appears that the section that's preventing it from being recognised is in puc.c:puc_bfe_probe(). In particular: =A0 =A0/* We don't attach to single-port serial cards. */ =A0 =A0if (cfg->ports =3D=3D PUC_PORT_1S || cfg->ports =3D=3D PUC_PORT_1P) =A0 =A0 =A0 =A0return (EDOOFUS); Why is the check there? Is there something about single I/O port cards that interacts badly with the rest of the system? Cheers. -- Jonathan Chen ----------------------------------------------------------------------- "I love deadlines. I like the whooshing sound they make as they fly by" =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0- Douglas Adams From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 29 00:25:53 2010 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 EC04C106564A for ; Mon, 29 Nov 2010 00:25:53 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from asmtpout029.mac.com (asmtpout029.mac.com [17.148.16.104]) by mx1.freebsd.org (Postfix) with ESMTP id D04198FC15 for ; Mon, 29 Nov 2010 00:25:53 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=us-ascii Received: from [192.168.2.12] (atm.xcllnt.net [70.36.220.6]) by asmtp029.mac.com (Sun Java(tm) System Messaging Server 6.3-7.04 (built Sep 26 2008; 64bit)) with ESMTPSA id <0LCM00BT0BQ7LV80@asmtp029.mac.com> for freebsd-hackers@freebsd.org; Sun, 28 Nov 2010 15:25:21 -0800 (PST) X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=6.0.2-1010190000 definitions=main-1011280138 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.2.15,1.0.148,0.0.0000 definitions=2010-11-28_06:2010-11-27, 2010-11-28, 1970-01-01 signatures=0 From: Marcel Moolenaar In-reply-to: Date: Sun, 28 Nov 2010 15:25:18 -0800 Message-id: <42F621F4-8083-42BE-ADA9-243DD661EB73@mac.com> References: To: Jonathan Chen X-Mailer: Apple Mail (2.1082) Cc: freebsd-hackers@freebsd.org Subject: Re: puc(4) and single I/O port cards. 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: Mon, 29 Nov 2010 00:25:54 -0000 On Nov 28, 2010, at 2:20 PM, Jonathan Chen wrote: > I've taken a look at the puc(4) code, and from my limited > understanding, it appears that the section that's preventing it from > being recognised is in puc.c:puc_bfe_probe(). In particular: > > /* We don't attach to single-port serial cards. */ > if (cfg->ports == PUC_PORT_1S || cfg->ports == PUC_PORT_1P) > return (EDOOFUS); > > Why is the check there? Is there something about single I/O port cards > that interacts badly with the rest of the system? Single-port devices are handled by ppc(4) for parallel ports and uart(4) for serial ports. There's no need to have puc(4) in between. -- Marcel Moolenaar xcllnt@mac.com From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 29 04:43:25 2010 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 C83F81065670 for ; Mon, 29 Nov 2010 04:43:25 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 5ABEB8FC0C for ; Mon, 29 Nov 2010 04:43:24 +0000 (UTC) Received: by wyf19 with SMTP id 19so3941247wyf.13 for ; Sun, 28 Nov 2010 20:43:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=UyDqmAlBul4+ZtAmSS67Wml4nBUDcnPb6bdbdJjuyqc=; b=GI6anm4ig8UGjI7a4IvCR0W7d+u4XN/bXWWtK6HmF9LH2XCNQ2NjqoaxuVKrjjGzrX pMU0ThdYc/+MbeAZKdm4OebdoTgFhItzhld25jWu5hwVq99TCcQ/Onar+UO2xCuavfzh AvCTtFjlFLAX5UXmB97y3jw0sovU9M5ohQ6ns= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=n/spOVnGN07fX6Vxe+EbJciQmtJV4WlbNTmR8HmTxnWSUSlGELeRrDnYjVGxwBy7/Q gy5roij8UOfqlPyLN8MOIWgCMy+eJmM6hdTClbnRPpcKVdOvDoQQUV+5p0o3XV+X0vI0 6397v/7wr49JzBf26czaWvYgW5jgUgobaYmB0= MIME-Version: 1.0 Received: by 10.216.46.200 with SMTP id r50mr2947919web.45.1291005804203; Sun, 28 Nov 2010 20:43:24 -0800 (PST) Sender: yanegomi@gmail.com Received: by 10.216.198.27 with HTTP; Sun, 28 Nov 2010 20:43:24 -0800 (PST) In-Reply-To: <4CEEC3BD.3080204@delphij.net> References: <4CEEC3BD.3080204@delphij.net> Date: Sun, 28 Nov 2010 20:43:24 -0800 X-Google-Sender-Auth: 7FQou0POowx6UFNeGd5R9ubuRik Message-ID: From: Garrett Cooper To: d@delphij.net Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: FreeBSD-Hackers Subject: Re: Is it possible to have file removed upon process exit? 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: Mon, 29 Nov 2010 04:43:25 -0000 On Thu, Nov 25, 2010 at 12:14 PM, Xin LI wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA256 > > Hi, > > One pretty common way of having an i-node of a file removed when process > exit is to unlink() it while holding a descriptor of the file. =A0This > approach, however, have a side effect that other processes would not be > able to access the file via its name. > > For certain applications it is sometimes desirable to (e.g. for unix > domain sockets) have file removed when the process quit, regardless > whether the process is quit cleanly. =A0Is there a clean way to do this? Does it have to be nameless and/or unique? Thanks, -Garrett From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 29 08:21:14 2010 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 789D31065670; Mon, 29 Nov 2010 08:21:14 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.geekcn.org (tarsier.geekcn.org [IPv6:2001:470:a803::1]) by mx1.freebsd.org (Postfix) with ESMTP id D7A138FC13; Mon, 29 Nov 2010 08:21:12 +0000 (UTC) Received: from mail.geekcn.org (tarsier.geekcn.org [211.166.10.233]) by tarsier.geekcn.org (Postfix) with ESMTP id 1E1B3A574B9; Mon, 29 Nov 2010 16:21:04 +0800 (CST) X-Virus-Scanned: amavisd-new at geekcn.org Received: from tarsier.geekcn.org ([211.166.10.233]) by mail.geekcn.org (mail.geekcn.org [211.166.10.233]) (amavisd-new, port 10024) with LMTP id KLOfDr3Cz1QL; Mon, 29 Nov 2010 16:20:57 +0800 (CST) Received: from delta.delphij.net (c-76-102-26-215.hsd1.ca.comcast.net [76.102.26.215]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tarsier.geekcn.org (Postfix) with ESMTPSA id 8468CA57009; Mon, 29 Nov 2010 16:20:55 +0800 (CST) DomainKey-Signature: a=rsa-sha1; s=default; d=delphij.net; c=nofws; q=dns; h=message-id:date:from:reply-to:organization:user-agent: mime-version:to:cc:subject:references:in-reply-to: x-enigmail-version:openpgp:content-type:content-transfer-encoding; b=cIxeNGd189cbW9BqTfKJzZ387x62pak6dp9eCmb5Vh/SvPufgAIiHwIJxwL9VRWFB Hn5yxYjj0WjETBpBcbg9g== Message-ID: <4CF36253.2090902@delphij.net> Date: Mon, 29 Nov 2010 00:20:35 -0800 From: Xin LI Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.15) Gecko/20101028 Thunderbird/3.0.10 ThunderBrowse/3.3.2 MIME-Version: 1.0 To: Garrett Cooper References: <4CEEC3BD.3080204@delphij.net> In-Reply-To: X-Enigmail-Version: 1.0.1 OpenPGP: id=3FCA37C1; url=http://www.delphij.net/delphij.asc Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: FreeBSD-Hackers , d@delphij.net Subject: Re: Is it possible to have file removed upon process exit? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: d@delphij.net List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Nov 2010 08:21:14 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 11/28/10 20:43, Garrett Cooper wrote: > On Thu, Nov 25, 2010 at 12:14 PM, Xin LI wrote: >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA256 >> >> Hi, >> >> One pretty common way of having an i-node of a file removed when process >> exit is to unlink() it while holding a descriptor of the file. This >> approach, however, have a side effect that other processes would not be >> able to access the file via its name. >> >> For certain applications it is sometimes desirable to (e.g. for unix >> domain sockets) have file removed when the process quit, regardless >> whether the process is quit cleanly. Is there a clean way to do this? > > Does it have to be nameless and/or unique? Not nameless. Speaking for uniqueness, I think it's unrelated (not good nor bad) for the use case. The name should be predictable (e.g. can be configured, so non-child process can find it), though. Cheers, - -- Xin LI http://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iQEcBAEBCAAGBQJM82JTAAoJEATO+BI/yjfBefYH/21GeUneFBCiTRUYqgjA6AIc QB9D5zqFFNEOWK4fEfa78MnmS7mDGUojfuU36eRsppHYErZ8wLC0evapc/Q45c07 BisQZB4pETNGk+Qv61f9Dd18+bZk+XfqJ5RALAvKiuv1gu0DN/XqTW5PHK25c1YQ nx187Uf6gB8sRHrCt/k5OZQ6hq/ACdWQOA2SvWYbgpPt3WbBRp2D3/qELATUyCRw b10Egkh+c4ovewbmX7tvXYJpOKANp59iFA/q5k/YVEY9MKYTog2ARmkzqPDi4g2B U7ertGMjXgWASfWKwp+mFjjf7stcsPlqpql/MHWMF4fm9Z1TpI91nQ9/wX4UCEs= =uXVP -----END PGP SIGNATURE----- From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 29 12:53:11 2010 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 3284F106564A for ; Mon, 29 Nov 2010 12:53:11 +0000 (UTC) (envelope-from gpeel@thenetnow.com) Received: from constellation.thenetnow.com (constellation.thenetnow.com [207.112.4.14]) by mx1.freebsd.org (Postfix) with ESMTP id 08B5A8FC16 for ; Mon, 29 Nov 2010 12:53:10 +0000 (UTC) Received: from hpeel.ody.ca ([216.240.12.2] helo=GRANTLAPTOP) by constellation.thenetnow.com with esmtpa (Exim 4.69 (FreeBSD)) (envelope-from ) id 1PN30G-000MVn-NV for freebsd-hackers@freebsd.org; Mon, 29 Nov 2010 07:38:44 -0500 Message-ID: <98D05F98AE284E59B83CB2FA55993387@GRANTLAPTOP> From: "Grant Peel" To: Date: Mon, 29 Nov 2010 07:38:46 -0500 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Windows Mail 6.0.6002.18197 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6002.18263 Subject: sbsize - console messages 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: Mon, 29 Nov 2010 12:53:11 -0000 Hi all, I orriginally posted this to -questions and someone there suggest I post here ... I am using FreeBSD 8.0 and am getting lots of these: negative sbsize for uid = 0 +negative sbsize for uid = 0 +negative sbsize for uid = 0 +negative sbsize for uid = 0 +negative sbsize for uid = 0 any ideas what it means or how to cure it?, or even how to trace it down? -Grant From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 29 16:29:34 2010 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 AEE05106564A for ; Mon, 29 Nov 2010 16:29:34 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id 3CA6C8FC19 for ; Mon, 29 Nov 2010 16:29:33 +0000 (UTC) Received: by eyb7 with SMTP id 7so2135719eyb.13 for ; Mon, 29 Nov 2010 08:29:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; bh=2/nB3zxW5wUfe5TB0FEPWhYqknqiIMyG4wb7IdyndYI=; b=f/JKIu+x3AZqSnOwfU755n+a19QN3xujK8n03dFjYBJCxg47vSWNK9IAV9LtCz52RD 6u9kqx1FhCnuzP8VCUn4xcwYGfppk6VqG8lFHNAWuD6srwPiZtRfR7D9Lh5rfLIMinSg Gx102FTdLO0NzOJopWBTmqOQk+KSPRY74TLbo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=fUeL9npQ4kT8BUNijg504HSk7wgQ1G3ROc1J1hdK1nYR7fMKHSWEmYyanwAhgUalBz FaQaEWOzCkp+3zCKiO/6C5mYXxXK+V+ipnr9wi35yg1LTvRiVjyV/4mr0eAmN5fv995v qgjfHLQAxLEgqvaB86BjOuXRExtXafsmZtzlM= MIME-Version: 1.0 Received: by 10.216.175.18 with SMTP id y18mr5867175wel.30.1291048172498; Mon, 29 Nov 2010 08:29:32 -0800 (PST) Sender: yanegomi@gmail.com Received: by 10.216.198.27 with HTTP; Mon, 29 Nov 2010 08:29:32 -0800 (PST) In-Reply-To: <98D05F98AE284E59B83CB2FA55993387@GRANTLAPTOP> References: <98D05F98AE284E59B83CB2FA55993387@GRANTLAPTOP> Date: Mon, 29 Nov 2010 08:29:32 -0800 X-Google-Sender-Auth: 3pDf31vhsuybu7Bp_LKL0gOdI-Q Message-ID: From: Garrett Cooper To: Grant Peel Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-hackers@freebsd.org Subject: Re: sbsize - console messages 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: Mon, 29 Nov 2010 16:29:34 -0000 On Mon, Nov 29, 2010 at 4:38 AM, Grant Peel wrote: > Hi all, > > I orriginally posted this to -questions and someone there suggest I post > here ... > > I am using FreeBSD 8.0 and am getting lots of these: > > negative sbsize for uid = 0 > +negative sbsize for uid = 0 > +negative sbsize for uid = 0 > +negative sbsize for uid = 0 > +negative sbsize for uid = 0 > > any ideas what it means or how to cure it?, or even how to trace it down? Read limit under csh(1) or ulimit under sh(1) for more details and try to apply the change to login.conf and rebuild the database. HTH, -Garrett From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 29 18:28:10 2010 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 46D29106564A for ; Mon, 29 Nov 2010 18:28:10 +0000 (UTC) (envelope-from darmawan_salihun@yahoo.com) Received: from web76808.mail.sg1.yahoo.com (web76808.mail.sg1.yahoo.com [124.108.123.112]) by mx1.freebsd.org (Postfix) with SMTP id 97A798FC1C for ; Mon, 29 Nov 2010 18:28:09 +0000 (UTC) Received: (qmail 23439 invoked by uid 60001); 29 Nov 2010 18:01:28 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1291053688; bh=aHOxmTP5lEJ6alSg2DHIWZtVvBcFR8CeB8NltGX8+aM=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=WqdpvkaDAySVe8sKIeNPBphpBwaUk0Kb4TUcOnNNFHuEJpHKrcwebdmH6rvpTH+Pqj0mZQfT/3IiODDoPYNyAgX6ySylU1bWFF9vtBG5fzoAJCxPG41AZm27AXXUDmGWvCsMgueM1LmS8s913g0SHbxNEyGat2Epz1HVXesTTkA= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=2Td0JtzBZ0ZoBpSd3z8gxL9oueEc04uDfCMHBUNfMu5Dtqk0NfJyDWiUUozsApOVFi3M1FVNZhFYI8HM9Ugtupo/mL7uHrCX0WZ1poawsu8zG+2SQPtUm3VRpus3JurwZolcl24O0MZV3oH2t2fHReDQ//nZfxs09ZLz3l3C5zc=; Message-ID: <187702.21471.qm@web76808.mail.sg1.yahoo.com> X-YMail-OSG: 0h2gSCcVM1mgj88PzXd94rGkrFDAgDJH8xSdSU4G16CYmaB bq4dL0lNymn3cv9kp_WLnSzzZdKI4cjOHA4Tqntympz0a9uv0O_bYBG.mKTk 9oiqOqjzpkWruuGfDV9e5nCaTOhnYyWBAxv6bN5Xk4QjWxsS1OUIiQxmEoyq 1cIsWqGa6uBcBv7qMPmqEgJgBVRjbtJd.bFfEUvFu9nJ_WrxjkpgaoJwigjk ccymclX3D0isxHPswOTYtm6CLj6KnrnBHHvD4r42eSx87DzZxrOPpGLNGmjJ hxw-- Received: from [114.58.32.10] by web76808.mail.sg1.yahoo.com via HTTP; Tue, 30 Nov 2010 02:01:27 SGT X-Mailer: YahooMailClassic/11.4.20 YahooMailWebService/0.8.107.285259 Date: Tue, 30 Nov 2010 02:01:27 +0800 (SGT) From: Darmawan Salihun To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: How to debug BTX loader? 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: Mon, 29 Nov 2010 18:28:10 -0000 Hi guys, I'm currently working on a BIOS for a custom Single Board Computer (SBC). I have the required BIOS source code and tools at hand. However, the boot process always stuck in the BTX loader (the infamous "ACPI autoload failed") when I booted out of USB stick (with the FreeBSD 8.1 USB stick image). I could get the system to boot into FreeBSD 8.1 (by keeping the CDROM tray open and close it when the board looks for boot device, otherwise BTX will reboot instantly). The target development is actually pfsense 2.0 which is based on FreeBSD 8.0. I need to know how to make BTX be as "verbose as possible" in order to find out what went wrong with the BIOS. I'm suspecting that the el-torito support in the BIOS is incomplete. Nonetheless, I need hints about debugging the BTX loader to pin point the exact problem(s). Anyway, I have fixed the first issue which involves erratic PCI IRQ routing and the board works just fine in Windows XP and Linux (Backtrack 3 and CentOS i386). I found that FreeBSD boot CD contains this file: boot/defaults/loader.conf In order to get verbose BTX output, do I need to set the 'verbose_loading="NO"' to "YES"? I'm thinking about "editing" FreeBSD USB stick boot image (how to do that?) Another thing is, where to find guides about BTX development/debugging in order to analyse a crash dump from the BTX? I have been googling for one night but doesn't find enough info. I read the FreeBSD developer handbook but BTX is not explained in detail there. Where is the location of the BTX source code in FreeBSD source code? That's a lot of questions. Thanks in advance for any response. Regards, Darmawan From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 29 20:37:38 2010 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 0429710656A6 for ; Mon, 29 Nov 2010 20:37:38 +0000 (UTC) (envelope-from darcsis@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id AD8118FC2A for ; Mon, 29 Nov 2010 20:37:34 +0000 (UTC) Received: by yxh35 with SMTP id 35so2449370yxh.13 for ; Mon, 29 Nov 2010 12:37:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:to:subject :organization:user-agent:x-envelope-to:mail-followup-to:date :message-id:mime-version:content-type; bh=XdZZ+DobauhN/ATE70xlLtEI245o3FHksF7VtnBPWbw=; b=fYY8XBU68nn10CYXqL0ZufqeFUfQuqwqsbtxpNEk1IvF16q2GZTggI6ov8mQHsOlEx ctqYaxDdgSh8obre5X8tZiByGKRSCW3+IkxSkUU7PSm1OlPwetAmoE6aBqbMbSpXoM1D BJxEUbq6k9xL/0LiGfPgQRgLVqo6fZuTT2ViU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:organization:user-agent:x-envelope-to :mail-followup-to:date:message-id:mime-version:content-type; b=A0BnZgFZ5lb2SSJPRfj1mNdMWBA46a9rFw7M2m4NIwmibcAkkX0VpEzGo+o25D3i5/ wKH2uriW2FrESRCz2KJ+wfAWeR7dpVYXl5eXCUFDAVSJdQIoA4hbES2dKUb9uTnsTwBi nmSlzQ0x264ZoJGrryhSr+g2y0CV7B1AlAmPc= Received: by 10.150.185.5 with SMTP id i5mr10951859ybf.362.1291061293095; Mon, 29 Nov 2010 12:08:13 -0800 (PST) Received: from smtp.xbsd.name ([123.117.56.42]) by mx.google.com with ESMTPS id p30sm3508437ybk.20.2010.11.29.12.08.10 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 29 Nov 2010 12:08:12 -0800 (PST) Received: from pluton.xbsd.name (pluton.xbsd.name [172.16.1.10]) by smtp.xbsd.name (OpenSMTPD) with ESMTP id ILaGiBh2 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128); Tue, 30 Nov 2010 04:08:06 +0800 (CST) From: darcsis@gmail.com (Denise H. G.) To: freebsd-hackers@freebsd.org Organization: Pluto The Planet User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (berkeley-unix) X-Envelope-To: freebsd-hackers@freebsd.org Mail-Followup-To: freebsd-hackers@freebsd.org Date: Tue, 30 Nov 2010 04:08:03 +0800 Message-ID: <86r5e3zye4.fsf@pluton.xbsd.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: find(1): Is this a bug or not? 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: Mon, 29 Nov 2010 20:37:38 -0000 Hi, I found that, while searching for empty directories, find(1) will not continue if it encounters a dir it can't enter (e.g. no privilege). I don't know if it's so designed... I've checked NetBSD and OpenBSD's implementations (almost identical to that of FreeBSD's). And they behave the same way as FreeBSD's find(1) does under the circumstance. I'm wondering if this is a bug or not. -- Self starters --- won't. From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 29 20:54:40 2010 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 867741065674 for ; Mon, 29 Nov 2010 20:54:40 +0000 (UTC) (envelope-from mj@feral.com) Received: from ns1.feral.com (ns1.feral.com [192.67.166.1]) by mx1.freebsd.org (Postfix) with ESMTP id 522368FC20 for ; Mon, 29 Nov 2010 20:54:40 +0000 (UTC) Received: from [192.168.221.2] (remotevpn [192.168.221.2]) by ns1.feral.com (8.14.4/8.14.3) with ESMTP id oATKdmdK039774 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Mon, 29 Nov 2010 12:39:50 -0800 (PST) (envelope-from mj@feral.com) Message-ID: <4CF40F8F.30303@feral.com> Date: Mon, 29 Nov 2010 12:39:43 -0800 From: Matthew Jacob Organization: Feral Software User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6 MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <86r5e3zye4.fsf@pluton.xbsd.name> In-Reply-To: <86r5e3zye4.fsf@pluton.xbsd.name> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender DNS name whitelisted, not delayed by milter-greylist-4.2.6 (ns1.feral.com [192.168.221.1]); Mon, 29 Nov 2010 12:39:51 -0800 (PST) Subject: Re: find(1): Is this a bug or not? 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: Mon, 29 Nov 2010 20:54:40 -0000 can you report out the actual command line you're using and what release it's from? On 11/29/2010 12:08 PM, Denise H. G. wrote: > Hi, > > I found that, while searching for empty directories, find(1) will not > continue if it encounters a dir it can't enter (e.g. no privilege). I > don't know if it's so designed... I've checked NetBSD and OpenBSD's > implementations (almost identical to that of FreeBSD's). And they behave > the same way as FreeBSD's find(1) does under the circumstance. > > I'm wondering if this is a bug or not. > From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 29 21:36:26 2010 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 2A5D210656A4 for ; Mon, 29 Nov 2010 21:36:26 +0000 (UTC) (envelope-from gpeel@thenetnow.com) Received: from constellation.thenetnow.com (constellation.thenetnow.com [207.112.4.14]) by mx1.freebsd.org (Postfix) with ESMTP id F0CB28FC24 for ; Mon, 29 Nov 2010 21:36:25 +0000 (UTC) Received: from hpeel.ody.ca ([216.240.12.2] helo=GRANTDESKTOP) by constellation.thenetnow.com with esmtpa (Exim 4.69 (FreeBSD)) (envelope-from ) id 1PNBOW-0005TN-D2; Mon, 29 Nov 2010 16:36:20 -0500 Message-ID: From: "Grant Peel" To: "Garrett Cooper" References: <98D05F98AE284E59B83CB2FA55993387@GRANTLAPTOP> In-Reply-To: Date: Mon, 29 Nov 2010 16:36:18 -0500 Organization: The Net Now Internet Services. MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 15.4.3502.922 X-MimeOLE: Produced By Microsoft MimeOLE V15.4.3502.922 Cc: freebsd-hackers@freebsd.org Subject: Re: sbsize - console messages X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Grant Peel List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Nov 2010 21:36:26 -0000 -----Original Message----- From: Garrett Cooper Sent: Monday, November 29, 2010 11:29 AM To: Grant Peel Cc: freebsd-hackers@freebsd.org Subject: Re: sbsize - console messages On Mon, Nov 29, 2010 at 4:38 AM, Grant Peel wrote: > Hi all, > > I orriginally posted this to -questions and someone there suggest I post > here ... > > I am using FreeBSD 8.0 and am getting lots of these: > > negative sbsize for uid = 0 > +negative sbsize for uid = 0 > +negative sbsize for uid = 0 > +negative sbsize for uid = 0 > +negative sbsize for uid = 0 > > any ideas what it means or how to cure it?, or even how to trace it down? Read limit under csh(1) or ulimit under sh(1) for more details and try to apply the change to login.conf and rebuild the database. HTH, -Garrett _______________________________________________ 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" Garrett, Thanks for the hint. I am looking through login.conf and from what I can see none of the defaults have been modified. Does this then indicate that there might be an issue with a process trying to consume to many reasources? FWIW I only see the messages occasionally in the logs and the console. -Grant From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 29 22:06:49 2010 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 66930106564A for ; Mon, 29 Nov 2010 22:06:49 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id ED0078FC08 for ; Mon, 29 Nov 2010 22:06:48 +0000 (UTC) Received: by wwf26 with SMTP id 26so756235wwf.31 for ; Mon, 29 Nov 2010 14:06:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=2TcNAkhkaz1Rkq8xewwvT1X8GG8CTcy3zVULb+9D/eI=; b=YSZJiEj+BdhRt4J2pKwk/UfwHDTtVqN8DavehuEb2EOHyRAiqk4NgQm+rmIOmN3Tlp gcQzlw0F37dUn+vBbgHNffXUiqdfJbvsleMdvR1/Aaviy93ZRcvlp4kst7FTK9jnjZDF 1wFFfaW1f5Ut9GmiOcYV5ccW3yAYjX+yvuYyQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=f82sfhGHCvMAeydGX+1Go4Y72YyBKACwhtZ8cp80T9oOJ8Dsv94wymE21sL7DSkHuK eJDMkjiZxgg9UIrbSGdh+eEIUuhLTIOxj6Fj6ZIuwEI/mrJB8KXzq+OXSxBDsJ+4Lh1G 6/IOniRncw5gCvhvj/DlUpAFzR7fH2l5WBtFk= MIME-Version: 1.0 Received: by 10.216.175.18 with SMTP id y18mr6320444wel.30.1291068406487; Mon, 29 Nov 2010 14:06:46 -0800 (PST) Sender: yanegomi@gmail.com Received: by 10.216.198.27 with HTTP; Mon, 29 Nov 2010 14:06:46 -0800 (PST) In-Reply-To: References: <98D05F98AE284E59B83CB2FA55993387@GRANTLAPTOP> Date: Mon, 29 Nov 2010 14:06:46 -0800 X-Google-Sender-Auth: zG1Q3ZSLUIIm9D36clk6PQObho8 Message-ID: From: Garrett Cooper To: Grant Peel Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org Subject: Re: sbsize - console messages 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: Mon, 29 Nov 2010 22:06:49 -0000 On Mon, Nov 29, 2010 at 1:36 PM, Grant Peel wrote: > -----Original Message----- From: Garrett Cooper > Sent: Monday, November 29, 2010 11:29 AM > To: Grant Peel > Cc: freebsd-hackers@freebsd.org > Subject: Re: sbsize - console messages > > On Mon, Nov 29, 2010 at 4:38 AM, Grant Peel wrote: >> >> Hi all, >> >> I orriginally posted this to -questions and someone there suggest I post >> here ... >> >> I am using FreeBSD 8.0 and am getting lots of these: >> >> negative sbsize for uid =3D 0 >> +negative sbsize for uid =3D 0 >> +negative sbsize for uid =3D 0 >> +negative sbsize for uid =3D 0 >> +negative sbsize for uid =3D 0 >> >> any ideas what it means or how to cure it?, or even how to trace it down= ? > > =A0 Read limit under csh(1) or ulimit under sh(1) for more details and > try to apply the change to login.conf and rebuild the database. ... > Garrett, > > Thanks for the hint. > > I am looking through login.conf and from what I can see none of the defau= lts > have been modified. Does this then indicate that there might be an issue > with a process trying to consume to many reasources? > > FWIW I only see the messages occasionally in the logs and the console. Potentially, yes. The other thing to note is that the application that you're using may be setting the limit via setrlimit(2). Flipping through the mbuf(9) manpage (because I had forgotten), mbufs are zone allocated. The number of mbufs (which is related to sbsize) could be better tuned by tuning the zone size, maybe... I'd wait for someone more knowledgeable in this area to reply though because my comments are merely speculation as I haven't actually tuned the VM system extensively to improve my systems' performance as most out-of-the-box settings work for me :/.. Thanks, -Garrett From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 29 22:15:16 2010 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 29DF9106564A for ; Mon, 29 Nov 2010 22:15:16 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id AFC608FC15 for ; Mon, 29 Nov 2010 22:15:15 +0000 (UTC) Received: by eyb7 with SMTP id 7so2466116eyb.13 for ; Mon, 29 Nov 2010 14:15:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; bh=bFogWBXgcEywXhWZcuyIiRItzzao1wC10Qb2bFQFNBM=; b=qTlvp7RG6j/XWsIjdCA89A+75m6G9qXkeFyQcz8nmBfhbcpUKaUJbx7vQIZTOTCiuj lmGAEy0tAbM9UftWTp7m1eLAdVBXp+1Fq3SzcaHj0wComLfWnw0Jbmg37tJ/TxoWuGx4 bGyG7nL1zNP6gX1Ioy8PxF5FMfu0Iy5yM4WXM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=jmKOjArLGjayT6DL92YcMgvTr1JmoWzY+y2VnKJYXbA2OJVfxwceajLIXEeIT52dd7 ZKO/0+n57e59ZyhkDWnxmMNhu3+wOkAFPhdElJ6Orq1YXpJI2vge758OLTl4Fz2BLL5c DBXreGihH0yTzWLNWQ4HxeVWTcVW9AEI/sc8Q= MIME-Version: 1.0 Received: by 10.216.7.8 with SMTP id 8mr1087696weo.30.1291068914460; Mon, 29 Nov 2010 14:15:14 -0800 (PST) Sender: yanegomi@gmail.com Received: by 10.216.198.27 with HTTP; Mon, 29 Nov 2010 14:15:14 -0800 (PST) In-Reply-To: <4CF40F8F.30303@feral.com> References: <86r5e3zye4.fsf@pluton.xbsd.name> <4CF40F8F.30303@feral.com> Date: Mon, 29 Nov 2010 14:15:14 -0800 X-Google-Sender-Auth: iLn5UK7ZNUFeHzJlRVJRuqaclUI Message-ID: From: Garrett Cooper To: Matthew Jacob Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-hackers@freebsd.org Subject: Re: find(1): Is this a bug or not? 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: Mon, 29 Nov 2010 22:15:16 -0000 On Mon, Nov 29, 2010 at 12:39 PM, Matthew Jacob wrote: > can you report out the actual command line you're using and what release > it's from? > > On 11/29/2010 12:08 PM, Denise H. G. wrote: >> >> Hi, >> >> I found that, while searching for empty directories, find(1) will not >> continue if it encounters a dir it can't enter (e.g. no privilege). I >> don't know if it's so designed... I've checked NetBSD and OpenBSD's >> implementations (almost identical to that of FreeBSD's). And they behave >> the same way as FreeBSD's find(1) does under the circumstance. >> >> I'm wondering if this is a bug or not. I thought I had seen something similar to this in the past, but I can't reproduce it with simple cases: $ find . . ./cant-touch-this find: ./cant-touch-this: Permission denied ./hello-world ./hello-world/are-you-sure $ find . -name '*' . ./cant-touch-this find: ./cant-touch-this: Permission denied ./hello-world ./hello-world/are-you-sure $ find . -type f find: ./cant-touch-this: Permission denied ./hello-world/are-you-sure $ sudo find . -type f ./cant-touch-this/mchammer ./hello-world/are-you-sure Thanks, -Garrett From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 29 22:22:04 2010 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 D036B1065675 for ; Mon, 29 Nov 2010 22:22:04 +0000 (UTC) (envelope-from bakul@bitblocks.com) Received: from mail.bitblocks.com (ns1.bitblocks.com [64.142.15.60]) by mx1.freebsd.org (Postfix) with ESMTP id B2A5F8FC0A for ; Mon, 29 Nov 2010 22:22:04 +0000 (UTC) Received: from bitblocks.com (localhost.bitblocks.com [127.0.0.1]) by mail.bitblocks.com (Postfix) with ESMTP id 159C45B18; Mon, 29 Nov 2010 14:16:47 -0800 (PST) To: Matthew Jacob In-reply-to: Your message of "Mon, 29 Nov 2010 12:39:43 PST." <4CF40F8F.30303@feral.com> References: <86r5e3zye4.fsf@pluton.xbsd.name> <4CF40F8F.30303@feral.com> Comments: In-reply-to Matthew Jacob message dated "Mon, 29 Nov 2010 12:39:43 -0800." Date: Mon, 29 Nov 2010 14:16:47 -0800 From: Bakul Shah Message-Id: <20101129221648.159C45B18@mail.bitblocks.com> Cc: freebsd-hackers@freebsd.org Subject: Re: find(1): Is this a bug or not? 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: Mon, 29 Nov 2010 22:22:04 -0000 On Mon, 29 Nov 2010 12:39:43 PST Matthew Jacob wrote: > can you report out the actual command line you're using and what release > it's from? > > On 11/29/2010 12:08 PM, Denise H. G. wrote: > > Hi, > > > > I found that, while searching for empty directories, find(1) will not > > continue if it encounters a dir it can't enter (e.g. no privilege). I > > don't know if it's so designed... I've checked NetBSD and OpenBSD's > > implementations (almost identical to that of FreeBSD's). And they behave > > the same way as FreeBSD's find(1) does under the circumstance. > > > > I'm wondering if this is a bug or not. This looks like a long standing bug: % mkdir -p a/{b,c}/d/e/f % find a -empty % chmod 000 a/b/d/ef % find a -empty The fix: % cd /usr/src/usr.bin/find % svn diff Index: function.c =================================================================== --- function.c (revision 212707) +++ function.c (working copy) @@ -560,7 +560,7 @@ empty = 1; dir = opendir(entry->fts_accpath); if (dir == NULL) - err(1, "%s", entry->fts_accpath); + return 0; for (dp = readdir(dir); dp; dp = readdir(dir)) if (dp->d_name[0] != '.' || (dp->d_name[1] != '\0' && From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 30 00:51:52 2010 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 1F7551065693; Tue, 30 Nov 2010 00:51:52 +0000 (UTC) (envelope-from artemb@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id A02048FC13; Tue, 30 Nov 2010 00:51:51 +0000 (UTC) Received: by qwg8 with SMTP id 8so4241405qwg.13 for ; Mon, 29 Nov 2010 16:51:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; bh=jLVqqPA3P+vqMnWUnROK3x17a9X4scFf/CksTI0gSrU=; b=wv4U9s80gC6uLayn7rk1GT5ajwzP6pkETgYAhoIkwX9R0wtkyldQ7rpBAz8IBdwNCy Q27aCXwxP+K3qBHoXNhZ7EX5tncOkx95oPONXfsGYgzr5qknBmuQUKEiafnih3D9+Lfo 2QSrKlEakpj5YTtIWFh8YN4JolE9ci+xxqWhE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=og0L98tVtax0rEI/ywK10i21DynEGhIgaFN9luaM980I+K0w6+qikpvzm6qjRCsJ2m Nq4VJHoujUp+dSiSXdqWLIVkBeIoerYOCT2c/Yazxtfw8t8LoA4haBJBWBWLQqVLH/PY oLqSogiTLhuUUEoTNQhe1CtM6pb0/KYIv3feM= MIME-Version: 1.0 Received: by 10.229.251.1 with SMTP id mq1mr5616570qcb.22.1291078310509; Mon, 29 Nov 2010 16:51:50 -0800 (PST) Sender: artemb@gmail.com Received: by 10.220.177.195 with HTTP; Mon, 29 Nov 2010 16:51:50 -0800 (PST) In-Reply-To: <4CF02B23.7050508@freebsd.org> References: <4CEB6039.2040700@freebsd.org> <4CEBC11F.9000402@freebsd.org> <4CEFBC20.3090407@freebsd.org> <4CF02B23.7050508@freebsd.org> Date: Mon, 29 Nov 2010 16:51:50 -0800 X-Google-Sender-Auth: 3ojR-lwnIxRYooJTzOPW-NoctC4 Message-ID: From: Artem Belevich To: Andriy Gapon Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-hackers@freebsd.org, "Robert N. M. Watson" Subject: Re: dtrace/cyclic deadlock 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: Tue, 30 Nov 2010 00:51:52 -0000 On Fri, Nov 26, 2010 at 1:48 PM, Andriy Gapon wrote: > on 26/11/2010 21:10 Artem Belevich said the following: >> On Fri, Nov 26, 2010 at 5:54 AM, Andriy Gapon wrote: >>>> I will appreciate reviews and testing. >>> >>> Should I wait for any pending comments? >>> Otherwise I am confident enough in the patch to commit it. >> >> Some time back I used to have reproducible crash related to dtrace/cyclic: >> http://unix.derkeiler.com/Mailing-Lists/FreeBSD/current/2008-10/msg00449.html >> >> If you can wait until Tuesday, I'll try to check if the problem is >> still reproducible and whether your patch fixes it. > > Artem, > > thanks a lot! > I am sure in no hurry and I will appreciate your testing! > > -- > Andriy Gapon > Andriy, I was able to reproduce the deadlock with hotkernel during buildworld after only few attempts. After applying your patch on top of stable/8 r215749 the deadlock appears to be gone. --Artem From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 30 11:23:53 2010 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 D030D106564A for ; Tue, 30 Nov 2010 11:23:53 +0000 (UTC) (envelope-from darcsis@gmail.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id 96D188FC0C for ; Tue, 30 Nov 2010 11:23:53 +0000 (UTC) Received: by pzk32 with SMTP id 32so900679pzk.13 for ; Tue, 30 Nov 2010 03:23:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:to:cc:subject :in-reply-to:organization:references:user-agent:x-envelope-to :mail-followup-to:date:message-id:mime-version:content-type; bh=Dq9dVaG9txAoYncKxNfpTn6GwCCI3XXT0uBqGF/IKn4=; b=TxMNuMgrWr95lbzAxJnjBFxfAFPa488MR9UnZosLcHaYlsOxpbkVEQ1zNVWjNGQVig uZnzjg3kz2KDAfvYzOssMzcHwxwH5o3rRyBpZ4U9o1bVUBDgNmb1B37xMGagpefIUtYF NKbsz17+zFVkY3jYR9GHpudpWKJ2W3N3abU+Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:in-reply-to:organization:references:user-agent :x-envelope-to:mail-followup-to:date:message-id:mime-version :content-type; b=RZfnMtmI+TEzhgYvTDj+ibw1BT+ms0D8yv+/XsaVnf3N63EyzoeGsY2J5asw7SAvD3 igt3yBXuKvyNq0nqbo4brDLSyq+GsX+sJc2W2DYmGU13Tragz+tMqF+mIz7Qy4cXpWpl +qZETNJfx6SBgixukSsfzSHV/Xbt1EGf1KfLc= Received: by 10.142.132.6 with SMTP id f6mr6916238wfd.63.1291116232957; Tue, 30 Nov 2010 03:23:52 -0800 (PST) Received: from smtp.xbsd.name ([114.244.167.213]) by mx.google.com with ESMTPS id y42sm8817898wfd.10.2010.11.30.03.23.48 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 30 Nov 2010 03:23:50 -0800 (PST) Received: from pluton.xbsd.name (pluton.xbsd.name [172.16.1.10]) by smtp.xbsd.name (OpenSMTPD) with ESMTP id 4VK28N6m (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128); Tue, 30 Nov 2010 19:23:44 +0800 (CST) From: darcsis@gmail.com (Denise H. G.) To: Garrett Cooper In-Reply-To: (Garrett Cooper's message of "Mon, 29 Nov 2010 14:15:14 -0800") Organization: Pluto The Planet References: <86r5e3zye4.fsf@pluton.xbsd.name> <4CF40F8F.30303@feral.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (berkeley-unix) X-Envelope-To: gcooper@freebsd.org Mail-Followup-To: Garrett Cooper , Matthew Jacob , freebsd-hackers@freebsd.org Date: Tue, 30 Nov 2010 19:23:41 +0800 Message-ID: <8639qjxdfm.fsf@pluton.xbsd.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-hackers@freebsd.org, Matthew Jacob Subject: Re: find(1): Is this a bug or not? 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: Tue, 30 Nov 2010 11:23:54 -0000 On 2010/11/30 at 06:15, Garrett Cooper wrote: > > On Mon, Nov 29, 2010 at 12:39 PM, Matthew Jacob wrote: >> can you report out the actual command line you're using and what release >> it's from? >> >> On 11/29/2010 12:08 PM, Denise H. G. wrote: >>> >>> Hi, >>> >>> I found that, while searching for empty directories, find(1) will not >>> continue if it encounters a dir it can't enter (e.g. no privilege). I >>> don't know if it's so designed... I've checked NetBSD and OpenBSD's >>> implementations (almost identical to that of FreeBSD's). And they behave >>> the same way as FreeBSD's find(1) does under the circumstance. >>> >>> I'm wondering if this is a bug or not. > > I thought I had seen something similar to this in the past, but I > can't reproduce it with simple cases: > > $ find . > . > ./cant-touch-this > find: ./cant-touch-this: Permission denied > ./hello-world > ./hello-world/are-you-sure > $ find . -name '*' > . > ./cant-touch-this > find: ./cant-touch-this: Permission denied > ./hello-world > ./hello-world/are-you-sure > $ find . -type f > find: ./cant-touch-this: Permission denied > ./hello-world/are-you-sure > $ sudo find . -type f > ./cant-touch-this/mchammer > ./hello-world/are-you-sure "find . -type f" will be ok. but "find . -type d -empty" won't work as expected, I think. > > Thanks, > -Garrett > ................ -- Self starters --- won't. From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 30 11:33:55 2010 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 A34A4106566B for ; Tue, 30 Nov 2010 11:33:55 +0000 (UTC) (envelope-from des@des.no) Received: from smtp.des.no (smtp.des.no [194.63.250.102]) by mx1.freebsd.org (Postfix) with ESMTP id 62BDA8FC08 for ; Tue, 30 Nov 2010 11:33:55 +0000 (UTC) Received: from ds4.des.no (des.no [84.49.246.2]) by smtp.des.no (Postfix) with ESMTP id 5BDB71FFC38; Tue, 30 Nov 2010 11:33:54 +0000 (UTC) Received: by ds4.des.no (Postfix, from userid 1001) id 305E5845DB; Tue, 30 Nov 2010 12:33:54 +0100 (CET) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Bakul Shah References: <86r5e3zye4.fsf@pluton.xbsd.name> <4CF40F8F.30303@feral.com> <20101129221648.159C45B18@mail.bitblocks.com> Date: Tue, 30 Nov 2010 12:33:54 +0100 In-Reply-To: <20101129221648.159C45B18@mail.bitblocks.com> (Bakul Shah's message of "Mon, 29 Nov 2010 14:16:47 -0800") Message-ID: <86zksrm4f1.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org, Matthew Jacob Subject: Re: find(1): Is this a bug or not? 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: Tue, 30 Nov 2010 11:33:55 -0000 Bakul Shah writes: > Index: function.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- function.c (revision 212707) > +++ function.c (working copy) > @@ -560,7 +560,7 @@ > empty =3D 1; > dir =3D opendir(entry->fts_accpath); > if (dir =3D=3D NULL) > - err(1, "%s", entry->fts_accpath); > + return 0; > for (dp =3D readdir(dir); dp; dp =3D readdir(dir)) > if (dp->d_name[0] !=3D '.' || > (dp->d_name[1] !=3D '\0' && You should replace the err() call with a warn() call instead of removing it outright. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 30 14:43:52 2010 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 012AB106575E for ; Tue, 30 Nov 2010 14:43:52 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id C7CD28FC17 for ; Tue, 30 Nov 2010 14:43:51 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id 7F20F46B06; Tue, 30 Nov 2010 09:43:51 -0500 (EST) Received: from jhbbsd.localnet (smtp.hudson-trading.com [209.249.190.9]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id AC6068A01D; Tue, 30 Nov 2010 09:43:50 -0500 (EST) From: John Baldwin To: freebsd-hackers@freebsd.org Date: Tue, 30 Nov 2010 09:38:52 -0500 User-Agent: KMail/1.13.5 (FreeBSD/7.3-CBSD-20101102; KDE/4.4.5; amd64; ; ) References: <187702.21471.qm@web76808.mail.sg1.yahoo.com> In-Reply-To: <187702.21471.qm@web76808.mail.sg1.yahoo.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201011300938.53006.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (bigwig.baldwin.cx); Tue, 30 Nov 2010 09:43:50 -0500 (EST) X-Virus-Scanned: clamav-milter 0.96.3 at bigwig.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-1.9 required=4.2 tests=BAYES_00 autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on bigwig.baldwin.cx Cc: Darmawan Salihun Subject: Re: How to debug BTX loader? 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: Tue, 30 Nov 2010 14:43:52 -0000 On Monday, November 29, 2010 1:01:27 pm Darmawan Salihun wrote: > Hi guys, > > I'm currently working on a BIOS for a custom Single Board Computer (SBC). > I have the required BIOS source code and tools at hand. > However, the boot process always stuck in the BTX loader > (the infamous "ACPI autoload failed") when I booted out of USB stick > (with the FreeBSD 8.1 USB stick image). > > I could get the system to boot into FreeBSD 8.1 > (by keeping the CDROM tray open and close it when the board looks for > boot device, otherwise BTX will reboot instantly). Are you getting an actual BTX error message or a freeze? BTX is just a minikernel written all in assembly. It doesn't handle loading the kernel, etc. All that work is done by the /boot/loader program (which is written in C). You can find all the source to the boot code in src/sys/boot. The BTX kernel is in src/sys/boot/i386/btx/btx/. However, to debug this further we would need more info such as what exactly you are seeing (a hang, a BTX fault with a register dump, etc.). -- John Baldwin From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 30 15:54:23 2010 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 5B76E106564A for ; Tue, 30 Nov 2010 15:54:23 +0000 (UTC) (envelope-from bakul@bitblocks.com) Received: from mail.bitblocks.com (ns1.bitblocks.com [64.142.15.60]) by mx1.freebsd.org (Postfix) with ESMTP id 408D38FC0A for ; Tue, 30 Nov 2010 15:54:23 +0000 (UTC) Received: from bitblocks.com (localhost.bitblocks.com [127.0.0.1]) by mail.bitblocks.com (Postfix) with ESMTP id 6340C5B73; Tue, 30 Nov 2010 07:54:21 -0800 (PST) To: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= In-reply-to: Your message of "Tue, 30 Nov 2010 12:33:54 +0100." <86zksrm4f1.fsf@ds4.des.no> References: <86r5e3zye4.fsf@pluton.xbsd.name> <4CF40F8F.30303@feral.com> <20101129221648.159C45B18@mail.bitblocks.com> <86zksrm4f1.fsf@ds4.des.no> Comments: In-reply-to =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= message dated "Tue, 30 Nov 2010 12:33:54 +0100." Date: Tue, 30 Nov 2010 07:54:21 -0800 From: Bakul Shah Message-Id: <20101130155421.6340C5B73@mail.bitblocks.com> Cc: freebsd-hackers@freebsd.org, Matthew Jacob Subject: Re: find(1): Is this a bug or not? 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: Tue, 30 Nov 2010 15:54:23 -0000 On Tue, 30 Nov 2010 12:33:54 +0100 =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= wrote: > Bakul Shah writes: > > Index: function.c > > --- function.c (revision 212707) > > +++ function.c (working copy) > > @@ -560,7 +560,7 @@ > > empty = 1; > > dir = opendir(entry->fts_accpath); > > if (dir == NULL) > > - err(1, "%s", entry->fts_accpath); > > + return 0; > > for (dp = readdir(dir); dp; dp = readdir(dir)) > > if (dp->d_name[0] != '.' || > > (dp->d_name[1] != '\0' && > > You should replace the err() call with a warn() call instead of removing > it outright. That would print the err msg twice as opendir (or something) already seems to report the error. Try it! From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 30 16:35:49 2010 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 C1D2C10656A3 for ; Tue, 30 Nov 2010 16:35:49 +0000 (UTC) (envelope-from des@des.no) Received: from smtp.des.no (smtp.des.no [194.63.250.102]) by mx1.freebsd.org (Postfix) with ESMTP id 80A0B8FC1F for ; Tue, 30 Nov 2010 16:35:49 +0000 (UTC) Received: from ds4.des.no (des.no [84.49.246.2]) by smtp.des.no (Postfix) with ESMTP id 79F411FFC37; Tue, 30 Nov 2010 16:35:48 +0000 (UTC) Received: by ds4.des.no (Postfix, from userid 1001) id 270BE84548; Tue, 30 Nov 2010 17:35:47 +0100 (CET) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Bakul Shah References: <86r5e3zye4.fsf@pluton.xbsd.name> <4CF40F8F.30303@feral.com> <20101129221648.159C45B18@mail.bitblocks.com> <86zksrm4f1.fsf@ds4.des.no> <20101130155421.6340C5B73@mail.bitblocks.com> Date: Tue, 30 Nov 2010 17:35:47 +0100 In-Reply-To: <20101130155421.6340C5B73@mail.bitblocks.com> (Bakul Shah's message of "Tue, 30 Nov 2010 07:54:21 -0800") Message-ID: <86r5e2n50c.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org, Matthew Jacob Subject: Re: find(1): Is this a bug or not? 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: Tue, 30 Nov 2010 16:35:49 -0000 Bakul Shah writes: > "Dag-Erling Sm=C3=B8rgrav" writes: > > You should replace the err() call with a warn() call instead of > > removing it outright. > That would print the err msg twice as opendir (or something) already > seems to report the error. Try it! Oh, OK. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 30 22:46:08 2010 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 9DEE41065679 for ; Tue, 30 Nov 2010 22:46:08 +0000 (UTC) (envelope-from das@FreeBSD.ORG) Received: from zim.MIT.EDU (ZIM.MIT.EDU [18.95.3.101]) by mx1.freebsd.org (Postfix) with ESMTP id 31AC98FC22 for ; Tue, 30 Nov 2010 22:46:07 +0000 (UTC) Received: from zim.MIT.EDU (localhost [127.0.0.1]) by zim.MIT.EDU (8.14.4/8.14.2) with ESMTP id oAUMM2uv079248; Tue, 30 Nov 2010 17:22:02 -0500 (EST) (envelope-from das@FreeBSD.ORG) Received: (from das@localhost) by zim.MIT.EDU (8.14.4/8.14.2/Submit) id oAUMM2ZD079247; Tue, 30 Nov 2010 17:22:02 -0500 (EST) (envelope-from das@FreeBSD.ORG) Date: Tue, 30 Nov 2010 17:22:02 -0500 From: David Schultz To: perryh@pluto.rain.com Message-ID: <20101130222202.GA79001@zim.MIT.EDU> Mail-Followup-To: perryh@pluto.rain.com, ivoras@freebsd.org, freebsd-hackers@freebsd.org References: <20101026213618.GA3013@freebsd.org> <4cc7ea44.ApOaxS8Xr4Sxu+0x%perryh@pluto.rain.com> <20101027111124.00007450@unknown> <4cc92df1.Z0CRaJOCdvd/ZJSL%perryh@pluto.rain.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4cc92df1.Z0CRaJOCdvd/ZJSL%perryh@pluto.rain.com> Cc: freebsd-hackers@FreeBSD.ORG, ivoras@FreeBSD.ORG Subject: Re: fsync(2) manual and hdd write caching 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: Tue, 30 Nov 2010 22:46:08 -0000 On Thu, Oct 28, 2010, perryh@pluto.rain.com wrote: > Ivan Voras wrote: > > > ... The problem is actually pretty hard - since AFAIK SoftUpdates > > doesn't have "checkpoints" in the sense that it groups writes and > > all data "before" can guaranteed to be on-disk, the problem is > > *when* to issue BIO_FLUSH requests. > > Seems to me the originally-stated problem -- making fsync(2) > do what it claims to do -- is not hard at all. Just issue a > BIO_FLUSH request as the final step in handling fsync(2). Yes, for correctness, fsync(2) needs to flush the relevant parts of the disk's volatile write cache before returning. If it doesn't, applications like databases can fail if there is a power loss. Unfortunately, this isn't really practical. First, performance is poor: you generally can't flush a particular sector without flushing the entire write cache, and many disks (including all ATA disks) don't differentiate between volatile and non-volatile caches. Second, many disks ignore the command. So the status quo for all the major Unix variants is apparently to favor performance over correctness. However, FlushFileBuffers() in Windows does the right thing and flushes the disk write cache, and I've heard that ZFS and ext4 also do the right thing (subject to the correctness of the disk controller, of course). So FreeBSD isn't any worse than most of the world here. FreeBSD used to turn off disk write caches by default, but many people complained about FreeBSD being slow. Far fewer people complain about corruptions due to power failure. Usually people who require stronger reliability guarantees invest in replicated storage and battery backups anyway. Note that the "broken" behavior is still protective against kernel and application crashes -- just not power failures and certain types of disk faults. An informative article on the topic is here: http://www.postgresql.org/docs/9.0/static/wal-reliability.html > While we're at it, perhaps do the same in close(2). > I _hope_ we are already doing it in unmount(2). close(2) is a different beast; flushes would be too expensive, and they aren't needed except for NFS. Apps are expected to use fsync(2) if they require it. From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 30 23:17:54 2010 Return-Path: Delivered-To: hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B8DAB106566C for ; Tue, 30 Nov 2010 23:17:54 +0000 (UTC) (envelope-from dheerajsuthar2008@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 527B18FC0C for ; Tue, 30 Nov 2010 23:17:53 +0000 (UTC) Received: by wyf19 with SMTP id 19so6230527wyf.13 for ; Tue, 30 Nov 2010 15:17:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=jYD+2jucgG4YPSv5V28wooEkxRNr62V5LV3DSlRzpb8=; b=cNAZBMFo82+8CoBo3TUelyjYs6AX3uQe1pfpSyG9baqkpthY5Gf9Af6XIUSagDb9Zo CS1EN5TkvmlR44UqziFWvfrqNq7twm860xKmQt71s6oCMif80W+NolkG+eHxB96HLiJp DBRRtYBZYaOZKnkNGx9Z+rpaZOrsXmfbgpk5g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=JHjW+YE4R++uPu6O498hepgpOBujo8d1WCn3I0UVDBbfe9mWDTewk+22l9eCalNEvc g6asLNIXaFJ4dbM4o6hLM6fHMScr0YaAx3bSr6dUn2rQJw8MJvGZ3getsEwN/XS8ghId EW17eKaAGdO3Ww/KSALAgH6UAwZEcjQUD4bGg= MIME-Version: 1.0 Received: by 10.216.51.8 with SMTP id a8mr1210580wec.62.1291157386927; Tue, 30 Nov 2010 14:49:46 -0800 (PST) Received: by 10.216.239.207 with HTTP; Tue, 30 Nov 2010 14:49:46 -0800 (PST) Date: Wed, 1 Dec 2010 04:19:46 +0530 Message-ID: From: dheeraj suthar To: hackers@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1 X-Mailman-Approved-At: Wed, 01 Dec 2010 00:14:21 +0000 Cc: Subject: Greetings 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: Tue, 30 Nov 2010 23:17:54 -0000 Hi, I am a MCA (Masters in Computer Application) student. I have become quite interested in FreeBSD recently and want to contribute it through programming tasks. My current skill set: Languages: C,C++,Java,Assembly(AT&T & Intel),Python{esp.good in C,Java} Web:HTML,CSS,Perl,CGI,CMS(Joomla,Wordpress,Plone){ Made web-site for institutes.} Core Subjects: Operating Systems, Data Structures,Networks,Unix System Programming {Admitting, much of it had been theoretical only, with less implementation} I now want to concentrate on Operating Systems and System Software as these are my subjects of interest.Also I want to do my project work(1 semester long) on Operating Systems itself(preferably FreeBSD). Kindly do guide me(as I am new here.) and involve me in some programming project related to above mentioned fields. Also I am currently going through project lists on FreeBSD list and will apply soon to which suits my skill set. Regards, Dheeraj Suthar, MCA 2nd Yr, NIT Warangal, India. From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 1 01:54:46 2010 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 8EB79106566B; Wed, 1 Dec 2010 01:54:46 +0000 (UTC) (envelope-from oxyd.oxyd@gmail.com) Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com [209.85.216.175]) by mx1.freebsd.org (Postfix) with ESMTP id DDE9C8FC1B; Wed, 1 Dec 2010 01:54:45 +0000 (UTC) Received: by qyk8 with SMTP id 8so1877576qyk.13 for ; Tue, 30 Nov 2010 17:54:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=Nvcj2n+Rv79zUZz70jL7MZ4HTkFXsQGen6Ro08NptpU=; b=X94GZl7h18W0ZZ1RkX0N72IVQ8Imx30tzLz2jurB37olKzxGEN8FZWQKf+pe7wtNnX Dz2WsrqtmyFrNUf2DS3C8bZ8f0AXwX9CSDR5nC9jdan5YpbvIR65SSMg1GjDvJq2n5lz K+uIWd9nejd5acvVl/n9JkCBPQkEyIhG9049s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=mocaa88Xcm+KM8H+ikARgCQ1bTYep60rzfMG1lizOJnaqPe25C791J36TcT3ecIRfm /t2aNb2RR1YBeqGCfnjnQHtVvUjwsGzIauXkASKJrf1hWtliYJg9fnjodGApe/N6tD5q OJl94Xr5cuOLPFUnV07j3v7zC1BC75lF0o5pA= MIME-Version: 1.0 Received: by 10.229.100.20 with SMTP id w20mr6730551qcn.233.1291166599659; Tue, 30 Nov 2010 17:23:19 -0800 (PST) Received: by 10.229.183.19 with HTTP; Tue, 30 Nov 2010 17:23:19 -0800 (PST) Date: Wed, 1 Dec 2010 02:23:19 +0100 Message-ID: From: =?UTF-8?Q?Ond=C5=99ej_Majerech?= To: FreeBSD Mailing List , freebsd-hackers@freebsd.org Content-Type: text/plain; charset=UTF-8 Cc: Subject: 8.1-RELEASE hangs on reboot 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, 01 Dec 2010 01:54:46 -0000 Hello, my 8.1-R system has just started hanging on reboot. Specifically after I svn up'd my source and updated from 8.1-R-p1 to -p2. Some kind of hang occurs on every reboot attempt. Usually it hangs at the "Rebooting..." message, but sometimes the thing just locks up before it even syncs disks. shutdown -p now seems to shutdown the system successfully each time. So I booted into single-user mode, executed "reboot" and during the "Syncing disks" I pressed Ctrl-Alt-Escape to break into the debugger. There I single-stepped with the "s" command until the thing simply stopped doing anything. (Even if I pressed NumLock, the LED on the keyboard wouldn't turn off.) The screen content at the moment of hang is (dutifully typed over as the thing is dead and I don't have a serial cable): [thread pid 12 tid 100017 ] Stopped at sckbdevent+0x5f: call _mtx_unlock_flags db> [thread pid 12 tid 100017 ] Stopped at _mtx_unlock_flags: pushq %rbp db> [thread pid 12 tid 100017 ] Stopped at _mtx_unlock_flags+0x1: movq %rsp,%rbp db> [thread pid 12 tid 100017 ] Stopped at _mtx_unloock_flags+0x4: subq $0x20,%rsp db> [thread pid 12 tid 100017 ] Stopped at _mtx_unlock_flags+0x8: movq %rbx,(%rsp) db> [thread pid 12 tid 100017 ] Stopped at _mtx_unlock_flags+0xc: movq %r12,0x8(%rsp) db> [thread pid 12 pid 100017 ] Stopped at _mtx_unlock_flags+0x11: movq %rdi,%rbx db> [thread pid 12 pid 100017 ] Stopped at _mtx_unlock_flags+0x14: movq %r13,0x10(%rsp) db> E Including that "E" at the end. As I said, it's 8.1-RELEASE-p2; it's on AMD64. I'm using custom kernel which only differs from GENERIC by addition of the debugging options: options INVARIANTS options INVARIANT_SUPPORT options WITNESS options DEBUG_LOCKS options DEBUG_VFS_LOCKS options DIAGNOSTIC I tried rebooting with ACPI disabled, but the thing paniced on boot with panic: Duplicate free of item 0xffffff00025e0000 from zone 0xffffff00bfdcc2a0(1024) cpuid = 0 KDB: enter: panic [thread pid 0 tid 100000 ] Stopped at kdb_enter+0x3d: movq $0, 0x6b2d20(%rip) db> bt Tracing pid 0 tid 100000 td 0xffffffff80c63fc0 kdb_enter() at kdb_enter+0x3d panic() at panic+0x17b uma_dbg_free() at uma_dbg_free+0x171 uma_zfree_arg() at uma_zfree_arg+0x68 free() at free+0xcd device_set_driver() at device_set_driver+0x7c device_attach() at device_attach+0x19b bus_generic_attach() at bus_generic_attach+0x1a pci_attach() at pci_attach+0xf1 device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a legacy_pcib_attach() at legacy_pcib_attach+0x70 device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a legacy_attach() at legacy_attach+0x19 device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a nexus_attach() at nexus_attach+0x68 device_attach() at device_attach+0x69 bus_generic_new_pass() at bus_generic_new_pass+0xd6 bus_set_pass() at bus_set_pass+0x7a configure() at configure+0xa mi_startup() at mi_startup+0x59 btext() at btext+0x2c db> reboot That panic is 100% repeatable -- every time I try booting with ACPI disabled, I get exactly the same panic. So -- what can I do about it? I'll gladly provide more information of course. Ondra From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 1 05:36:12 2010 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 0C79F1065768 for ; Wed, 1 Dec 2010 05:36:12 +0000 (UTC) (envelope-from kevlo@FreeBSD.org) Received: from ns.kevlo.org (kevlo.org [220.128.136.52]) by mx1.freebsd.org (Postfix) with ESMTP id 943FD8FC18 for ; Wed, 1 Dec 2010 05:36:11 +0000 (UTC) Received: from [127.0.0.1] (kevlo@kevlo.org [220.128.136.52]) by ns.kevlo.org (8.14.3/8.14.3) with ESMTP id oB15NrPt011636; Wed, 1 Dec 2010 13:23:54 +0800 (CST) From: Kevin Lo To: Bakul Shah In-Reply-To: <20101129221648.159C45B18@mail.bitblocks.com> References: <86r5e3zye4.fsf@pluton.xbsd.name> <4CF40F8F.30303@feral.com> <20101129221648.159C45B18@mail.bitblocks.com> Content-Type: text/plain; charset="UTF-8" Date: Wed, 01 Dec 2010 13:23:51 +0800 Message-ID: <1291181031.2098.5.camel@monet> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@FreeBSD.org, Matthew Jacob Subject: Re: find(1): Is this a bug or not? 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, 01 Dec 2010 05:36:12 -0000 Bakul Shah wrote: > On Mon, 29 Nov 2010 12:39:43 PST Matthew Jacob wrote: > > can you report out the actual command line you're using and what release > > it's from? > > > > On 11/29/2010 12:08 PM, Denise H. G. wrote: > > > Hi, > > > > > > I found that, while searching for empty directories, find(1) will not > > > continue if it encounters a dir it can't enter (e.g. no privilege). I > > > don't know if it's so designed... I've checked NetBSD and OpenBSD's > > > implementations (almost identical to that of FreeBSD's). And they behave > > > the same way as FreeBSD's find(1) does under the circumstance. > > > > > > I'm wondering if this is a bug or not. > > This looks like a long standing bug: > > % mkdir -p a/{b,c}/d/e/f > % find a -empty > % chmod 000 a/b/d/ef > % find a -empty > > The fix: > > % cd /usr/src/usr.bin/find > % svn diff > Index: function.c > =================================================================== > --- function.c (revision 212707) > +++ function.c (working copy) > @@ -560,7 +560,7 @@ > empty = 1; > dir = opendir(entry->fts_accpath); > if (dir == NULL) > - err(1, "%s", entry->fts_accpath); > + return 0; > for (dp = readdir(dir); dp; dp = readdir(dir)) > if (dp->d_name[0] != '.' || > (dp->d_name[1] != '\0' && > Your patch looks good to me. I'll commit it in a few days if there's no objection. Kevin From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 1 13:22:02 2010 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 85212106566B; Wed, 1 Dec 2010 13:22:02 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 41D2E8FC17; Wed, 1 Dec 2010 13:22:02 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id C029446B3B; Wed, 1 Dec 2010 08:22:01 -0500 (EST) Received: from jhbbsd.localnet (smtp.hudson-trading.com [209.249.190.9]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 938A58A009; Wed, 1 Dec 2010 08:22:00 -0500 (EST) From: John Baldwin To: freebsd-hackers@freebsd.org Date: Wed, 1 Dec 2010 08:17:16 -0500 User-Agent: KMail/1.13.5 (FreeBSD/7.3-CBSD-20101102; KDE/4.4.5; amd64; ; ) References: In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <201012010817.17120.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (bigwig.baldwin.cx); Wed, 01 Dec 2010 08:22:00 -0500 (EST) X-Virus-Scanned: clamav-milter 0.96.3 at bigwig.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-1.9 required=4.2 tests=BAYES_00 autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on bigwig.baldwin.cx Cc: =?utf-8?q?Ond=C5=99ej_Majerech?= , FreeBSD Mailing List Subject: Re: 8.1-RELEASE hangs on reboot 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, 01 Dec 2010 13:22:02 -0000 On Tuesday, November 30, 2010 8:23:19 pm Ond=C5=99ej Majerech wrote: > Hello, >=20 > my 8.1-R system has just started hanging on reboot. Specifically after > I svn up'd my source and updated from 8.1-R-p1 to -p2. >=20 > Some kind of hang occurs on every reboot attempt. Usually it hangs at > the "Rebooting..." message, but sometimes the thing just locks up > before it even syncs disks. shutdown -p now seems to shutdown the > system successfully each time. >=20 > So I booted into single-user mode, executed "reboot" and during the > "Syncing disks" I pressed Ctrl-Alt-Escape to break into the debugger. > There I single-stepped with the "s" command until the thing simply > stopped doing anything. (Even if I pressed NumLock, the LED on the > keyboard wouldn't turn off.) >=20 > The screen content at the moment of hang is (dutifully typed over as > the thing is dead and I don't have a serial cable): >=20 > [thread pid 12 tid 100017 ] > Stopped at sckbdevent+0x5f: call _mtx_unlock_flags > db> > [thread pid 12 tid 100017 ] > Stopped at _mtx_unlock_flags: pushq %rbp > db> > [thread pid 12 tid 100017 ] > Stopped at _mtx_unlock_flags+0x1: movq %rsp,%rbp > db> > [thread pid 12 tid 100017 ] > Stopped at _mtx_unloock_flags+0x4: subq $0x20,%rsp > db> > [thread pid 12 tid 100017 ] > Stopped at _mtx_unlock_flags+0x8: movq %rbx,(%rsp) > db> > [thread pid 12 tid 100017 ] > Stopped at _mtx_unlock_flags+0xc: movq %r12,0x8(%rsp) > db> > [thread pid 12 pid 100017 ] > Stopped at _mtx_unlock_flags+0x11: movq %rdi,%rbx > db> > [thread pid 12 pid 100017 ] > Stopped at _mtx_unlock_flags+0x14: movq %r13,0x10(%rsp) > db> > E >=20 > Including that "E" at the end. No good ideas here, though I think we just turned off PSL_T by accident so it ran for a while before hanging after this. 'E' must be the start of a message on the console. > As I said, it's 8.1-RELEASE-p2; it's on AMD64. I'm using custom kernel > which only differs from GENERIC by addition of the debugging options: >=20 > options INVARIANTS > options INVARIANT_SUPPORT > options WITNESS > options DEBUG_LOCKS > options DEBUG_VFS_LOCKS > options DIAGNOSTIC >=20 > I tried rebooting with ACPI disabled, but the thing paniced on boot with >=20 > panic: Duplicate free of item 0xffffff00025e0000 from zone > 0xffffff00bfdcc2a0(1024) >=20 > cpuid =3D 0 > KDB: enter: panic > [thread pid 0 tid 100000 ] > Stopped at kdb_enter+0x3d: movq $0, 0x6b2d20(%rip) > db> bt > Tracing pid 0 tid 100000 td 0xffffffff80c63fc0 > kdb_enter() at kdb_enter+0x3d > panic() at panic+0x17b > uma_dbg_free() at uma_dbg_free+0x171 > uma_zfree_arg() at uma_zfree_arg+0x68 > free() at free+0xcd > device_set_driver() at device_set_driver+0x7c > device_attach() at device_attach+0x19b > bus_generic_attach() at bus_generic_attach+0x1a > pci_attach() at pci_attach+0xf1 The free() should be the free to free the softc but that implies it had a=20 previous driver and softc. Maybe add some debug info to devclass_set_drive= r()=20 to print out the previous driver's name (and maybe the value of the pointer) before free'ing the softc. You could use gdb on the kernel.debug and the=20 pointer value to figure out exactly which driver was the previous one and l= ook=20 to see if it's probe routine does something funky with the softc pointer. =2D-=20 John Baldwin From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 1 19:39:43 2010 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 CF186106566C for ; Wed, 1 Dec 2010 19:39:43 +0000 (UTC) (envelope-from darmawan_salihun@yahoo.com) Received: from web76808.mail.sg1.yahoo.com (web76808.mail.sg1.yahoo.com [124.108.123.112]) by mx1.freebsd.org (Postfix) with SMTP id 44B578FC14 for ; Wed, 1 Dec 2010 19:39:42 +0000 (UTC) Received: (qmail 5904 invoked by uid 60001); 1 Dec 2010 19:39:41 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1291232381; bh=HRpFT10VRLPt7ZG3EKUEzYMR3h2q1uTha/eC2rTrjPA=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=JI3vE8MHuSXR2oufraGVavnTwt9OJbFT0Nk90c7ejUMQw6gNh2oSwJnbU9K5VVZjY2kbnU7iOMM8jv1O6RrPn3Zct+vFQC3RGOCsOPPjnQy5zjd/GZa2a2Re6/btQkPgERzWmDVL3hjEYnjjMmJp/DcgqjN1RQLHg+Ep9fWYJ9c= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=vOg1WMDR7kEKlAb1O7vb6tBupiYtJS46ZdgCg85WgCR7tw8ZITlHZv5mtXdFkcDQ7yt2YOpB4/KPs676huPGFkbQywhOCi24tf4QKdeHtxBa+bZ2F81OodMPiOrnkKlzbgECnIdeDag+Ii4ekmmJvZL/C6lbOlqSZfpLyi9r/Yk=; Message-ID: <846415.2704.qm@web76808.mail.sg1.yahoo.com> X-YMail-OSG: .SWT5O8VM1n8.yIRbWOzlFxIGfZOQaLeT9F8.5t84cmr2yt CcqzMVIHQW9VqQzy5c83GMrUU4Emy9mEqEz4tVinqup9Scb6EUyTj.Dr9JxY TH.n0aw2.OkfQ5ye7Fx6..sRfDSmtIj_YWa4.l49HbOompiMCjHI758WDadD Hse0SDqvxyDgwUkcAuMYBNn5OAmwCIT1ONoW.XxVwdGUNQEAc_LcDa0100wz .tPa6Kx.nobOmfyE81cdzTXP_qi0XlST6O8nEFwobVnNr.2hmy_F5Nc3EzTj 2mFY32ZZgSZDoVyeNSUMdHZmuKWeZZdGEVE3c2clynCNECCR130OPrmMyKDj Scgkexk6iFTjVTMugbA-- Received: from [114.59.203.215] by web76808.mail.sg1.yahoo.com via HTTP; Thu, 02 Dec 2010 03:39:41 SGT X-Mailer: YahooMailClassic/11.4.20 YahooMailWebService/0.8.107.285259 Date: Thu, 2 Dec 2010 03:39:41 +0800 (SGT) From: Darmawan Salihun To: freebsd-hackers@freebsd.org In-Reply-To: <201011300938.53006.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: How to debug BTX loader? 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, 01 Dec 2010 19:39:44 -0000 Hi John, =0A=0A--- On Tue, 11/30/10, John Baldwin wrote:= =0A=0A> From: John Baldwin =0A> Subject: Re: How to debug = BTX loader?=0A> To: freebsd-hackers@freebsd.org=0A> Cc: "Darmawan Salihun" = =0A> Date: Tuesday, November 30, 2010, 9:38 AM= =0A> On Monday, November 29, 2010 1:01:27=0A> pm Darmawan Salihun wrote:=0A= > > Hi guys, =0A> > =0A> > I'm currently working on a BIOS for a custom Sin= gle=0A> Board Computer (SBC). =0A> > I have the required BIOS source code a= nd tools at=0A> hand. =0A> > However, the boot process always stuck in the = BTX=0A> loader =0A> > (the infamous "ACPI autoload failed") when I booted= =0A> out of USB stick =0A> > (with the FreeBSD 8.1 USB stick image). =0A> >= =0A> > I could get the system to boot into FreeBSD 8.1 =0A> > (by keeping = the CDROM tray open and close it when the=0A> board looks for =0A> > boot d= evice, otherwise BTX will reboot instantly). =0A> =0A> Are you getting an a= ctual BTX error message or a=0A> freeze?=A0 =0A=0ABooting from CDROM connec= ted to via USB to CDROM converter =0Awould always failed (triple fault, the= n instant reboot), =0Aunless I left the CDROM tray open and then close it w= hen the =0ABIOS displays "no boot device" error message. =0AIn the latter c= ase, FreeBSD 8.0 and 8.1 would boot just fine. =0A=0ABooting from CF-card c= onnected via USB CF card adapter =0Awith pfsense 1.2.3 would freeze the sys= tem when BTX executes.=0AIt freezes with a register dump of the BTX. I'll p= ost the =0Aregisters dump shortly.=0A=0A=0AAnyway, the system I'm working w= ith is an SBC based on the =0AAMD Geode LX800.=0A=0A> BTX is just a =0A> mi= nikernel written all in assembly.=A0 It doesn't handle=0A> loading the kern= el, =0A> etc.=A0 All that work is done by the /boot/loader=0A> program (whi= ch is written in =0A> C).=A0 You can find all the source to the boot code i= n=0A> src/sys/boot.=A0 The BTX =0A> kernel is in src/sys/boot/i386/btx/btx/= .=0A> =0A=0AOk. Thanks. =0A=0A> However, to debug this further we would nee= d more info such=0A> as what exactly =0A> you are seeing (a hang, a BTX fau= lt with a register dump,=0A> etc.).=0A> =0A=0AI'll post the error message i= n various boot device settings shortly. =0A=0A=0AThanks, =0A=0ADarmawan=0A= =0A=0A=0A From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 1 21:09:45 2010 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 C407F1065679 for ; Wed, 1 Dec 2010 21:09:45 +0000 (UTC) (envelope-from darmawan_salihun@yahoo.com) Received: from web76807.mail.sg1.yahoo.com (web76807.mail.sg1.yahoo.com [124.108.123.111]) by mx1.freebsd.org (Postfix) with SMTP id 8D3158FC22 for ; Wed, 1 Dec 2010 21:09:44 +0000 (UTC) Received: (qmail 57398 invoked by uid 60001); 1 Dec 2010 21:09:43 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1291237782; bh=TTbo+MBTmjAbnu/5pazZMBgK27okNak/69fdHL6kRUE=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=0Vk7p7LgG/3//YwnVe5bSDybA9tORRAMPvujbM4JLNJYSxgqBR/6rEuWkiXn2ZdLSSAyPIGz8S2LrxqmeaxSdM2MABbu+PcQNmFtYBQWKhkBpxn2STXY2RddMTn/tdJqkInCmW4ZKdf2fEt33abk2mnt5GQYaruZAOFoXLLg9tE= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=4KrlPbpxjEMsfwK6WpEvoyfvE7NS1BRUn/YbK3YS/jbCYSLUO2jTJ7q9hYT/JbaN76sMGbBZNb8ZCVzD8xjRdiNKeVYxCiIbkqB3fMo9HVjEOZWrq3fkrZVeUFJs0V9tW6IHIHWe2GiW/k5DeQcHYLuesy1fgSINjf7Rb4NDVks=; Message-ID: <948728.57388.qm@web76807.mail.sg1.yahoo.com> X-YMail-OSG: BvA3K34VM1mzTCbAtIvqfyLcYlFVGbgCRWgBtWhAsgiCrDX zWEoBBRM4pn_qS49TqAC6msyvbyTNvf0wauzy2.B4zm7XWNixhT_wZXxfjMP ZuYM4pgfpgbHdZrOvm_k4Kl2vflRsMGHHJcAEYFHc2QixCAbhmQnlwOnaJtu FsIVvCK1GeYk7J9rPWCcWaI4iCGySg4DbY8lZfdzZqSUxfQb.pkvNtuUL.G4 n3E_sWPxqehBSLVF4nGSTJuT3vlhd5DYazThPROVPYjmtL1.glu0jcwGFGEx 0V9MbYgqddVgWdXggoHIbTLiy_UY53TPqSIHU5D.tiJbXFXyA.eahXY9Msz_ OLEAwqUtxXxcyOR5f1A-- Received: from [114.59.203.215] by web76807.mail.sg1.yahoo.com via HTTP; Thu, 02 Dec 2010 05:09:42 SGT X-Mailer: YahooMailClassic/11.4.20 YahooMailWebService/0.8.107.285259 Date: Thu, 2 Dec 2010 05:09:42 +0800 (SGT) From: Darmawan Salihun To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="0-1956726521-1291237782=:57388" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: How to debug BTX loader? 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, 01 Dec 2010 21:09:45 -0000 --0-1956726521-1291237782=:57388 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hi John, =0A=0A--- On Tue, 11/30/10, John Baldwin wrote:= =0A=0A> From: John Baldwin =0A> Subject: Re: How to debug = BTX loader?=0A> To: freebsd-hackers@freebsd.org=0A> Cc: "Darmawan Salihun" = =0A> Date: Tuesday, November 30, 2010, 9:38 AM= =0A> On Monday, November 29, 2010 1:01:27=0A> pm Darmawan Salihun wrote:=0A= > > Hi guys, =0A> > =0A> > I'm currently working on a BIOS for a custom Sin= gle=0A> Board Computer (SBC). =0A> > I have the required BIOS source code a= nd tools at=0A> hand. =0A> > However, the boot process always stuck in the = BTX=0A> loader =0A> > (the infamous "ACPI autoload failed") when I booted= =0A> out of USB stick =0A> > (with the FreeBSD 8.1 USB stick image). =0A> >= =0A> > I could get the system to boot into FreeBSD 8.1 =0A> > (by keeping = the CDROM tray open and close it when the=0A> board looks for =0A> > boot d= evice, otherwise BTX will reboot instantly). =0A> =0A> Are you getting an a= ctual BTX error message or a=0A> freeze?=A0 BTX is just a =0A> minikernel w= ritten all in assembly.=A0 It doesn't handle=0A> loading the kernel, =0A> e= tc.=A0 All that work is done by the /boot/loader=0A> program (which is writ= ten in =0A> C).=A0 You can find all the source to the boot code in=0A> src/= sys/boot.=A0 The BTX =0A> kernel is in src/sys/boot/i386/btx/btx/.=0A> =0A>= However, to debug this further we would need more info such=0A> as what ex= actly =0A> you are seeing (a hang, a BTX fault with a register dump,=0A> et= c.).=0A=0AOne of the BTX fault shows the register dump in the attachment. = =0AI hope this could help. Anyway, If I were to try to interpret =0Asuch re= gister dump, where should I start? I understand x86/x86_64 =0Aassembly pret= ty much, but I'm not quite well versed with the =0AFreeBSD code using it. = =0A=0AThanks, =0A=0ADarmawan=0A=0A> =0A> -- =0A> John Baldwin=0A>=0A=0A=0A = --0-1956726521-1291237782=:57388-- From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 1 21:55:40 2010 Return-Path: Delivered-To: hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F3BB01065675 for ; Wed, 1 Dec 2010 21:55:39 +0000 (UTC) (envelope-from peterjeremy@acm.org) Received: from fallbackmx08.syd.optusnet.com.au (fallbackmx08.syd.optusnet.com.au [211.29.132.10]) by mx1.freebsd.org (Postfix) with ESMTP id 84A9A8FC16 for ; Wed, 1 Dec 2010 21:55:39 +0000 (UTC) Received: from mail13.syd.optusnet.com.au (mail13.syd.optusnet.com.au [211.29.132.194]) by fallbackmx08.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id oB1J1Dpm030692 for ; Thu, 2 Dec 2010 06:01:13 +1100 Received: from server.vk2pj.dyndns.org (c220-239-116-103.belrs4.nsw.optusnet.com.au [220.239.116.103]) by mail13.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id oB1J1AK0011250 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 2 Dec 2010 06:01:11 +1100 X-Bogosity: Ham, spamicity=0.000000 Received: from server.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by server.vk2pj.dyndns.org (8.14.4/8.14.4) with ESMTP id oB1J19f1006811; Thu, 2 Dec 2010 06:01:09 +1100 (EST) (envelope-from peter@server.vk2pj.dyndns.org) Received: (from peter@localhost) by server.vk2pj.dyndns.org (8.14.4/8.14.4/Submit) id oB1J19e4006810; Thu, 2 Dec 2010 06:01:09 +1100 (EST) (envelope-from peter) Date: Thu, 2 Dec 2010 06:01:09 +1100 From: Peter Jeremy To: dheeraj suthar Message-ID: <20101201190109.GC6220@server.vk2pj.dyndns.org> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="t0UkRYy7tHLRMCai" Content-Disposition: inline In-Reply-To: X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.20 (2009-06-14) Cc: hackers@FreeBSD.org Subject: Re: Greetings 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, 01 Dec 2010 21:55:40 -0000 --t0UkRYy7tHLRMCai Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Dheeraj, On 2010-Dec-01 04:19:46 +0530, dheeraj suthar = wrote: >Kindly do guide me(as I am new here.) and involve me in some >programming project related to above mentioned fields. Also I am >currently going through project lists on FreeBSD list and will apply >soon to which suits my skill set. I suggest you have a read through http://www.freebsd.org/projects/ideas/ to find something that sounds interesting to you and then contact the relevant person. If no contact is shown then ask about it here. --=20 Peter Jeremy --t0UkRYy7tHLRMCai Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (FreeBSD) iEYEARECAAYFAkz2m3UACgkQ/opHv/APuId4ogCfWej9UM0GwEYZRMhEOocmyKSO A/0AniFoDtGR1up07q7eirNeNBC1xefl =FjGl -----END PGP SIGNATURE----- --t0UkRYy7tHLRMCai-- From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 2 02:38:12 2010 Return-Path: Delivered-To: hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 03884106566C for ; Thu, 2 Dec 2010 02:38:12 +0000 (UTC) (envelope-from erik@cederstrand.dk) Received: from csmtp2.one.com (csmtp2.one.com [91.198.169.22]) by mx1.freebsd.org (Postfix) with ESMTP id 875058FC0C for ; Thu, 2 Dec 2010 02:38:11 +0000 (UTC) Received: from macfeast.lan (0x573b9942.cpe.ge-1-2-0-1101.ronqu1.customer.tele.dk [87.59.153.66]) by csmtp2.one.com (Postfix) with ESMTPA id A98763EFD742; Thu, 2 Dec 2010 02:38:09 +0000 (UTC) Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: multipart/signed; boundary=Apple-Mail-389--582323182; protocol="application/pkcs7-signature"; micalg=sha1 From: Erik Cederstrand In-Reply-To: <93FA0AC7-704D-4EB4-A163-FDD8AC915630@cederstrand.dk> Date: Thu, 2 Dec 2010 03:38:09 +0100 Message-Id: <2ABD292E-E172-4B43-A8A3-AAB25C56EE8B@cederstrand.dk> References: <93FA0AC7-704D-4EB4-A163-FDD8AC915630@cederstrand.dk> To: Erik Cederstrand X-Mailer: Apple Mail (2.1082) X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: FreeBSD Hackers Subject: Re: Deterministic builds, part 2 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: Thu, 02 Dec 2010 02:38:12 -0000 --Apple-Mail-389--582323182 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Den 25/11/2010 kl. 13.08 skrev Erik Cederstrand: > rodata.str1.4: > ------------------ > Some *.o files (all?) contain the path to the corresponding source = file: >=20 > Contents of section .rodata.str1.4: > 0000 2f757372 2f686f6d 652f6572 696b2f66 /usr/home/erik/f > 0010 72656562 73642f68 6561642f 7372632f reebsd/head1/src/ > 0020 6c69622f 6c696273 74616e64 2f6f7065 lib/libstand/ope > 0030 6e2e6300 n.c. I've got the deterministic build working with different OBJDIRs now, and = I'm trying different SRCDIR locations. This means I have to remove the = above file path from the .rodata.str1.4 section. How did it get in there, and how do I remove it again? Thanks, Erik= --Apple-Mail-389--582323182-- From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 2 03:14:15 2010 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 11F8F1065698 for ; Thu, 2 Dec 2010 03:14:15 +0000 (UTC) (envelope-from rysto32@gmail.com) Received: from mail-ew0-f54.google.com (mail-ew0-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id 864498FC17 for ; Thu, 2 Dec 2010 03:14:14 +0000 (UTC) Received: by ewy24 with SMTP id 24so4170429ewy.13 for ; Wed, 01 Dec 2010 19:14:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=YAFZP+Vx6kp53egOH3MTmAJcZ0UGQvu/PxMQTNEaPdU=; b=vCFTp1RCJdtVljYdhDIqIjHTpqtfvwo0ZEEMbTK3JRwFNa6VjOlK4O9aH5HDtA7Tg0 ZtFe6x3U3VmjlmjJ0HGIHnO5jpeNzFBrNxgOByd4qbN0SlWAtrHPAXy5kn3r+or0xHoe TrID9Dxgt2obM0Tjfs1hhszAYZ1bx3E2XIUN4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=cRgtwmoUL3KhtB2KsRCMHAvv0HdUImEzEaNjzWjmXTVKiVjR/Ts6UZ0GQUf2d3vIp2 pBjuER1rlOrYVy/vfVKk+es5QqdAoNMvSIh8P0vuiZhKeBOZ3isxrD5TtyV17OoyeFYG XZQ953DAImA77TA9ZfukJAGIkeY6A26o9ml7s= MIME-Version: 1.0 Received: by 10.213.108.71 with SMTP id e7mr5340433ebp.74.1291257868031; Wed, 01 Dec 2010 18:44:28 -0800 (PST) Received: by 10.213.14.138 with HTTP; Wed, 1 Dec 2010 18:44:28 -0800 (PST) In-Reply-To: <2ABD292E-E172-4B43-A8A3-AAB25C56EE8B@cederstrand.dk> References: <93FA0AC7-704D-4EB4-A163-FDD8AC915630@cederstrand.dk> <2ABD292E-E172-4B43-A8A3-AAB25C56EE8B@cederstrand.dk> Date: Wed, 1 Dec 2010 21:44:28 -0500 Message-ID: From: Ryan Stone To: Erik Cederstrand Content-Type: text/plain; charset=ISO-8859-1 Cc: FreeBSD Hackers Subject: Re: Deterministic builds, part 2 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: Thu, 02 Dec 2010 03:14:15 -0000 Does the C file use the __FILE__ macro? From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 2 03:52:17 2010 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0BE5F106566B for ; Thu, 2 Dec 2010 03:52:17 +0000 (UTC) (envelope-from erik@cederstrand.dk) Received: from csmtp3.one.com (csmtp3.one.com [91.198.169.23]) by mx1.freebsd.org (Postfix) with ESMTP id 950D88FC12 for ; Thu, 2 Dec 2010 03:52:16 +0000 (UTC) Received: from macfeast.lan (0x573b9942.cpe.ge-1-2-0-1101.ronqu1.customer.tele.dk [87.59.153.66]) by csmtp3.one.com (Postfix) with ESMTP id 4F97F2406379; Thu, 2 Dec 2010 03:52:14 +0000 (UTC) Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: multipart/signed; boundary=Apple-Mail-398--577878323; protocol="application/pkcs7-signature"; micalg=sha1 From: Erik Cederstrand In-Reply-To: Date: Thu, 2 Dec 2010 04:52:14 +0100 Message-Id: References: <93FA0AC7-704D-4EB4-A163-FDD8AC915630@cederstrand.dk> <2ABD292E-E172-4B43-A8A3-AAB25C56EE8B@cederstrand.dk> To: Ryan Stone X-Mailer: Apple Mail (2.1082) X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: FreeBSD Hackers Subject: Re: Deterministic builds, part 2 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: Thu, 02 Dec 2010 03:52:17 -0000 --Apple-Mail-398--577878323 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Den 02/12/2010 kl. 03.44 skrev Ryan Stone: > Does the C file use the __FILE__ macro? There are a bit over 1000 files with checksum mismatches, but they seem = to differ in the same way. I've picked an example: /usr/lib/libbsnmp.a It contains the string = "/usr/home/erik/freebsd/head1/src/lib/libbsnmp/libbsnmp/../../../contrib/b= snmp/lib/asn1.c" in the section .rodata.str1.8 of the archive member = asn1.o. asn1.o was created during buildworld with this command: cc -O2 -pipe -DSTRIP_FBSDID = -I/usr/home/erik/freebsd/head1/src/lib/libbsnmp/libbsnmp/../../../contrib/= bsnmp/lib -DHAVE_ERR_H -DHAVE_GETADDRINFO -DHAVE_STRLCPY -DHAVE_STDINT_H = -DHAVE_INTTYPES_H -DQUADFMT=3D'"llu"' -DQUADXFMT=3D'"llx"' -std=3Dgnu99 = -fstack-protector -Wsystem-headers -Wall -Wno-format-y2k -W = -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes = -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch = -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline = -Wnested-externs -Wredundant-decls -Wold-style-definition = -Wno-pointer-sign -c = /usr/home/erik/freebsd/head1/src/lib/libbsnmp/libbsnmp/../../../contrib/bs= nmp/lib/asn1.c I don't see __FILE__ anywhere in asn1.c or in dependent files. Erik= --Apple-Mail-398--577878323-- From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 2 04:01:11 2010 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 596791065670 for ; Thu, 2 Dec 2010 04:01:11 +0000 (UTC) (envelope-from rysto32@gmail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id D85158FC08 for ; Thu, 2 Dec 2010 04:01:10 +0000 (UTC) Received: by eyb7 with SMTP id 7so4220999eyb.13 for ; Wed, 01 Dec 2010 20:01:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=DdQmvWiNEJ+H4W3m8M9EyllkIQcNbVY4LAOi4sGeWP0=; b=kFR+2Dm+WQNHz96T8YG8CEzvlUdnikCvKsAlTzaIwpqEnr3aFo5Z+4Io5RhoLkVJyQ jo1QpuwdfkdrTw/oVZgOS1wy4hW1Cfa4HxlfrIQBMUSR9x+Fk6lbugbTkqlgtkKj9uqN Fv52jIJU/y9oOc4slcBniab0HKEKxexgj9egI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=lGXCGfwTciBI8FSyBEVgEjdNmSfy9sl/vipsFY46eR5P6ALi8wf5vzXhVSIYI9xtvk f+kSCIBJ3+IiiFJVB/nGOPLWchebQdPtkgU/2lef/rW+OyllUD232+zUNAcVxM2//0GN oIPs9IeVPDlTZ4BJnzSFVtd812cNwZ/bJZ5yU= MIME-Version: 1.0 Received: by 10.213.27.68 with SMTP id h4mr216695ebc.87.1291262469631; Wed, 01 Dec 2010 20:01:09 -0800 (PST) Received: by 10.213.14.138 with HTTP; Wed, 1 Dec 2010 20:01:09 -0800 (PST) In-Reply-To: References: <93FA0AC7-704D-4EB4-A163-FDD8AC915630@cederstrand.dk> <2ABD292E-E172-4B43-A8A3-AAB25C56EE8B@cederstrand.dk> Date: Wed, 1 Dec 2010 23:01:09 -0500 Message-ID: From: Ryan Stone To: Erik Cederstrand Content-Type: text/plain; charset=ISO-8859-1 Cc: FreeBSD Hackers Subject: Re: Deterministic builds, part 2 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: Thu, 02 Dec 2010 04:01:11 -0000 asn1.c uses the assert macro, while I believe uses __FILE__. From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 2 04:10:34 2010 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 2B1CF10656A3; Thu, 2 Dec 2010 04:10:34 +0000 (UTC) (envelope-from truckman@FreeBSD.org) Received: from gw.catspoiler.org (adsl-75-1-14-242.dsl.scrm01.sbcglobal.net [75.1.14.242]) by mx1.freebsd.org (Postfix) with ESMTP id D8A608FC0C; Thu, 2 Dec 2010 04:10:33 +0000 (UTC) Received: from FreeBSD.org (mousie.catspoiler.org [192.168.101.2]) by gw.catspoiler.org (8.13.3/8.13.3) with ESMTP id oB21X12M064624; Wed, 1 Dec 2010 17:33:05 -0800 (PST) (envelope-from truckman@FreeBSD.org) Message-Id: <201012020133.oB21X12M064624@gw.catspoiler.org> Date: Wed, 1 Dec 2010 17:33:01 -0800 (PST) From: Don Lewis To: oxyd.oxyd@gmail.com In-Reply-To: MIME-Version: 1.0 Content-Type: TEXT/plain; charset=iso-8859-2 Content-Transfer-Encoding: 8BIT Cc: freebsd-hackers@FreeBSD.org, freebsd-questions@FreeBSD.org Subject: Re: 8.1-RELEASE hangs on reboot 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: Thu, 02 Dec 2010 04:10:34 -0000 On 1 Dec, Ondøej Majerech wrote: > Hello, > > my 8.1-R system has just started hanging on reboot. Specifically after > I svn up'd my source and updated from 8.1-R-p1 to -p2. > > Some kind of hang occurs on every reboot attempt. Usually it hangs at > the "Rebooting..." message, but sometimes the thing just locks up > before it even syncs disks. shutdown -p now seems to shutdown the > system successfully each time. One of my systems running 8.1-STABLE started reliably(?) hanging at the "Rebooting..." step whenever try to reboot it. It's been doing this for the last month or so. I haven't seen the earlier hang. 9.0-CURRENT on the same hardware doesn't experience this problem. I haven't had time to try to debug this, so I've just been using the reset switch when it hangs. From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 2 04:41:52 2010 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 EC252106566C; Thu, 2 Dec 2010 04:41:52 +0000 (UTC) (envelope-from g.veniamin@googlemail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id 4424C8FC23; Thu, 2 Dec 2010 04:41:51 +0000 (UTC) Received: by eyb7 with SMTP id 7so4230517eyb.13 for ; Wed, 01 Dec 2010 20:41:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=JxNcm/T8rIHK6IamPbMT2c5gl9PT0ikC7MG3+I+0mz8=; b=O/LuaBOn9RPobgncdrQb8QKkQxQNKwBsUZAZcWVidokLeUjFO2iQWMyurdljvTfmck SL41rgQn8h1I2MK/f1MNkyTEDjocCNecSi0UY8joTAWuwmQBZ8h4mvvAtE3YGWqfTrie YheiTchOa6ooFDlEwVUpkbQZMizV5S/jUw7hc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=ifN5kzrgRUrh/kr6WGoTyyUVzhZNBMpGb3aUQHbRXyS8+cs3WIRnPr/wf7WgXRsoq5 iIcIUwPthcGA24kO4gnwTu5rNIkGceoe41ZMii/k+DnoY/hQ8XUggxeMyFRS+wZjKwLz A76XsVUCqsWaAXViAQkAA+yF1CmNdoIozs4rQ= Received: by 10.213.35.19 with SMTP id n19mr5194109ebd.65.1291264910852; Wed, 01 Dec 2010 20:41:50 -0800 (PST) Received: from zlobook.local (zlonet.ru [94.78.205.21]) by mx.google.com with ESMTPS id v56sm91406eeh.8.2010.12.01.20.41.48 (version=SSLv3 cipher=RC4-MD5); Wed, 01 Dec 2010 20:41:49 -0800 (PST) Message-ID: <4CF7238A.5050202@googlemail.com> Date: Thu, 02 Dec 2010 11:41:46 +0700 From: Veniamin Gvozdikov User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; ru; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6 MIME-Version: 1.0 To: freebsd-hackers@freebsd.org, freebsd-current@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: Subject: wlan problem. auto change channel 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: Thu, 02 Dec 2010 04:41:53 -0000 Hi everybody! I have problem with my access point with freebsd after update of 7.3 to 8.1. I can't connect to AP. AP has auto change channel ( http://fbsd.zlonet.ru/temp/wifi-problem.mov ). In the ifconfig not changes. How to fix it? FreeBSD server.zlonet.ru 8.1-RELEASE-p2 FreeBSD 8.1-RELEASE-p2 #4: Wed Dec 1 17:39:53 KRAT 2010 admin@server.zlonet.ru:/mnt/freebsd/obj/mnt/freebsd/src/8/src/sys/zlonet_r81 i386 kernel device wlan # 802.11 support options IEEE80211_DEBUG # enable debug msgs options IEEE80211_AMPDU_AGE # age frames in AMPDU reorder q's options IEEE80211_SUPPORT_MESH # enable 802.11s draft support device wlan_wep # 802.11 WEP support device wlan_ccmp # 802.11 CCMP support device wlan_tkip # 802.11 TKIP support device wlan_amrr # AMRR transmit rate control algorithm device wlan_xauth device ath # Atheros pci/cardbus NIC's device ath_hal # pci/cardbus chip support options AH_SUPPORT_AR5416 # enable AR5416 tx/rx descriptors device ath_rate_sample # SampleRate tx rate control for ath rc.conf ifconfig_rl0="up" wlans_ath0="wlan0" create_args_wlan0="wlanmode ap mediaopt hostap mode 11g ssid zlonet.ru channel 6 country RU" ifconfig_wlan0="up" cloned_interfaces="bridge0" ifconfig_bridge0="inet 192.168.3.100 netmask 255.255.255.0 addm rl0 addm wlan0 up" hostapd_enable="YES" server# cat /etc/hostapd.conf interface=wlan0 macaddr_acl=0 #driver=bsd debug=1 ctrl_interface=/var/run/hostapd ctrl_interface_group=wheel ssid=zlonet.ru hw_mode=g channel=6 #auth_algs=2 wpa=2 wpa_passphrase=megapassword wpa_key_mgmt=WPA-PSK wpa_pairwise=CCMP ath0: flags=8843 metric 0 mtu 2290 ether 00:14:78:ee:d8:c1 media: IEEE 802.11 Wireless Ethernet autoselect mode 11g status: running rl0: flags=8943 metric 0 mtu 1500 options=8 ether 00:e0:4c:7e:df:29 media: Ethernet autoselect (100baseTX ) status: active bridge0: flags=8843 metric 0 mtu 1500 ether 16:69:b9:6d:3e:73 inet 192.168.3.100 netmask 0xffffff00 broadcast 192.168.3.255 id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15 maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200 root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0 member: wlan0 flags=143 ifmaxaddr 0 port 11 priority 128 path cost 370370 member: rl0 flags=143 ifmaxaddr 0 port 4 priority 128 path cost 55 wlan0: flags=8943 metric 0 mtu 1500 ether 00:14:78:ee:d8:c1 media: IEEE 802.11 Wireless Ethernet autoselect mode 11g status: running ssid zlonet.ru channel 6 (2437 MHz 11g) bssid 00:14:78:ee:d8:c1 regdomain NONE country RU indoor ecm authmode WPA2/802.11i privacy MIXED deftxkey 2 AES-CCM 2:128-bit AES-CCM 3:128-bit txpower 30 scanvalid 60 protmode CTS wme burst dtimperiod 1 -dfs pciconf -lv ath0@pci0:0:8:0: class=0x020000 card=0x1052168c chip=0x001a168c rev=0x01 hdr=0x00 vendor = 'Atheros Communications Inc.' device = 'http://cr.am/framed.php?url=http%3A%2F%2Fwww.tp%2Dlink.com%2Fsupport%2Fdownload.asp&ref=driverguide (Atheros AR5005G)' class = network subclass = ethernet From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 2 10:08:15 2010 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 096971065675 for ; Thu, 2 Dec 2010 10:08:15 +0000 (UTC) (envelope-from erik@cederstrand.dk) Received: from csmtp1.one.com (csmtp1.one.com [195.47.247.21]) by mx1.freebsd.org (Postfix) with ESMTP id 91EC68FC19 for ; Thu, 2 Dec 2010 10:08:14 +0000 (UTC) Received: from macfeast.lan (0x573b9942.cpe.ge-1-2-0-1101.ronqu1.customer.tele.dk [87.59.153.66]) by csmtp1.one.com (Postfix) with ESMTP id 038B21BC01CCF; Thu, 2 Dec 2010 10:08:09 +0000 (UTC) Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: multipart/signed; boundary=Apple-Mail-414--555322686; protocol="application/pkcs7-signature"; micalg=sha1 From: Erik Cederstrand In-Reply-To: Date: Thu, 2 Dec 2010 11:08:09 +0100 Message-Id: References: <93FA0AC7-704D-4EB4-A163-FDD8AC915630@cederstrand.dk> <2ABD292E-E172-4B43-A8A3-AAB25C56EE8B@cederstrand.dk> To: Ryan Stone X-Mailer: Apple Mail (2.1082) X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: FreeBSD Hackers Subject: Re: Deterministic builds, part 2 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: Thu, 02 Dec 2010 10:08:15 -0000 --Apple-Mail-414--555322686 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hi Ryan, Den 02/12/2010 kl. 05.01 skrev Ryan Stone: > asn1.c uses the assert macro, while I believe uses __FILE__. Thanks for the help! asn1.c does indeed import src/include/assert.h, = which optionally uses __FILE__ if NDEBUG is not defined. I've tried = adding -DNDEBUG to my CFLAGS, but apart from a build error I'm = investigating now, this doesn't help with all cases. __FILE__ is used = liberally in at least src/sys/sys/. I wonder if I could hack __FILE__ to be a path relative to src/. That = would be a way to fix all the source file paths I see. Erik= --Apple-Mail-414--555322686-- From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 2 13:00:45 2010 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 B2FA6106566C; Thu, 2 Dec 2010 13:00:45 +0000 (UTC) (envelope-from joerg@britannica.bec.de) Received: from mo-p00-ob.rzone.de (mo-p00-ob.rzone.de [81.169.146.162]) by mx1.freebsd.org (Postfix) with ESMTP id 1618D8FC13; Thu, 2 Dec 2010 13:00:44 +0000 (UTC) X-RZG-AUTH: :JiIXek6mfvEEUpFQdo7Fj1/zg48CFjWjQv0cW+St/nW/afgnrylsiW2xcSp7omQ= X-RZG-CLASS-ID: mo00 Received: from britannica.bec.de (ip-109-45-37-174.web.vodafone.de [109.45.37.174]) by post.strato.de (fruni mo15) (RZmta 24.6) with (DHE-RSA-AES128-SHA encrypted) ESMTP id U00261mB2Bsb6i ; Thu, 2 Dec 2010 13:49:44 +0100 (MET) Received: by britannica.bec.de (sSMTP sendmail emulation); Thu, 02 Dec 2010 13:49:40 +0100 Date: Thu, 2 Dec 2010 13:49:40 +0100 From: Joerg Sonnenberger To: freebsd-hackers@freebsd.org, FreeBSD Hackers Message-ID: <20101202124940.GA29276@britannica.bec.de> Mail-Followup-To: freebsd-hackers@freebsd.org, FreeBSD Hackers References: <93FA0AC7-704D-4EB4-A163-FDD8AC915630@cederstrand.dk> <2ABD292E-E172-4B43-A8A3-AAB25C56EE8B@cederstrand.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Cc: Subject: Re: Deterministic builds, part 2 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: Thu, 02 Dec 2010 13:00:45 -0000 On Thu, Dec 02, 2010 at 11:08:09AM +0100, Erik Cederstrand wrote: > I wonder if I could hack __FILE__ to be a path relative to src/. That > would be a way to fix all the source file paths I see. I have a patch for that in NetBSD's gcc. Joerg From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 2 13:00:45 2010 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B2FA6106566C; Thu, 2 Dec 2010 13:00:45 +0000 (UTC) (envelope-from joerg@britannica.bec.de) Received: from mo-p00-ob.rzone.de (mo-p00-ob.rzone.de [81.169.146.162]) by mx1.freebsd.org (Postfix) with ESMTP id 1618D8FC13; Thu, 2 Dec 2010 13:00:44 +0000 (UTC) X-RZG-AUTH: :JiIXek6mfvEEUpFQdo7Fj1/zg48CFjWjQv0cW+St/nW/afgnrylsiW2xcSp7omQ= X-RZG-CLASS-ID: mo00 Received: from britannica.bec.de (ip-109-45-37-174.web.vodafone.de [109.45.37.174]) by post.strato.de (fruni mo15) (RZmta 24.6) with (DHE-RSA-AES128-SHA encrypted) ESMTP id U00261mB2Bsb6i ; Thu, 2 Dec 2010 13:49:44 +0100 (MET) Received: by britannica.bec.de (sSMTP sendmail emulation); Thu, 02 Dec 2010 13:49:40 +0100 Date: Thu, 2 Dec 2010 13:49:40 +0100 From: Joerg Sonnenberger To: freebsd-hackers@freebsd.org, FreeBSD Hackers Message-ID: <20101202124940.GA29276@britannica.bec.de> Mail-Followup-To: freebsd-hackers@freebsd.org, FreeBSD Hackers References: <93FA0AC7-704D-4EB4-A163-FDD8AC915630@cederstrand.dk> <2ABD292E-E172-4B43-A8A3-AAB25C56EE8B@cederstrand.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Cc: Subject: Re: Deterministic builds, part 2 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: Thu, 02 Dec 2010 13:00:45 -0000 On Thu, Dec 02, 2010 at 11:08:09AM +0100, Erik Cederstrand wrote: > I wonder if I could hack __FILE__ to be a path relative to src/. That > would be a way to fix all the source file paths I see. I have a patch for that in NetBSD's gcc. Joerg From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 2 13:52:45 2010 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 424461065673 for ; Thu, 2 Dec 2010 13:52:45 +0000 (UTC) (envelope-from erik@cederstrand.dk) Received: from csmtp3.one.com (csmtp3.one.com [91.198.169.23]) by mx1.freebsd.org (Postfix) with ESMTP id C88268FC23 for ; Thu, 2 Dec 2010 13:52:44 +0000 (UTC) Received: from [192.168.2.2] (0x55812058.terminal.tdcmobil.dk [85.129.32.88]) by csmtp3.one.com (Postfix) with ESMTP id 3AA952406993; Thu, 2 Dec 2010 13:52:35 +0000 (UTC) Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: multipart/signed; boundary=Apple-Mail-422--541858631; protocol="application/pkcs7-signature"; micalg=sha1 From: Erik Cederstrand In-Reply-To: <20101202124940.GA29276@britannica.bec.de> Date: Thu, 2 Dec 2010 14:52:33 +0100 Message-Id: <65DE8D6D-CBBB-45A5-A225-51514DE0E455@cederstrand.dk> References: <93FA0AC7-704D-4EB4-A163-FDD8AC915630@cederstrand.dk> <2ABD292E-E172-4B43-A8A3-AAB25C56EE8B@cederstrand.dk> <20101202124940.GA29276@britannica.bec.de> To: Joerg Sonnenberger X-Mailer: Apple Mail (2.1082) X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-hackers@freebsd.org, FreeBSD Hackers Subject: Re: Deterministic builds, part 2 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: Thu, 02 Dec 2010 13:52:45 -0000 --Apple-Mail-422--541858631 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Hi Joerg, Den 02/12/2010 kl. 13.49 skrev Joerg Sonnenberger: > On Thu, Dec 02, 2010 at 11:08:09AM +0100, Erik Cederstrand wrote: >> I wonder if I could hack __FILE__ to be a path relative to src/. That >> would be a way to fix all the source file paths I see. > > I have a patch for that in NetBSD's gcc. Fantastic! Would you mind pointing me to the patch? Thanks, Erik --Apple-Mail-422--541858631-- From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 2 14:05:29 2010 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 A45091065670 for ; Thu, 2 Dec 2010 14:05:29 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 77E118FC08 for ; Thu, 2 Dec 2010 14:05:29 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id 3251046B35; Thu, 2 Dec 2010 09:05:29 -0500 (EST) Received: from jhbbsd.localnet (smtp.hudson-trading.com [209.249.190.9]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 085BF8A01D; Thu, 2 Dec 2010 09:05:28 -0500 (EST) From: John Baldwin To: freebsd-hackers@freebsd.org Date: Thu, 2 Dec 2010 08:58:13 -0500 User-Agent: KMail/1.13.5 (FreeBSD/7.3-CBSD-20101102; KDE/4.4.5; amd64; ; ) References: <948728.57388.qm@web76807.mail.sg1.yahoo.com> In-Reply-To: <948728.57388.qm@web76807.mail.sg1.yahoo.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201012020858.13914.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (bigwig.baldwin.cx); Thu, 02 Dec 2010 09:05:28 -0500 (EST) X-Virus-Scanned: clamav-milter 0.96.3 at bigwig.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-1.9 required=4.2 tests=BAYES_00 autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on bigwig.baldwin.cx Cc: Darmawan Salihun Subject: Re: How to debug BTX loader? 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: Thu, 02 Dec 2010 14:05:29 -0000 On Wednesday, December 01, 2010 4:09:42 pm Darmawan Salihun wrote: > Hi John, > > --- On Tue, 11/30/10, John Baldwin wrote: > > > From: John Baldwin > > Subject: Re: How to debug BTX loader? > > To: freebsd-hackers@freebsd.org > > Cc: "Darmawan Salihun" > > Date: Tuesday, November 30, 2010, 9:38 AM > > On Monday, November 29, 2010 1:01:27 > > pm Darmawan Salihun wrote: > > > Hi guys, > > > > > > I'm currently working on a BIOS for a custom Single > > Board Computer (SBC). > > > I have the required BIOS source code and tools at > > hand. > > > However, the boot process always stuck in the BTX > > loader > > > (the infamous "ACPI autoload failed") when I booted > > out of USB stick > > > (with the FreeBSD 8.1 USB stick image). > > > > > > I could get the system to boot into FreeBSD 8.1 > > > (by keeping the CDROM tray open and close it when the > > board looks for > > > boot device, otherwise BTX will reboot instantly). > > > > Are you getting an actual BTX error message or a > > freeze? BTX is just a > > minikernel written all in assembly. It doesn't handle > > loading the kernel, > > etc. All that work is done by the /boot/loader > > program (which is written in > > C). You can find all the source to the boot code in > > src/sys/boot. The BTX > > kernel is in src/sys/boot/i386/btx/btx/. > > > > However, to debug this further we would need more info such > > as what exactly > > you are seeing (a hang, a BTX fault with a register dump, > > etc.). > > One of the BTX fault shows the register dump in the attachment. > I hope this could help. Anyway, If I were to try to interpret > such register dump, where should I start? I understand x86/x86_64 > assembly pretty much, but I'm not quite well versed with the > FreeBSD code using it. Looks like the mailing list stripped the attachment. Can you post the attachment at a URL? -- John Baldwin From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 2 14:10:46 2010 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 A1184106567A for ; Thu, 2 Dec 2010 14:10:46 +0000 (UTC) (envelope-from erik@cederstrand.dk) Received: from csmtp3.one.com (csmtp3.one.com [91.198.169.23]) by mx1.freebsd.org (Postfix) with ESMTP id 34F7A8FC1E for ; Thu, 2 Dec 2010 14:10:45 +0000 (UTC) Received: from [192.168.2.2] (0x55812058.terminal.tdcmobil.dk [85.129.32.88]) by csmtp3.one.com (Postfix) with ESMTP id 3AA952406993; Thu, 2 Dec 2010 13:52:35 +0000 (UTC) Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: multipart/signed; boundary=Apple-Mail-422--541858631; protocol="application/pkcs7-signature"; micalg=sha1 From: Erik Cederstrand In-Reply-To: <20101202124940.GA29276@britannica.bec.de> Date: Thu, 2 Dec 2010 14:52:33 +0100 Message-Id: <65DE8D6D-CBBB-45A5-A225-51514DE0E455@cederstrand.dk> References: <93FA0AC7-704D-4EB4-A163-FDD8AC915630@cederstrand.dk> <2ABD292E-E172-4B43-A8A3-AAB25C56EE8B@cederstrand.dk> <20101202124940.GA29276@britannica.bec.de> To: Joerg Sonnenberger X-Mailer: Apple Mail (2.1082) X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-hackers@freebsd.org, FreeBSD Hackers Subject: Re: Deterministic builds, part 2 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: Thu, 02 Dec 2010 14:10:46 -0000 --Apple-Mail-422--541858631 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Hi Joerg, Den 02/12/2010 kl. 13.49 skrev Joerg Sonnenberger: > On Thu, Dec 02, 2010 at 11:08:09AM +0100, Erik Cederstrand wrote: >> I wonder if I could hack __FILE__ to be a path relative to src/. That >> would be a way to fix all the source file paths I see. > > I have a patch for that in NetBSD's gcc. Fantastic! Would you mind pointing me to the patch? Thanks, Erik --Apple-Mail-422--541858631-- From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 2 14:35:00 2010 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 47E2B106564A; Thu, 2 Dec 2010 14:35:00 +0000 (UTC) (envelope-from joerg@britannica.bec.de) Received: from mo-p00-ob.rzone.de (mo-p00-ob.rzone.de [81.169.146.162]) by mx1.freebsd.org (Postfix) with ESMTP id A11308FC17; Thu, 2 Dec 2010 14:34:59 +0000 (UTC) X-RZG-AUTH: :JiIXek6mfvEEUpFQdo7Fj1/zg48CFjWjQv0cW+St/nW/afgnrylriWJALkcJHoA= X-RZG-CLASS-ID: mo00 Received: from britannica.bec.de (ip-109-42-250-77.web.vodafone.de [109.42.250.77]) by post.strato.de (klopstock mo3) (RZmta 24.6) with (DHE-RSA-AES128-SHA encrypted) ESMTP id g06d68mB2EFGwC ; Thu, 2 Dec 2010 15:34:57 +0100 (MET) Received: by britannica.bec.de (sSMTP sendmail emulation); Thu, 02 Dec 2010 15:34:55 +0100 Date: Thu, 2 Dec 2010 15:34:55 +0100 From: Joerg Sonnenberger To: freebsd-hackers@freebsd.org, FreeBSD Hackers Message-ID: <20101202143455.GB31607@britannica.bec.de> Mail-Followup-To: freebsd-hackers@freebsd.org, FreeBSD Hackers References: <93FA0AC7-704D-4EB4-A163-FDD8AC915630@cederstrand.dk> <2ABD292E-E172-4B43-A8A3-AAB25C56EE8B@cederstrand.dk> <20101202124940.GA29276@britannica.bec.de> <65DE8D6D-CBBB-45A5-A225-51514DE0E455@cederstrand.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <65DE8D6D-CBBB-45A5-A225-51514DE0E455@cederstrand.dk> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: Subject: Re: Deterministic builds, part 2 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: Thu, 02 Dec 2010 14:35:00 -0000 On Thu, Dec 02, 2010 at 02:52:33PM +0100, Erik Cederstrand wrote: > Hi Joerg, > > Den 02/12/2010 kl. 13.49 skrev Joerg Sonnenberger: > > > On Thu, Dec 02, 2010 at 11:08:09AM +0100, Erik Cederstrand wrote: > >> I wonder if I could hack __FILE__ to be a path relative to src/. That > >> would be a way to fix all the source file paths I see. > > > > I have a patch for that in NetBSD's gcc. > > Fantastic! Would you mind pointing me to the patch? http://mail-index.netbsd.org/tech-userlevel/2009/10/30/msg002857.html Joerg From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 2 14:35:00 2010 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 47E2B106564A; Thu, 2 Dec 2010 14:35:00 +0000 (UTC) (envelope-from joerg@britannica.bec.de) Received: from mo-p00-ob.rzone.de (mo-p00-ob.rzone.de [81.169.146.162]) by mx1.freebsd.org (Postfix) with ESMTP id A11308FC17; Thu, 2 Dec 2010 14:34:59 +0000 (UTC) X-RZG-AUTH: :JiIXek6mfvEEUpFQdo7Fj1/zg48CFjWjQv0cW+St/nW/afgnrylriWJALkcJHoA= X-RZG-CLASS-ID: mo00 Received: from britannica.bec.de (ip-109-42-250-77.web.vodafone.de [109.42.250.77]) by post.strato.de (klopstock mo3) (RZmta 24.6) with (DHE-RSA-AES128-SHA encrypted) ESMTP id g06d68mB2EFGwC ; Thu, 2 Dec 2010 15:34:57 +0100 (MET) Received: by britannica.bec.de (sSMTP sendmail emulation); Thu, 02 Dec 2010 15:34:55 +0100 Date: Thu, 2 Dec 2010 15:34:55 +0100 From: Joerg Sonnenberger To: freebsd-hackers@freebsd.org, FreeBSD Hackers Message-ID: <20101202143455.GB31607@britannica.bec.de> Mail-Followup-To: freebsd-hackers@freebsd.org, FreeBSD Hackers References: <93FA0AC7-704D-4EB4-A163-FDD8AC915630@cederstrand.dk> <2ABD292E-E172-4B43-A8A3-AAB25C56EE8B@cederstrand.dk> <20101202124940.GA29276@britannica.bec.de> <65DE8D6D-CBBB-45A5-A225-51514DE0E455@cederstrand.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <65DE8D6D-CBBB-45A5-A225-51514DE0E455@cederstrand.dk> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: Subject: Re: Deterministic builds, part 2 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: Thu, 02 Dec 2010 14:35:00 -0000 On Thu, Dec 02, 2010 at 02:52:33PM +0100, Erik Cederstrand wrote: > Hi Joerg, > > Den 02/12/2010 kl. 13.49 skrev Joerg Sonnenberger: > > > On Thu, Dec 02, 2010 at 11:08:09AM +0100, Erik Cederstrand wrote: > >> I wonder if I could hack __FILE__ to be a path relative to src/. That > >> would be a way to fix all the source file paths I see. > > > > I have a patch for that in NetBSD's gcc. > > Fantastic! Would you mind pointing me to the patch? http://mail-index.netbsd.org/tech-userlevel/2009/10/30/msg002857.html Joerg From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 2 14:37:10 2010 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 E00131065672 for ; Thu, 2 Dec 2010 14:37:10 +0000 (UTC) (envelope-from lazaax@sys7server.net) Received: from sys7server.net (sys7server.net [204.109.59.30]) by mx1.freebsd.org (Postfix) with ESMTP id 8F55E8FC12 for ; Thu, 2 Dec 2010 14:37:10 +0000 (UTC) Received: from sys7server.net (localhost [127.0.0.1]) by sys7server.net (8.14.4/8.14.4) with ESMTP id oB267Zxs008487; Thu, 2 Dec 2010 06:07:35 GMT (envelope-from lazaax@sys7server.net) Received: (from lazaax@localhost) by sys7server.net (8.14.4/8.14.4/Submit) id oB267YMu008486; Thu, 2 Dec 2010 06:07:34 GMT (envelope-from lazaax) Date: Thu, 2 Dec 2010 06:07:34 GMT From: Ltr3z3r0n Llavtr3c Message-Id: <201012020607.oB267YMu008486@sys7server.net> To: bakul@bitblocks.com, des@des.no In-Reply-To: <86r5e2n50c.fsf@ds4.des.no> X-Mailman-Approved-At: Thu, 02 Dec 2010 15:03:22 +0000 Cc: freebsd-hackers@freebsd.org, mj@feral.com Subject: Re: find(1): Is this a bug or not? 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: Thu, 02 Dec 2010 14:37:11 -0000 cool From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 2 17:41:32 2010 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 48AE0106566C for ; Thu, 2 Dec 2010 17:41:32 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from out-0.mx.aerioconnect.net (out-0-24.mx.aerioconnect.net [216.240.47.84]) by mx1.freebsd.org (Postfix) with ESMTP id 29C6D8FC08 for ; Thu, 2 Dec 2010 17:41:31 +0000 (UTC) Received: from idiom.com (postfix@mx0.idiom.com [216.240.32.160]) by out-0.mx.aerioconnect.net (8.13.8/8.13.8) with ESMTP id oB2HfSxB032638; Thu, 2 Dec 2010 09:41:28 -0800 X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e Received: from julian-mac.elischer.org (h-67-100-89-137.snfccasy.static.covad.net [67.100.89.137]) by idiom.com (Postfix) with ESMTP id 927052D6017; Thu, 2 Dec 2010 09:41:27 -0800 (PST) Message-ID: <4CF7DA48.6080302@freebsd.org> Date: Thu, 02 Dec 2010 10:41:28 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6 MIME-Version: 1.0 To: Peter Jeremy References: <20101201190109.GC6220@server.vk2pj.dyndns.org> In-Reply-To: <20101201190109.GC6220@server.vk2pj.dyndns.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.67 on 216.240.47.51 Cc: dheeraj suthar , hackers@freebsd.org Subject: Re: Greetings 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: Thu, 02 Dec 2010 17:41:32 -0000 On 12/1/10 12:01 PM, Peter Jeremy wrote: > Hi Dheeraj, > > On 2010-Dec-01 04:19:46 +0530, dheeraj suthar wrote: >> Kindly do guide me(as I am new here.) and involve me in some >> programming project related to above mentioned fields. Also I am >> currently going through project lists on FreeBSD list and will apply >> soon to which suits my skill set. generally, the way we all start is that we find something that is slightly annoying to us and decide to fix it on our own. We can't really tell you what to work on but you can find out for yourself.. :-) Julian > I suggest you have a read through http://www.freebsd.org/projects/ideas/ > to find something that sounds interesting to you and then contact the > relevant person. If no contact is shown then ask about it here. > From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 2 19:12:07 2010 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 647361065674 for ; Thu, 2 Dec 2010 19:12:07 +0000 (UTC) (envelope-from darmawan_salihun@yahoo.com) Received: from web76801.mail.sg1.yahoo.com (web76801.mail.sg1.yahoo.com [124.108.123.105]) by mx1.freebsd.org (Postfix) with SMTP id 51A5F8FC1C for ; Thu, 2 Dec 2010 19:12:05 +0000 (UTC) Received: (qmail 1266 invoked by uid 60001); 2 Dec 2010 19:12:05 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1291317125; bh=IUOKIo/xDI0aC95T2budkr6udfZyWOmV4nsUC5ea52w=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:MIME-Version:Content-Type; b=webItEQwKcl4ar4/ANGPTZERDQ+qt0m2ovAtcX/qqI436mC063wlbxzY7nVXGc2opHHaqDOmTJtwN7B+qKIX+BNB36wu+UbC10/fJnMj7JNKpNacsWbuZazJ5YapI0LWy3YME3auml30vY+aniTDd9yNPi86IFRkewB8Wv44AK0= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:MIME-Version:Content-Type; b=F0C8RP4iOXYNFAmt3s2AIq32ors1BFpWsmcYTOQm2pTZ47Vhdt5k4qK9Q18AFwvF8TItKVlgHRcb/EyvIfZhkbuFVyPoZjMafSWcQOuDM1FWzUHX6xZMNvNvscr1UpfMizdjHMhwymN4u1mxzEjpOxkUGN3nfItjIAyOK32qd0s=; Message-ID: <64838.99820.qm@web76801.mail.sg1.yahoo.com> X-YMail-OSG: 78GQP3oVM1k7Vm2pvSCi75dbg4uRzuiUk7nhiIEn75pbNWm R5AWv.1C3IG5w8g4Lp01nn8CIbTtHjcLFx7Bw_FzghWUcYx36mlnolqiocIG P4j1T8Pcxv.5rAyJuorUyXBCwOagWsog65W37E.kRfAVNOIZ9Gt2VotghsXo dro1cM5.n77eTdk0_Pw0.iePy5mzJOykONilOvk3KxCr3a65Z7u1sXQEDx_T a1C1y9Pxq.A3c6zshxm5HiA2RwxfH9r0ABusFCK8.SxK5QW1YT7DIvYZbqVK JIEQRfnzG4c7FhXdsaAjlDA3HXUkXJ.lF6WxPWbjaCPLNLQFQlL4dAL92QQV H986T2hQAhSgx1FbVpQ-- Received: from [114.58.240.80] by web76801.mail.sg1.yahoo.com via HTTP; Fri, 03 Dec 2010 03:12:04 SGT X-Mailer: YahooMailClassic/11.4.20 YahooMailWebService/0.8.107.285259 Date: Fri, 3 Dec 2010 03:12:04 +0800 (SGT) From: Darmawan Salihun To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="0-771319898-1291317124=:99820" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: How to debug BTX loader? 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: Thu, 02 Dec 2010 19:12:07 -0000 --0-771319898-1291317124=:99820 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hi John, =0A=0A--- On Thu, 12/2/10, John Baldwin wrote:= =0A=0A> From: John Baldwin =0A> Subject: Re: How to debug = BTX loader?=0A> To: freebsd-hackers@freebsd.org=0A> Cc: "Darmawan Salihun" = =0A> Date: Thursday, December 2, 2010, 8:58 AM= =0A> On Wednesday, December 01, 2010=0A> 4:09:42 pm Darmawan Salihun wrote:= =0A> > Hi John, =0A> > =0A> > --- On Tue, 11/30/10, John Baldwin =0A> wrote:=0A> > =0A> > > From: John Baldwin =0A> = > > Subject: Re: How to debug BTX loader?=0A> > > To: freebsd-hackers@freeb= sd.org=0A> > > Cc: "Darmawan Salihun" =0A> > > = Date: Tuesday, November 30, 2010, 9:38 AM=0A> > > On Monday, November 29, 2= 010 1:01:27=0A> > > pm Darmawan Salihun wrote:=0A> > > > Hi guys, =0A> > > = > =0A> > > > I'm currently working on a BIOS for a custom=0A> Single=0A> > = > Board Computer (SBC). =0A> > > > I have the required BIOS source code and= =0A> tools at=0A> > > hand. =0A> > > > However, the boot process always stu= ck in=0A> the BTX=0A> > > loader =0A> > > > (the infamous "ACPI autoload fa= iled") when I=0A> booted=0A> > > out of USB stick =0A> > > > (with the Free= BSD 8.1 USB stick image). =0A> > > > =0A> > > > I could get the system to b= oot into FreeBSD=0A> 8.1 =0A> > > > (by keeping the CDROM tray open and clo= se it=0A> when the=0A> > > board looks for =0A> > > > boot device, otherwis= e BTX will reboot=0A> instantly). =0A> > > =0A> > > Are you getting an actu= al BTX error message or a=0A> > > freeze?=A0 BTX is just a =0A> > > miniker= nel written all in assembly.=A0 It=0A> doesn't handle=0A> > > loading the k= ernel, =0A> > > etc.=A0 All that work is done by the=0A> /boot/loader=0A> >= > program (which is written in =0A> > > C).=A0 You can find all the source= to the boot=0A> code in=0A> > > src/sys/boot.=A0 The BTX =0A> > > kernel i= s in src/sys/boot/i386/btx/btx/.=0A> > > =0A> > > However, to debug this fu= rther we would need more=0A> info such=0A> > > as what exactly =0A> > > you= are seeing (a hang, a BTX fault with a=0A> register dump,=0A> > > etc.).= =0A> > =0A> > One of the BTX fault shows the register dump in the=0A> attac= hment. =0A> > I hope this could help. Anyway, If I were to try to=0A> inter= pret =0A> > such register dump, where should I start? I understand=0A> x86/= x86_64 =0A> > assembly pretty much, but I'm not quite well versed=0A> with = the =0A> > FreeBSD code using it. =0A> =0A> Looks like the mailing list str= ipped the attachment.=A0=0A> Can you post the =0A> attachment at a URL?=0A>= =0A=0AThe BTX crash message is in the attachment.=0A=0ARegards,=0A=0ADarmaw= an=0A=0A =0A=0A=0A=0A --0-771319898-1291317124=:99820-- From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 2 20:23:20 2010 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 03BA91065670 for ; Thu, 2 Dec 2010 20:23:20 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id B64D68FC15 for ; Thu, 2 Dec 2010 20:23:19 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id 4223E46B2E; Thu, 2 Dec 2010 15:23:19 -0500 (EST) Received: from jhbbsd.localnet (smtp.hudson-trading.com [209.249.190.9]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 4A8738A01D; Thu, 2 Dec 2010 15:23:18 -0500 (EST) From: John Baldwin To: Darmawan Salihun Date: Thu, 2 Dec 2010 15:23:17 -0500 User-Agent: KMail/1.13.5 (FreeBSD/7.3-CBSD-20101102; KDE/4.4.5; amd64; ; ) References: <64838.99820.qm@web76801.mail.sg1.yahoo.com> In-Reply-To: <64838.99820.qm@web76801.mail.sg1.yahoo.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201012021523.17828.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (bigwig.baldwin.cx); Thu, 02 Dec 2010 15:23:18 -0500 (EST) X-Virus-Scanned: clamav-milter 0.96.3 at bigwig.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-1.9 required=4.2 tests=BAYES_00 autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on bigwig.baldwin.cx Cc: freebsd-hackers@freebsd.org Subject: Re: How to debug BTX loader? 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: Thu, 02 Dec 2010 20:23:20 -0000 On Thursday, December 02, 2010 2:12:04 pm Darmawan Salihun wrote: > Hi John, > > --- On Thu, 12/2/10, John Baldwin wrote: > > > From: John Baldwin > > Subject: Re: How to debug BTX loader? > > To: freebsd-hackers@freebsd.org > > Cc: "Darmawan Salihun" > > Date: Thursday, December 2, 2010, 8:58 AM > > On Wednesday, December 01, 2010 > > 4:09:42 pm Darmawan Salihun wrote: > > > Hi John, > > > > > > --- On Tue, 11/30/10, John Baldwin > > wrote: > > > > > > > From: John Baldwin > > > > Subject: Re: How to debug BTX loader? > > > > To: freebsd-hackers@freebsd.org > > > > Cc: "Darmawan Salihun" > > > > Date: Tuesday, November 30, 2010, 9:38 AM > > > > On Monday, November 29, 2010 1:01:27 > > > > pm Darmawan Salihun wrote: > > > > > Hi guys, > > > > > > > > > > I'm currently working on a BIOS for a custom > > Single > > > > Board Computer (SBC). > > > > > I have the required BIOS source code and > > tools at > > > > hand. > > > > > However, the boot process always stuck in > > the BTX > > > > loader > > > > > (the infamous "ACPI autoload failed") when I > > booted > > > > out of USB stick > > > > > (with the FreeBSD 8.1 USB stick image). > > > > > > > > > > I could get the system to boot into FreeBSD > > 8.1 > > > > > (by keeping the CDROM tray open and close it > > when the > > > > board looks for > > > > > boot device, otherwise BTX will reboot > > instantly). > > > > > > > > Are you getting an actual BTX error message or a > > > > freeze? BTX is just a > > > > minikernel written all in assembly. It > > doesn't handle > > > > loading the kernel, > > > > etc. All that work is done by the > > /boot/loader > > > > program (which is written in > > > > C). You can find all the source to the boot > > code in > > > > src/sys/boot. The BTX > > > > kernel is in src/sys/boot/i386/btx/btx/. > > > > > > > > However, to debug this further we would need more > > info such > > > > as what exactly > > > > you are seeing (a hang, a BTX fault with a > > register dump, > > > > etc.). > > > > > > One of the BTX fault shows the register dump in the > > attachment. > > > I hope this could help. Anyway, If I were to try to > > interpret > > > such register dump, where should I start? I understand > > x86/x86_64 > > > assembly pretty much, but I'm not quite well versed > > with the > > > FreeBSD code using it. > > > > Looks like the mailing list stripped the attachment. > > Can you post the > > attachment at a URL? > > > > The BTX crash message is in the attachment. Ok, so clearly the instruction pointer has jumped off into the weeds given that the instruction stream is all 0xff. The instruction pointer value (0xc09d3600) implies that this is in the kernel already during early kernel startup (before the kernel installs its own IDT with its own fault and exception handlers). It might be helpful to pull up gdb on your kernel.debug file and do 'l *0xc09d3600' to see what you get. Looking at the stack '0xc1830188' might be another address in the kernel. -- John Baldwin From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 2 21:05:42 2010 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 3F1DD106566B for ; Thu, 2 Dec 2010 21:05:42 +0000 (UTC) (envelope-from aduane@juniper.net) Received: from exprod7og117.obsmtp.com (exprod7og117.obsmtp.com [64.18.2.6]) by mx1.freebsd.org (Postfix) with ESMTP id DC3A68FC17 for ; Thu, 2 Dec 2010 21:05:41 +0000 (UTC) Received: from source ([66.129.224.36]) (using TLSv1) by exprod7ob117.postini.com ([64.18.6.12]) with SMTP ID DSNKTPgKJdeQdAl91uy26MuTVmgC6HfOvdyL@postini.com; Thu, 02 Dec 2010 13:05:41 PST Received: from p-emfe01-wf.jnpr.net (172.28.145.24) by P-EMHUB02-HQ.jnpr.net (172.24.192.36) with Microsoft SMTP Server (TLS) id 8.2.254.0; Thu, 2 Dec 2010 12:51:34 -0800 Received: from EMBX01-WF.jnpr.net ([fe80::1914:3299:33d9:e43b]) by p-emfe01-wf.jnpr.net ([fe80::d0d1:653d:5b91:a123%11]) with mapi; Thu, 2 Dec 2010 15:51:33 -0500 From: Andrew Duane To: "freebsd-hackers@freebsd.org" Date: Thu, 2 Dec 2010 15:51:31 -0500 Thread-Topic: Question about process rlimits Thread-Index: AcuSYrMHnIGn26AyTFqNYgwLvS7JRA== Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Question about process rlimits 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: Thu, 02 Dec 2010 21:05:42 -0000 I've been poking at some bugs we have around pushing user memory to/past th= e limits of our box, and decided to try seeing what happens on a stock Free= BSD system (7.1 in this case). Basically I have a program that mallocs big memory chunks and zeros them to= consume both physical and virtual memory. I had expected the program to st= op malloc'ing when brk() reaches the process' RLIMIT_DATA (512MB cur and ma= x). It didn't. It happily malloc'd many gigabytes of memory until I stopped= it. On our 6.2 based product boxes, RLIMIT_DATA correctly stops the malloc from= continuing, just like the manuals say. Am I missing something? -- Andrew Duane Juniper Networks 978-589-0551 10 Technology Park Dr aduane@juniper.net Westford, MA 01886-3418 =20 From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 2 21:11:48 2010 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 EDE491065694 for ; Thu, 2 Dec 2010 21:11:48 +0000 (UTC) (envelope-from mdf356@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id A90C68FC13 for ; Thu, 2 Dec 2010 21:11:48 +0000 (UTC) Received: by gyf3 with SMTP id 3so4641565gyf.13 for ; Thu, 02 Dec 2010 13:11:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=AjYh7m4INeb0WoPZDZW2c5nEXcNTTk2t7wGAXBQZlBI=; b=LBh7Mo8CE5THdUDSmBGEWbah66zePwsjLbtDpifaa+49Ur+rEv0oF84G8geH6XzsWI QtXmjwl4Bnk4RTADxoGiJe9FQWjGFdtqOtG0J0RvC6bD5k4I1zHn3VjgIhQVyHDBS3QR JpzbXjVu/JrkCHAA54a6zwNVJuGUHst5EDR1w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=XPFHL3jMlMJdnAoyylwNOjYnaWvGZzbi8EgZbqKgSkVNK4maSbUZ+K+I2jEJRnush+ sXMYnoqvADyiP5UgXELwGHaNE3+Y8LkNpW93j6H+R8Cz6sNSXmQhHMOrUqYwgWRKC/lH vnc+wLetA0U36cbNff27jC/23Zb94uBs4DxBM= MIME-Version: 1.0 Received: by 10.231.31.6 with SMTP id w6mr746429ibc.147.1291324307791; Thu, 02 Dec 2010 13:11:47 -0800 (PST) Received: by 10.231.21.35 with HTTP; Thu, 2 Dec 2010 13:11:47 -0800 (PST) In-Reply-To: References: Date: Thu, 2 Dec 2010 13:11:47 -0800 Message-ID: From: Matthew Fleming To: Andrew Duane Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: "freebsd-hackers@freebsd.org" Subject: Re: Question about process rlimits 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: Thu, 02 Dec 2010 21:11:49 -0000 On Thu, Dec 2, 2010 at 12:51 PM, Andrew Duane wrote: > > I've been poking at some bugs we have around pushing user memory to/past = the limits of our box, and decided to try seeing what happens on a stock Fr= eeBSD system (7.1 in this case). > > Basically I have a program that mallocs big memory chunks and zeros them = to consume both physical and virtual memory. I had expected the program to = stop malloc'ing when brk() reaches the process' RLIMIT_DATA (512MB cur and = max). It didn't. It happily malloc'd many gigabytes of memory until I stopp= ed it. > > On our 6.2 based product boxes, RLIMIT_DATA correctly stops the malloc fr= om continuing, just like the manuals say. > > Am I missing something? Starting on FreeBSD 7, the default malloc(3) implementation uses mmap(2), not brk(2) to manage its address space. There are two ways to deal with this: 1) edit /etc/malloc.conf and add the 'D' option to force malloc to use sbrk(2). I haven't tried this one. 2) limit the total virtual memory allowed by a process, RLIMIT_VMEM. This is what we used when migrating from FreeBSD 6 to 7. Cheers, matthew From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 2 21:14:22 2010 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 28F30106566B for ; Thu, 2 Dec 2010 21:14:22 +0000 (UTC) (envelope-from artemb@gmail.com) Received: from mail-qy0-f182.google.com (mail-qy0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id D3CD68FC17 for ; Thu, 2 Dec 2010 21:14:21 +0000 (UTC) Received: by qyk36 with SMTP id 36so5701394qyk.13 for ; Thu, 02 Dec 2010 13:14:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=2MHUh1ROiY8hxTqDDZIuUcLZ+DsfzO8PpS5LECrWQyA=; b=UeFwTAkRlNLIMWWcnYplu4KF4d1/MqwoXygleccniqfYZYPblHog++WI6dtBTVtv1s Fp4DbMbWDD+wTCxqzhTkHBnPq6cOqXT/H8sfmXgXh3F7UwvXRJIj6CfZB7pq+Q/sNRq6 905JdxzkaRUvwI2PGbrN6qDErdFiNhdXvh3bU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=XrqlJIs++57hjJs4HTrZ3uYfQqJRNQeOFRIWSEb9Ro2bK0vlsDv+qb/42Zq+fyqd+0 qnRZlhWKLgs3nW81hG3pf8IfTTubEio372OXerrX3nOWrg8CqLIMCFxehkR5zEZjgZAQ qssAe9Bo4TSXwMBOYoGKBRJjtk5j256mgE92Y= MIME-Version: 1.0 Received: by 10.229.88.146 with SMTP id a18mr484252qcm.60.1291324460481; Thu, 02 Dec 2010 13:14:20 -0800 (PST) Sender: artemb@gmail.com Received: by 10.220.177.195 with HTTP; Thu, 2 Dec 2010 13:14:20 -0800 (PST) In-Reply-To: References: Date: Thu, 2 Dec 2010 13:14:20 -0800 X-Google-Sender-Auth: Js9bUm9HFz95iwp10LUUvNUmtr8 Message-ID: From: Artem Belevich To: Andrew Duane Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: "freebsd-hackers@freebsd.org" Subject: Re: Question about process rlimits 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: Thu, 02 Dec 2010 21:14:22 -0000 Hi, On Thu, Dec 2, 2010 at 12:51 PM, Andrew Duane wrote: > > I've been poking at some bugs we have around pushing user memory to/past = the limits of our box, and decided to try seeing what happens on a stock Fr= eeBSD system (7.1 in this case). > > Basically I have a program that mallocs big memory chunks and zeros them = to consume both physical and virtual memory. I had expected the program to = stop malloc'ing when brk() reaches the process' RLIMIT_DATA (512MB cur and = max). It didn't. It happily malloc'd many gigabytes of memory until I stopp= ed it. > > On our 6.2 based product boxes, RLIMIT_DATA correctly stops the malloc fr= om continuing, just like the manuals say. > > Am I missing something? Perhaps that malloc has two ways of grabbing memory from system -- sbrk() and mmap() and they are subject to different limits. I believe these days malloc is allowed to use both but prefers mmap which would explain why RLIMIT_DATA didn't have much effect. Try forcing malloc to use sbrk only via MALLOC_OPTIONS=3DDm (not sure if that's correct way to specify my intent, though). --Artem From owner-freebsd-hackers@FreeBSD.ORG Fri Dec 3 05:20:46 2010 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 864E2106567A for ; Fri, 3 Dec 2010 05:20:46 +0000 (UTC) (envelope-from jamesbrandongooch@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 1D9878FC0A for ; Fri, 3 Dec 2010 05:20:45 +0000 (UTC) Received: by wwf26 with SMTP id 26so4791626wwf.31 for ; Thu, 02 Dec 2010 21:20:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=h8ma1o47eSKREw/QPEpJ5X45nduHMv+85CoAsamqjkc=; b=OaxUE4ySKcTopBxz48gHN+C87gODMqERODOk4JC8/VI0oILt8o+YowKm21eNo6FCYG HTUkBSXCjDtaAgcdSSmPi3y17a5Rtn4SmGqWzgV8T2F7OdxiaRJatip69Eec0v+bjF3L XKHxKsZyFmaT6es2fyXITPDBojuGPFTC9YIoI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=ashqzHnx3zrAZcWWLQhC//itqwgMrFfq9yi8vAYTwzzNOF/EYvMVIudwQfhaxaHcn8 kcizTpUAJubdMBzf/3QeAr4byUp2xyAMNsD9Aui+wCnxp9UzDjR/BK8VWcYkXfzTP+ey aOP70TC6tOSE/TDvrctBlx6U4ln6LYbsNRBSU= MIME-Version: 1.0 Received: by 10.216.4.82 with SMTP id 60mr80340wei.89.1291353644932; Thu, 02 Dec 2010 21:20:44 -0800 (PST) Received: by 10.216.12.80 with HTTP; Thu, 2 Dec 2010 21:20:44 -0800 (PST) Date: Thu, 2 Dec 2010 23:20:44 -0600 Message-ID: From: Brandon Gooch To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: DTrace: Sending ^C while running script produces no output 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, 03 Dec 2010 05:20:46 -0000 I've been tinkering with DTrace a bit, and I've notice something peculiar on each system I've tried it on. Sending ^C from the keyboard in the terminal (console, XTerm, Konsole) produces no output [1]. For example, while trying out a one-liner (from http://www.brendangregg.com/DTrace/dtrace_oneliners.txt): brandon@d820:~$ sudo dtrace -n 'syscall:::entry { @num[execname] = count(); }' dtrace: description 'syscall:::entry ' matched 514 probes ^C brandon@d820:~$ (12-02 23:11) If I instead, from another terminal, use pkill to quit or terminate the process, I get output: brandon@d820:~$ sudo dtrace -n 'syscall:::entry { @num[execname] = count(); }'; dtrace: description 'syscall:::entry ' matched 514 probes akonadi_control 4 akonadiserver 5 syslogd 6 sendmail 8 akonadi_ical_resour 12 akonadi_maildir_res 12 akonadi_nepomuk_con 12 akonadi_vcard_resou 12 kuiserver 12 akonadi_maildispatc 14 korgac 14 virtuoso-t 15 dbus-daemon 17 mysqld 18 hald 24 knotify4 27 akonadi_contacts_re 36 nepomukservicestub 70 pkill 70 powerd 72 dtrace 101 zsh 111 sudo 495 kwin 2812 firefox-bin 3175 kdeinit4 11044 Xorg 39588 brandon@d820:~$ (12-02 23:14) I also want to add that I've tried this with a variety of shells on both 8.2-PRERELEASE and HEAD systems, i386 and amd64, built with GCC and nearly GENERIC kernels in order to try to eliminate the cause. I feel as though this has something to do with file descriptors being closed too soon when handling the signal or something of that nature. It's also been suggested that this could be a bug in libdtrace, but I haven't the knowledge (or skill) to try and pinpoint the cause myself. Is there anyone here that may be able to provide feedback or debugging suggestions? Thanks! -Brandon [1] This isn't always the case, only like 99.99% of the time. Sometimes I do get output, but usually it's just snippets, and sometimes random characters! From owner-freebsd-hackers@FreeBSD.ORG Fri Dec 3 05:46:41 2010 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 A1172106567A for ; Fri, 3 Dec 2010 05:46:41 +0000 (UTC) (envelope-from artemb@gmail.com) Received: from mail-qy0-f182.google.com (mail-qy0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id 512298FC13 for ; Fri, 3 Dec 2010 05:46:41 +0000 (UTC) Received: by qyk36 with SMTP id 36so6091507qyk.13 for ; Thu, 02 Dec 2010 21:46:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; bh=vGVszrZgauywH+OtblmsAmzzyXJAKcjDmTWjBfX4MBc=; b=M1Qie1n5JrhbxxutVRNTIZuRjSCyBCv6vBbD5h7jFr374z9KDrxNte9aPSiDLylckG gxA7rjT2u5UvxQqKKzBGimi72ytnd1QUpRP+XPE8+HKpcmsRXC9gB+V48Vg9l0s3osau cEsqaXrvPR8X4cvuwUQZOctp5kd1mpbsdfoNY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=v0x1Ijy72B/7w4LjIvoUweYlwZeesLH+lNK+E4rZPtyO5k9HqXOCB1nBerRMGj9ELF TSYmSfwZeDuZOWLgRrevBbueEBCtHiRLQa/JOvYR0bNMZAF4+oZQdtQkZH/DG6gtc8m0 m1+nWx1+sQvrj0M8CCDeVzIH+nEQ0orvrGnk0= MIME-Version: 1.0 Received: by 10.224.54.9 with SMTP id o9mr871677qag.163.1291355200423; Thu, 02 Dec 2010 21:46:40 -0800 (PST) Sender: artemb@gmail.com Received: by 10.220.177.195 with HTTP; Thu, 2 Dec 2010 21:46:40 -0800 (PST) In-Reply-To: References: Date: Thu, 2 Dec 2010 21:46:40 -0800 X-Google-Sender-Auth: s_qX-KCS-YMy8B-2Jw2VEAJRaaM Message-ID: From: Artem Belevich To: Brandon Gooch Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-hackers@freebsd.org Subject: Re: DTrace: Sending ^C while running script produces no output 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, 03 Dec 2010 05:46:41 -0000 On Thu, Dec 2, 2010 at 9:20 PM, Brandon Gooch wrote: > I've been tinkering with DTrace a bit, and I've notice something > peculiar on each system I've tried it on. > > Sending ^C from the keyboard in the terminal (console, XTerm, Konsole) > produces no output [1]. > > For example, while trying out a one-liner (from > http://www.brendangregg.com/DTrace/dtrace_oneliners.txt): I've got two boxes, both running stable-8/amd64. stable/8 r215749 (+cyclic patch) - reliably produces output, though for some reason does not count anything for 32-bit apps. stable/8 r215546 - seems to have the problem you've described. I did get normal output once out of 10 or so attempts. Given that a recent version seems to be working, it may be worth it to update FreeBSD and try again. --Artem From owner-freebsd-hackers@FreeBSD.ORG Fri Dec 3 05:48:53 2010 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 73E87106566B for ; Fri, 3 Dec 2010 05:48:53 +0000 (UTC) (envelope-from artemb@gmail.com) Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com [209.85.216.175]) by mx1.freebsd.org (Postfix) with ESMTP id 269788FC13 for ; Fri, 3 Dec 2010 05:48:52 +0000 (UTC) Received: by qyk8 with SMTP id 8so396215qyk.13 for ; Thu, 02 Dec 2010 21:48:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; bh=J6OM/Gep7N1ac6KvkjNRel19izcbA204fp9BTYO9Xzs=; b=DBY9mOrrFis3ecHgSPjBbagXSa6rGyOOCECU9kQL4gokqXEHHYru4aalyuDIGCDRU8 i894vP+MDBjZWi+FY7VxoMQYEmdXKI4FgByOV26rKe2YvqsUUaKcdOnXkuKkiZC2E+NZ 0nFPZWXqMBFxTFRo3atz4ShRs2RV8cReiJrFE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=uP2OkTSPLulY6zWUggczD2yc2T8G6qXeW5zBLCtNHvFQ/0PTNoeXAx4+uXqp/R4C+z Vy6Q59djCtQw0yhc+e9MPDdR3njfgEinjQDD81uOtgXRTtv1NSPsm9F6d4Jt0+X51EgT c9f/zHe6J1LwQdargfmiQCTGMWZ18eM+p0Kpc= MIME-Version: 1.0 Received: by 10.224.54.9 with SMTP id o9mr873323qag.163.1291355331457; Thu, 02 Dec 2010 21:48:51 -0800 (PST) Sender: artemb@gmail.com Received: by 10.220.177.195 with HTTP; Thu, 2 Dec 2010 21:48:51 -0800 (PST) In-Reply-To: References: Date: Thu, 2 Dec 2010 21:48:51 -0800 X-Google-Sender-Auth: 883z3Sm9hxHa3HtWpV6GItT2XoY Message-ID: From: Artem Belevich To: Brandon Gooch Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-hackers@freebsd.org Subject: Re: DTrace: Sending ^C while running script produces no output 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, 03 Dec 2010 05:48:53 -0000 On Thu, Dec 2, 2010 at 9:46 PM, Artem Belevich wrote: > On Thu, Dec 2, 2010 at 9:20 PM, Brandon Gooch > wrote: >> I've been tinkering with DTrace a bit, and I've notice something >> peculiar on each system I've tried it on. >> >> Sending ^C from the keyboard in the terminal (console, XTerm, Konsole) >> produces no output [1]. >> >> For example, while trying out a one-liner (from >> http://www.brendangregg.com/DTrace/dtrace_oneliners.txt): > > I've got two boxes, both running stable-8/amd64. > > stable/8 r215749 (+cyclic patch) - reliably produces output, though > for some reason does not count anything for 32-bit apps. > stable/8 r215546 - seems to have the problem you've described. I did > get normal output once out of 10 or so attempts. Tried on another box, also amd64: stable/8 r212650 - works fine. --Artem From owner-freebsd-hackers@FreeBSD.ORG Fri Dec 3 16:57:45 2010 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 8DCBF106566B for ; Fri, 3 Dec 2010 16:57:45 +0000 (UTC) (envelope-from avg@freebsd.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 3A46B8FC15 for ; Fri, 3 Dec 2010 16:57:43 +0000 (UTC) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id SAA28658 for ; Fri, 03 Dec 2010 18:57:42 +0200 (EET) (envelope-from avg@freebsd.org) Message-ID: <4CF92186.1010209@freebsd.org> Date: Fri, 03 Dec 2010 18:57:42 +0200 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.12) Gecko/20101029 Lightning/1.0b2 Thunderbird/3.1.6 MIME-Version: 1.0 To: freebsd-hackers@freebsd.org X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: small dtrace patch for review 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, 03 Dec 2010 16:57:45 -0000 The patch is not about DTrace functionality, but about infrastructure use in one particular place. http://people.freebsd.org/~avg/dtrace_gethrtime_init.diff I believe that sched_pin() is need there to make sure that "host"/base CPU stays the same for all calls to smp_rendezvous_cpus(). The pc_cpumask should just be a cosmetic change. -- Andriy Gapon From owner-freebsd-hackers@FreeBSD.ORG Fri Dec 3 18:05:03 2010 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 A46C71065693 for ; Fri, 3 Dec 2010 18:05:03 +0000 (UTC) (envelope-from mdf356@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 677028FC26 for ; Fri, 3 Dec 2010 18:05:03 +0000 (UTC) Received: by iwn39 with SMTP id 39so11444735iwn.13 for ; Fri, 03 Dec 2010 10:05:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=Znt89ePPioj3Gbe9x5iHAm5bdhEFzezQ0GF/tSPT1QY=; b=w0cw+sQrHWXluxEsYLqU+1PJ1W0Zek3oT7DfrGd9uk891wL6pobPhO+OjqQKsw4ekg RHjTQO1KhfkVUrQv9WIbJCjYSBwX562VS1XUNTLusclRfR+ebIM19tbK14jQei/T3iWh YOiCEnASGcwgvFgzBgXZE7D9/pPHJxUIQ+2Ns= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=k18+zcnzxbKUC7htsxJmMyBVdk/+4AsN14pcqJdmvHWXHPB4puz0ndfUDKHz971hCV eXWnIOPapOYX0ZJO8SSsj9CMLUNHCsdysC/6aPA2ExBkxi2Q8bu8qwSalLQrL/8M4ef9 g1J31CCB1KgwtvZUF3e1TPm8i1daJxWLGnbnk= MIME-Version: 1.0 Received: by 10.231.11.9 with SMTP id r9mr2166173ibr.47.1291399502775; Fri, 03 Dec 2010 10:05:02 -0800 (PST) Sender: mdf356@gmail.com Received: by 10.231.21.35 with HTTP; Fri, 3 Dec 2010 10:05:02 -0800 (PST) Date: Fri, 3 Dec 2010 10:05:02 -0800 X-Google-Sender-Auth: s7xoRU3trLnPCuxho4b9xGghThU Message-ID: From: mdf@FreeBSD.org To: freebsd-hackers Content-Type: text/plain; charset=ISO-8859-1 Subject: coretemp(4)/amdtemp(4) and sysctl nodes 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, 03 Dec 2010 18:05:03 -0000 There are very few uses in FreeBSD mainline code of sysctl_remove_oid(), and I was looking at potentially removing them. However, the use in coretemp/amdtemp has me slightly stumped. Each device provides a device_get_sysctl_ctx sysctl_ctx that is automatically cleaned up when the device goes away. Yet the sysctl nodes for both amdtemp and coretemp use the context of other devices, rather than their own. I can't quite figure out why, though the two are slightly different enough that they may have different reasons. For coretmp(4) I don't see how the parent device can be removed first, since we are a child device. So from my understanding it makes no sense to have an explicit sysctl_remove_oid() and attach in the parent's sysctl_ctx. For amdtemp, the "temperature" sysctl is added to the nexus.acpi.cpu device, which I suppose it's possible could be removed while the amdtemp sysctl was still present, causing errors. This case could be dealt with by orphaning sysctl nodes at sysctl_ctx_free if there were any not removed, presuming that whoever created them will clean them up (or leak the memory). Thoughts and explanations of the use of the parent's sysctl context? Thanks, matthew From owner-freebsd-hackers@FreeBSD.ORG Fri Dec 3 23:22:25 2010 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 B666E106567A for ; Fri, 3 Dec 2010 23:22:25 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 4A07D8FC1F for ; Fri, 3 Dec 2010 23:22:24 +0000 (UTC) Received: by wyf19 with SMTP id 19so10060589wyf.13 for ; Fri, 03 Dec 2010 15:22:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:x-mailer:mime-version:content-type :content-transfer-encoding; bh=vbZjiNNQQQJJ2SS+jf+6QymEkXc+YrSDp9NSdaIfnOw=; b=U7keeA0qXaqwC1+V8+gA+u/CvlSSz72lLAGF4t4Yk1JdT15DHLJadkCxAUUwI7Oi54 u9EfR1k13Jm5s3vxE39qolMsL75OZdt2g5OnlMD5PlF9a3NSXM6KrlvBj/EQQcuZwoMk bXYQKC8JXgSu1tvmr428CtevC+2pHRdhDwFX4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:subject:message-id:x-mailer:mime-version:content-type :content-transfer-encoding; b=tliMYn7+yLXEbWK7l41h3b6gkMORH26ZdoLrkCMQfbknTul8TVMizepIr3sn7Z/ksF qSPJZnmRXA25pEgjkwwXAbf4hs4meZtJdY4fiwvxx4DoirjWV2qbQVEWbdK2a3xdZVGO VuVZY4fk1ElZSyA/v8iZAVxCsuiMCppC8583Q= Received: by 10.216.50.72 with SMTP id y50mr2290080web.34.1291416995749; Fri, 03 Dec 2010 14:56:35 -0800 (PST) Received: from gumby.homeunix.com (bb-87-81-140-128.ukonline.co.uk [87.81.140.128]) by mx.google.com with ESMTPS id w41sm1154959weq.32.2010.12.03.14.56.33 (version=SSLv3 cipher=RC4-MD5); Fri, 03 Dec 2010 14:56:34 -0800 (PST) Date: Fri, 3 Dec 2010 22:56:31 +0000 From: RW To: freebsd-hackers@freebsd.org Message-ID: <20101203225631.4ec30063@gumby.homeunix.com> X-Mailer: Claws Mail 3.7.6 (GTK+ 2.22.1; i386-portbld-freebsd8.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: MADV_FREE and vm_page_dontneed() 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, 03 Dec 2010 23:22:25 -0000 Is there a good reason why physical memory pages released by madvise(...,MADV_FREE) get handled by vm_page_dontneed()? vm_page_dontneed() leaves page that are already in the inactive queue where they are, and otherwise distributes pages between the active queue, and the inactive queue's tail and head in the ratio 1:3:28. That seems reasonable for MADV_DONTNEED, but MADV_FREE pages are from freed dynamic memory, so passing them to vm_page_dontneed() leads to wasted pages building-up in the active and inactive queues. Wouldn't it make more sense to move all eligible MADV_FREE pages to the head of the inactive queue? From owner-freebsd-hackers@FreeBSD.ORG Sat Dec 4 04:05:10 2010 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 2EDD9106566B for ; Sat, 4 Dec 2010 04:05:10 +0000 (UTC) (envelope-from jamesbrandongooch@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id B763D8FC12 for ; Sat, 4 Dec 2010 04:05:09 +0000 (UTC) Received: by wwf26 with SMTP id 26so5908717wwf.31 for ; Fri, 03 Dec 2010 20:05:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=27tOmAA8kUhOvTtE1V5d3Z59AUnermsz3QUNfz+MhZw=; b=uxfnDNhzd5Tq1uSZCHiclvf9OplnVotzBd+NspsiBKO/C/4Bt8CS3QvYE+CRXEIPxr vT2cNEK0cBQ+qoqR5gpYhswPdHa5D5YZqRNoB6BhJBnU+h0xHxDnEPSih2xG0EMKP5mJ rzaLqkM28AawwokSNTtlCEs+f+7NQTCTtsmps= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=Fw0gqNNd0Z0IyCtVTI2MMOxFzqA1R/F+ZDGKLpq7DG8tzQkmbHx3XMNWuS985TS28X eLTTkFtywS/JTD9Y4se42AaC69NWMAB2q4xiiKME69wpUE6PkeqCccG4QK79dmFnLHS6 DmdjuaqY9Jpqp7rs9EnaymQghYp1YLBX32Xpc= MIME-Version: 1.0 Received: by 10.216.171.75 with SMTP id q53mr2386687wel.74.1291435508489; Fri, 03 Dec 2010 20:05:08 -0800 (PST) Received: by 10.216.12.80 with HTTP; Fri, 3 Dec 2010 20:05:08 -0800 (PST) In-Reply-To: References: Date: Fri, 3 Dec 2010 22:05:08 -0600 Message-ID: From: Brandon Gooch To: Artem Belevich Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-hackers@freebsd.org Subject: Re: DTrace: Sending ^C while running script produces no output 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: Sat, 04 Dec 2010 04:05:10 -0000 On Thu, Dec 2, 2010 at 11:48 PM, Artem Belevich wrote: > On Thu, Dec 2, 2010 at 9:46 PM, Artem Belevich wrote: >> On Thu, Dec 2, 2010 at 9:20 PM, Brandon Gooch >> wrote: >>> I've been tinkering with DTrace a bit, and I've notice something >>> peculiar on each system I've tried it on. >>> >>> Sending ^C from the keyboard in the terminal (console, XTerm, Konsole) >>> produces no output [1]. >>> >>> For example, while trying out a one-liner (from >>> http://www.brendangregg.com/DTrace/dtrace_oneliners.txt): >> >> I've got two boxes, both running stable-8/amd64. >> >> stable/8 r215749 (+cyclic patch) - reliably produces output, though >> for some reason does not count anything for 32-bit apps. >> stable/8 r215546 - seems to have the problem you've described. I did >> get normal output once out of 10 or so attempts. > > Tried on another box, also amd64: > > stable/8 r212650 - works fine. I've rebuilt kernel and world on every DTrace enabled system. I built from a clean svn checkout. I still see this behavior, although it's definitely the worst on HEAD: brandon@x300:/usr/src$ svn info (12-03 22:00) Path: . URL: svn://svn.freebsd.org/base/head Repository Root: svn://svn.freebsd.org/base Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f Revision: 216114 Node Kind: directory Schedule: normal Last Changed Author: lstewart Last Changed Rev: 216114 Last Changed Date: 2010-12-02 00:05:44 -0600 (Thu, 02 Dec 2010) The following NEVER works on this system running HEAD: brandon@x300:~$ sudo dtrace -n 'syscall:::entry { @num[execname] = count(); }' dtrace: description 'syscall:::entry ' matched 514 probes ^C brandon@x300:~$ (12-03 21:59) Of course, sending ANY signal to dtrace via pkill or killall promptly causes dtrace to spit out: brandon@x300:~$ sudo dtrace -n 'syscall:::entry { @num[execname] = count(); }' dtrace: description 'syscall:::entry ' matched 514 probes dbus-daemon 6 syslogd 7 ntpd 8 sendmail 9 hald-addon-storage 10 cut 39 hald 40 mixer 44 killall 51 powerd 55 zsh 69 openbox 90 dtrace 109 xterm 172 conky 180 sh 231 sudo 457 wpa_supplicant 648 Xorg 1557 firefox-bin 1992 brandon@x300:~$ (12-03 22:02) Very troubling. Question: Should I be rebuilding my ports (xterm, zsh, ksh, etc...) after updating to make sure that the proper things are happening when sending these keyboard interrupts? I'm really grasping here :/ -Brandon From owner-freebsd-hackers@FreeBSD.ORG Sat Dec 4 11:33:13 2010 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 5C054106564A for ; Sat, 4 Dec 2010 11:33:13 +0000 (UTC) (envelope-from dnaeon@gmail.com) Received: from mail-ew0-f51.google.com (mail-ew0-f51.google.com [209.85.215.51]) by mx1.freebsd.org (Postfix) with ESMTP id DD3208FC17 for ; Sat, 4 Dec 2010 11:33:12 +0000 (UTC) Received: by ewy19 with SMTP id 19so8219421ewy.10 for ; Sat, 04 Dec 2010 03:33:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=JTwH4y6JzJl7vsue4zudz7kKWmq046lYZOsCVjKY4C4=; b=CS2PR828+x578VKWgUxURZoPR7Sv/tUZJ7N01VxFOQTXh4BzMs4S+eGxYEO7vGXhQl vh/IxQmXv6sTeWpE6VltoEiOwPnhP80pAP6obubifIBYcqT1pIFJ0HIP0sQFTqlDMT2L 4/PPxFhT9fxLgLZjfLZ2L/gWBN/eQvoB7wZb4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=Y67R44nB5SGNSQO/WHi8ZaQUSqgW+k/V8zUdNTi9qmo34p4m9mUImxcLFGE68xWc7U 2pZ/vfZvSPthyCPn1YCuD3ajBJ+eeZqx+16QhIg5JkDFd6t9oC7JtRcANcLz2d2ZpRPM R6BkSyQtLUL5W1ylaxkD8se+r0PfYwSZyYvwc= MIME-Version: 1.0 Received: by 10.213.31.212 with SMTP id z20mr764652ebc.98.1291462391559; Sat, 04 Dec 2010 03:33:11 -0800 (PST) Received: by 10.213.30.15 with HTTP; Sat, 4 Dec 2010 03:33:11 -0800 (PST) Date: Sat, 4 Dec 2010 13:33:11 +0200 Message-ID: From: Marin Atanasov Nikolov To: freebsd-hackers@freebsd.org Content-Type: multipart/mixed; boundary=0015175ccfac16f6770496940574 Subject: [PATCH] Add HISTORY to strlen(3) and strstr(3) man pages 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: Sat, 04 Dec 2010 11:33:13 -0000 --0015175ccfac16f6770496940574 Content-Type: text/plain; charset=ISO-8859-1 Hello, Could someone review the attached patches and possibly commit them? The patches add HISTORY for the strstr(), strnstr(), strlen() and strnlen() functions. Thanks, Marin -- Marin Atanasov Nikolov dnaeon AT gmail DOT com daemon AT unix-heaven DOT org http://www.unix-heaven.org/ --0015175ccfac16f6770496940574 Content-Type: text/x-patch; charset=US-ASCII; name="strlen.3.patch" Content-Disposition: attachment; filename="strlen.3.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_ghaf9o0t0 SW5kZXg6IGxpYi9saWJjL3N0cmluZy9zdHJsZW4uMwo9PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBsaWIvbGliYy9z dHJpbmcvc3RybGVuLjMJKHJldmlzaW9uIDIxNjE3OCkKKysrIGxpYi9saWJjL3N0cmluZy9zdHJs ZW4uMwkod29ya2luZyBjb3B5KQpAQCAtOTAsMyArOTAsMTIgQEAKIC5GbiBzdHJubGVuCiBmdW5j dGlvbiBjb25mb3JtcyB0bwogLlN0IC1wMTAwMy4xLTIwMDggLgorLlNoIEhJU1RPUlkKK1RoZQor LkZuIHN0cmxlbgorZnVuY3Rpb24gZmlyc3QgYXBwZWFyZWQgaW4KKy5CeCA0LjQgLgorVGhlIAor LkZuIHN0cm5sZW4KK2Z1bmN0aW9uIHdhcyBhZGRlZCBpbgorLkZ4IDguMCAuCg== --0015175ccfac16f6770496940574 Content-Type: text/x-patch; charset=US-ASCII; name="strstr.3.patch" Content-Disposition: attachment; filename="strstr.3.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_ghaf9xwm1 SW5kZXg6IGxpYi9saWJjL3N0cmluZy9zdHJzdHIuMwo9PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBsaWIvbGliYy9z dHJpbmcvc3Ryc3RyLjMJKHJldmlzaW9uIDIxNjE3OCkKKysrIGxpYi9saWJjL3N0cmluZy9zdHJz dHIuMwkod29ya2luZyBjb3B5KQpAQCAtMTQzLDMgKzE0MywxMiBAQAogZnVuY3Rpb24KIGNvbmZv cm1zIHRvCiAuU3QgLWlzb0MgLgorLlNoIEhJU1RPUlkKK1RoZQorLkZuIHN0cnN0cgorZnVuY3Rp b24gZmlyc3QgYXBwZWFyZWQgaW4KKy5CeCA0LjQgLgorVGhlCisuRm4gc3RybnN0cgorZnVuY3Rp b24gd2FzIGFkZGVkIGluCisuRnggNC41IC4K --0015175ccfac16f6770496940574-- From owner-freebsd-hackers@FreeBSD.ORG Sat Dec 4 12:05:36 2010 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 6BF30106566B for ; Sat, 4 Dec 2010 12:05:36 +0000 (UTC) (envelope-from matthias.andree@gmx.de) Received: from mail.gmx.net (mailout-de.gmx.net [213.165.64.22]) by mx1.freebsd.org (Postfix) with SMTP id AE65D8FC15 for ; Sat, 4 Dec 2010 12:05:35 +0000 (UTC) Received: (qmail invoked by alias); 04 Dec 2010 11:38:54 -0000 Received: from f055110181.adsl.alicedsl.de (EHLO baloo.cs.uni-paderborn.de) [78.55.110.181] by mail.gmx.net (mp020) with SMTP; 04 Dec 2010 12:38:54 +0100 X-Authenticated: #428038 X-Provags-ID: V01U2FsdGVkX1+RR/ARBe+Rd82plypxSFV1tq64PC0HCK4fjk2kVz ywPqz01brBgl5x Received: from [127.0.0.1] by baloo.cs.uni-paderborn.de with esmtp (Exim 4.70) (envelope-from ) id LCWJ0Q-0001J4-DR for freebsd-hackers@freebsd.org; Sat, 04 Dec 2010 12:38:50 +0100 Message-ID: <4CFA284A.2050501@gmx.de> Date: Sat, 04 Dec 2010 12:38:50 +0100 From: Matthias Andree User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.12) Gecko/20101027 Lightning/1.0b2 Thunderbird/3.1.6 MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: In-Reply-To: X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 Subject: Re: [PATCH] Add HISTORY to strlen(3) and strstr(3) man pages 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: Sat, 04 Dec 2010 12:05:36 -0000 Am 04.12.2010 12:33, schrieb Marin Atanasov Nikolov: > Hello, > > Could someone review the attached patches and possibly commit them? > > The patches add HISTORY for the strstr(), strnstr(), strlen() and > strnlen() functions. > > Thanks, > Marin I find it hard to believe the versions especially for strstr and strlen. -- Matthias Andree From owner-freebsd-hackers@FreeBSD.ORG Sat Dec 4 16:00:05 2010 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 A762A106566B for ; Sat, 4 Dec 2010 16:00:05 +0000 (UTC) (envelope-from dnaeon@gmail.com) Received: from mail-ew0-f51.google.com (mail-ew0-f51.google.com [209.85.215.51]) by mx1.freebsd.org (Postfix) with ESMTP id 1A2DA8FC0C for ; Sat, 4 Dec 2010 16:00:04 +0000 (UTC) Received: by ewy19 with SMTP id 19so8295007ewy.10 for ; Sat, 04 Dec 2010 08:00:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=mtELI5vyJZkvvNzJeCYjjCt98ka1yTd+UUp2DE4muUc=; b=snECLL8NzkudlpTwkyHBTsoG9c1C2Iixf+AkBv6JrSZhMh5B2Xpvo7jZCbt29cdOnw 1fdY2Z9S2f3vaP2Qx5RxM7IvLNfN4BBmu8si8F/xiqYf38UIQ7hjPLSBVSD0PQN1Qj0n XNHL3GudlpeK0gYfxsHneyk0MzqgI5N5ZqIFQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=UCwxgqo9joZuclKq7c5KVFei4CLPtp/2v8qykgZhas+qHpxR2kuI5Ue/QLzKRmFgPB CxZnZduX+Zk+e+fZMhLNEfTp8XRMsloutNrdfqOTX/39mNL5qMwr7aU9V6ca3p+71mqN ifYkbPlAuJ3WR7V/iHs3OxcHJjjYXa4xsqOUc= MIME-Version: 1.0 Received: by 10.213.17.147 with SMTP id s19mr438185eba.59.1291478402314; Sat, 04 Dec 2010 08:00:02 -0800 (PST) Received: by 10.213.30.15 with HTTP; Sat, 4 Dec 2010 08:00:02 -0800 (PST) In-Reply-To: <4CFA284A.2050501@gmx.de> References: <4CFA284A.2050501@gmx.de> Date: Sat, 4 Dec 2010 18:00:02 +0200 Message-ID: From: Marin Atanasov Nikolov To: Matthias Andree Content-Type: multipart/mixed; boundary=0015174bee0067afe7049697bf2f Cc: freebsd-hackers@freebsd.org Subject: Re: [PATCH] Add HISTORY to strlen(3) and strstr(3) man pages 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: Sat, 04 Dec 2010 16:00:05 -0000 --0015174bee0067afe7049697bf2f Content-Type: text/plain; charset=ISO-8859-1 On Sat, Dec 4, 2010 at 1:38 PM, Matthias Andree wrote: > Am 04.12.2010 12:33, schrieb Marin Atanasov Nikolov: >> Hello, >> >> Could someone review the attached patches and possibly commit them? >> >> The patches add HISTORY for the strstr(), strnstr(), strlen() and >> strnlen() functions. >> >> Thanks, >> Marin > > I find it hard to believe the versions especially for strstr and strlen. You are so right about that :) That must be one those copy-paste mistakes :) I've attached the new patches. Regards, Marin > > -- > Matthias Andree > _______________________________________________ > 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" > -- Marin Atanasov Nikolov dnaeon AT gmail DOT com daemon AT unix-heaven DOT org http://www.unix-heaven.org/ --0015174bee0067afe7049697bf2f Content-Type: text/x-patch; charset=US-ASCII; name="strlen.3.patch" Content-Disposition: attachment; filename="strlen.3.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_ghaou5vk0 SW5kZXg6IGhlYWQvbGliL2xpYmMvc3RyaW5nL3N0cmxlbi4zCj09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIGhlYWQv bGliL2xpYmMvc3RyaW5nL3N0cmxlbi4zCShyZXZpc2lvbiAyMTYxNzgpCisrKyBoZWFkL2xpYi9s aWJjL3N0cmluZy9zdHJsZW4uMwkod29ya2luZyBjb3B5KQpAQCAtOTAsMyArOTAsOCBAQAogLkZu IHN0cm5sZW4KIGZ1bmN0aW9uIGNvbmZvcm1zIHRvCiAuU3QgLXAxMDAzLjEtMjAwOCAuCisuU2gg SElTVE9SWQorVGhlIAorLkZuIHN0cm5sZW4KK2Z1bmN0aW9uIHdhcyBhZGRlZCBpbgorLkZ4IDgu MCAuCg== --0015174bee0067afe7049697bf2f Content-Type: text/x-patch; charset=US-ASCII; name="strstr.3.patch" Content-Disposition: attachment; filename="strstr.3.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_ghaoubpd1 SW5kZXg6IGhlYWQvbGliL2xpYmMvc3RyaW5nL3N0cnN0ci4zCj09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIGhlYWQv bGliL2xpYmMvc3RyaW5nL3N0cnN0ci4zCShyZXZpc2lvbiAyMTYxNzgpCisrKyBoZWFkL2xpYi9s aWJjL3N0cmluZy9zdHJzdHIuMwkod29ya2luZyBjb3B5KQpAQCAtMTQzLDMgKzE0Myw4IEBACiBm dW5jdGlvbgogY29uZm9ybXMgdG8KIC5TdCAtaXNvQyAuCisuU2ggSElTVE9SWQorVGhlCisuRm4g c3RybnN0cgorZnVuY3Rpb24gd2FzIGFkZGVkIGluCisuRnggNC41IC4K --0015174bee0067afe7049697bf2f-- From owner-freebsd-hackers@FreeBSD.ORG Sat Dec 4 20:33:04 2010 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 5E1391065693 for ; Sat, 4 Dec 2010 20:33:04 +0000 (UTC) (envelope-from avg@freebsd.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 9D5D48FC12 for ; Sat, 4 Dec 2010 20:33:03 +0000 (UTC) Received: from porto.topspin.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id WAA13285; Sat, 04 Dec 2010 22:33:00 +0200 (EET) (envelope-from avg@freebsd.org) Received: from localhost.topspin.kiev.ua ([127.0.0.1]) by porto.topspin.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1POymx-0005g9-Vw; Sat, 04 Dec 2010 22:33:00 +0200 Message-ID: <4CFAA579.1010701@freebsd.org> Date: Sat, 04 Dec 2010 22:32:57 +0200 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.12) Gecko/20101029 Lightning/1.0b2 Thunderbird/3.1.6 MIME-Version: 1.0 To: Brandon Gooch References: In-Reply-To: X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: DTrace: Sending ^C while running script produces no output 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: Sat, 04 Dec 2010 20:33:04 -0000 on 03/12/2010 07:20 Brandon Gooch said the following: > I've been tinkering with DTrace a bit, and I've notice something > peculiar on each system I've tried it on. > > Sending ^C from the keyboard in the terminal (console, XTerm, Konsole) > produces no output [1]. Can you ktrace the dtrace process? I wonder, could it be that SIGINT from ^C is somehow delivered twice?.. > For example, while trying out a one-liner (from > http://www.brendangregg.com/DTrace/dtrace_oneliners.txt): > > brandon@d820:~$ sudo dtrace -n 'syscall:::entry { @num[execname] = count(); }' > dtrace: description 'syscall:::entry ' matched 514 probes > ^C BTW, sudo might play a role here... Just a thought. > brandon@d820:~$ (12-02 23:11) > > > If I instead, from another terminal, use pkill to quit or terminate > the process, I get output: > > brandon@d820:~$ sudo dtrace -n 'syscall:::entry { @num[execname] = count(); }'; > dtrace: description 'syscall:::entry ' matched 514 probes > > > akonadi_control 4 > akonadiserver 5 > syslogd 6 > sendmail 8 > akonadi_ical_resour 12 > akonadi_maildir_res 12 > akonadi_nepomuk_con 12 > akonadi_vcard_resou 12 > kuiserver 12 > akonadi_maildispatc 14 > korgac 14 > virtuoso-t 15 > dbus-daemon 17 > mysqld 18 > hald 24 > knotify4 27 > akonadi_contacts_re 36 > nepomukservicestub 70 > pkill 70 > powerd 72 > dtrace 101 > zsh 111 > sudo 495 > kwin 2812 > firefox-bin 3175 > kdeinit4 11044 > Xorg 39588 > brandon@d820:~$ (12-02 23:14) > > > I also want to add that I've tried this with a variety of shells on > both 8.2-PRERELEASE and HEAD systems, i386 and amd64, built with GCC > and nearly GENERIC kernels in order to try to eliminate the cause. > > I feel as though this has something to do with file descriptors being > closed too soon when handling the signal or something of that nature. > It's also been suggested that this could be a bug in libdtrace, but I > haven't the knowledge (or skill) to try and pinpoint the cause myself. > > Is there anyone here that may be able to provide feedback or debugging > suggestions? > > Thanks! > > -Brandon > > [1] This isn't always the case, only like 99.99% of the time. > Sometimes I do get output, but usually it's just snippets, and > sometimes random characters! -- Andriy Gapon From owner-freebsd-hackers@FreeBSD.ORG Sat Dec 4 21:27:23 2010 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 5519B106566B; Sat, 4 Dec 2010 21:27:23 +0000 (UTC) (envelope-from jamesbrandongooch@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id B581E8FC17; Sat, 4 Dec 2010 21:27:22 +0000 (UTC) Received: by wyf19 with SMTP id 19so10841101wyf.13 for ; Sat, 04 Dec 2010 13:27:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=9TF363+E7Lb7FG9fRqoZvbhpcaEfVWgJwEzb9YP+wEs=; b=GEigaw43SfcsMxcRtXGFJgcIRhUhZ05jV/pQtOYUeSSt/Dhsk30u5Rf5ewoiY2Vej2 kj9E3inS1ospIMxdIbdijgc9VM1/jybg5YTg0154r85LrSCh6ilv4L1EG6EXJx2LOfJs Qr6QfCULAe/xwPeMjpLdDnzYoIfYiaza9aotw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=uumqjujIMSbLp3iGf9ShissW9UN0ezvUYUtL0Ut7PM2hhENEkBRBTQCNjFhxMfuYX6 1EFskoVoZ6HqZgB3w6Qg4IVoDigje+zOxuLavgJbiUj5loALQCqrIXhxS3JERYukCbeK xJbgRGTmFrmvCjdyqmRPsMk5E+nbCjqAU8H+U= MIME-Version: 1.0 Received: by 10.216.28.72 with SMTP id f50mr3017798wea.104.1291498041268; Sat, 04 Dec 2010 13:27:21 -0800 (PST) Received: by 10.216.12.80 with HTTP; Sat, 4 Dec 2010 13:27:21 -0800 (PST) In-Reply-To: <4CFAA579.1010701@freebsd.org> References: <4CFAA579.1010701@freebsd.org> Date: Sat, 4 Dec 2010 15:27:21 -0600 Message-ID: From: Brandon Gooch To: Andriy Gapon Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org Subject: Re: DTrace: Sending ^C while running script produces no output 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: Sat, 04 Dec 2010 21:27:23 -0000 On Sat, Dec 4, 2010 at 2:32 PM, Andriy Gapon wrote: > on 03/12/2010 07:20 Brandon Gooch said the following: >> I've been tinkering with DTrace a bit, and I've notice something >> peculiar on each system I've tried it on. >> >> Sending ^C from the keyboard in the terminal (console, XTerm, Konsole) >> produces no output [1]. > > Can you ktrace the dtrace process? > I wonder, could it be that SIGINT from ^C is somehow delivered twice?.. I'll give it a shot in just a bit. >> For example, while trying out a one-liner (from >> http://www.brendangregg.com/DTrace/dtrace_oneliners.txt): >> >> brandon@d820:~$ sudo dtrace -n 'syscall:::entry { @num[execname] =3D cou= nt(); }' >> dtrace: description 'syscall:::entry ' matched 514 probes >> ^C > > BTW, sudo might play a role here... =A0Just a thought. I could see that for sure. I can't believe I hadn't thought of that right off the bat, but then again I tested while logged in as root from the console -- I think :/ Human memory is unreliable y'know... -Brandon