From owner-freebsd-hackers@freebsd.org Sun Jun 28 05:39:28 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B2A1898EFE9 for ; Sun, 28 Jun 2015 05:39:28 +0000 (UTC) (envelope-from f0andrey@gmail.com) Received: from mail-wi0-x22b.google.com (mail-wi0-x22b.google.com [IPv6:2a00:1450:400c:c05::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DC631F2E for ; Sun, 28 Jun 2015 05:39:28 +0000 (UTC) (envelope-from f0andrey@gmail.com) Received: by wiga1 with SMTP id a1so46070832wig.0 for ; Sat, 27 Jun 2015 22:39:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=PmyM6JZVzH+s76+CzEQ0SW7CZAUqMa42eGBOF+yaixo=; b=XE3l/zqen9j6tWMphjLYBZPeJmbVetNv/tI9h941Gz+29frvOZ2brrMLWR+JsrdnSh Gcmb8E5RtaV75c2xQvWjUeoNeGtnVNlMeE9NBNvVoCpm6Zj/6QbjSZd+Vq/D0SPg0Yqd FBurhI80r7jzywKRkS4W1Fq2vYHHDZI/Du5LmIdWdb+DlOKazFz3QrMaL+hlfPAs71BD plQHOytvRikrDpZ2TAo6B4c0XuEal/IK1bI3rd6aMVP2VYGGASTq1Ls/zBEm1e9iXfeP tXtj/55aZLpZ27JBs50Jvo8T72CfXex6DPVnI1U2+zrjHa/mK/r3NG8GACGrx9ZJMKEL onpQ== MIME-Version: 1.0 X-Received: by 10.180.89.231 with SMTP id br7mr11124343wib.60.1435469965687; Sat, 27 Jun 2015 22:39:25 -0700 (PDT) Received: by 10.194.64.102 with HTTP; Sat, 27 Jun 2015 22:39:25 -0700 (PDT) In-Reply-To: <55761E58.6040704@metricspace.net> References: <5560F4FE.4030502@metricspace.net> <5560F743.9000507@metricspace.net> <7CD9D028-8BCE-4361-966B-140642BAE341@metricspace.net> <98598C0A-D09A-4BC7-A15C-5422BBA2EE4C@gmail.com> <55761E58.6040704@metricspace.net> Date: Sun, 28 Jun 2015 08:39:25 +0300 Message-ID: Subject: Re: EFI ZFS loader successful load and boot From: Andrey Fesenko To: Eric McCorkle Cc: "freebsd-hackers@freebsd.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 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 Jun 2015 05:39:28 -0000 On Tue, Jun 9, 2015 at 1:59 AM, Eric McCorkle wrote: > OK, finally got time to turn the knobs. This patch should make it > through a buildworld. > > I will at some point add functionality to boot1 to actually check the > partition type GUIDs. > > That aside, this is ready for testing, and I've been EFI-booting a ZFS > partition from GRUB using this patch for a while now. > > On 05/26/2015 10:22 AM, Garrett Cooper wrote: >> >>> On May 26, 2015, at 05:34, Eric McCorkle wrote: >>> >>> Updates: with a new kernel, and the vt terminal, this works fine. >>> >>> Unfortunately, the patch doesn't seem to work with a buildworld build (= I was doing make from within the directories). This is related to a hack I = do of copying zfs.c into the efi loader directory so it can be built with f= PIC. The build system seems to get tripped up in mkdep as a result. >>> >>> Could someone with more knowledge of the build system give me some poin= ters here? Otherwise, is all set for testing. >> >> DPSRCS/CLEANFILES are probably the knobs you're looking for... Hello, Can you describe in more detail the procedure for the use of a new boot loader, how to partition and what files where you want to record? Until I got here the results link to screenshots: http://f-andrey.tumblr.com/post/122566594208/freebsd-uefi-zfs Unable to load the kernel, i'm make simple gpart structure GPT efi part <- write /boot/loader.efi as efi/boot/bootx64.efi ZFS root pool From owner-freebsd-hackers@freebsd.org Sun Jun 28 06:26:07 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E9BF198F5A1 for ; Sun, 28 Jun 2015 06:26:07 +0000 (UTC) (envelope-from pkelsey@gmail.com) Received: from mail-yk0-x230.google.com (mail-yk0-x230.google.com [IPv6:2607:f8b0:4002:c07::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AB9DF114D; Sun, 28 Jun 2015 06:26:07 +0000 (UTC) (envelope-from pkelsey@gmail.com) Received: by ykdt186 with SMTP id t186so91030321ykd.0; Sat, 27 Jun 2015 23:26:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=T1BIPLHrz0Zhmj19fyXMCv02eju6erKkvv6XppMvfwg=; b=gsen7DcZats59P+d+P5vwZsuxuC0nDvAXHHB6xSV/o95//kp45QJmDzZgCQYFqB0YD pVMCOQj4IlMWb0exQhdJ4Ebfm1pYfwsyqzUFZfbgo18tZw9cC+oabIOpaNt4D0bqHriu JPTlHgX/6fvcACYYzjFrr/EmvfTud4CwxWw9rZacYNqc8g8jpUNySHQzCytp+yCflROl jT/LD8DDmNq6k8+Enwq2Cp5H8LJOyRlDEdmdBRYI1bcTYGtYRIdF5EvkYa9KD5Njl8Fk gWSqQqIkZKEjB69UDtBvYMd7bvkl25pbNbS19vyUTX/zpm8VivMZOuBqb+30Z6ZtGqo8 KcBw== MIME-Version: 1.0 X-Received: by 10.129.36.14 with SMTP id k14mr11188334ywk.64.1435472766635; Sat, 27 Jun 2015 23:26:06 -0700 (PDT) Sender: pkelsey@gmail.com Received: by 10.13.219.136 with HTTP; Sat, 27 Jun 2015 23:26:06 -0700 (PDT) In-Reply-To: <558F1D88.8010407@ignoranthack.me> References: <558F1D88.8010407@ignoranthack.me> Date: Sun, 28 Jun 2015 02:26:06 -0400 X-Google-Sender-Auth: On8h7LyISaIceOXVgeh4-A10Y5o Message-ID: Subject: Re: sysctl(3) man page examples From: Patrick Kelsey To: sbruno@freebsd.org Cc: "freebsd-hackers@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 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 Jun 2015 06:26:08 -0000 On Sat, Jun 27, 2015 at 6:02 PM, Sean Bruno wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA512 > > sysctl(3) specifies three easy to understand examples. > > The first appears to depend on a FreeBSD libc() function or library that > is missing, "printkproc()". Is this a deprecated/deleted function from > the past? > This example was committed in r71409, which was between the 4.2 and 4.3 releases. Today, and at that time, the result of fetching a particular kern.proc.pid is a struct kinfo_proc, not struct kinfo_kproc (which did and does not exist). There appears to never have been a printkproc() function (nor print_kproc(), nor printproc(), nor print_proc()) - this seems to be a function that is assumed to exist elsewhere in the unseen parts of the example program. > > The second example works just fine. > > The third accesss user.cs_path which seems to be empty across all > platforms. I'm not sure if we should replace this example with > something more meaningful(that is to say that its proper for > user.cs_path to be empty) or if there is a bug causing user.cs_path to > be empty. > > This appears to be a bug that was introduced almost three years ago in r240176. sysctl() in lib/libc/gen/sysctl.c has special handling for USER_CS_PATH that returns the value of _PATH_STDPATH, which is "/usr/bin:/bin:/usr/sbin:/sbin". However, this special handling for USER_CS_PATH was short circuited by r240176, which introduced the requirement that __sysctl() return ENOENT in order to reach the special USER_CS_PATH handling. However, __sysctl() doesn't return ENOENT for USER_CS_PATH because there is a sysctl entry for it (containing an empty string) that is created in sys/kern/kern_mib.c, apparently so that user.cs_path exists when enumerating the names in the sysctl tree. -Patrick From owner-freebsd-hackers@freebsd.org Sun Jun 28 14:16:23 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 09E8C98FF5F for ; Sun, 28 Jun 2015 14:16:23 +0000 (UTC) (envelope-from eric@metricspace.net) Received: from mail.metricspace.net (mail.metricspace.net [IPv6:2001:470:1f11:617::103]) by mx1.freebsd.org (Postfix) with ESMTP id CF6241C69 for ; Sun, 28 Jun 2015 14:16:22 +0000 (UTC) (envelope-from eric@metricspace.net) Received: from [IPv6:2001:470:1f11:617:5ef7:830:9e60:2038] (unknown [IPv6:2001:470:1f11:617:5ef7:830:9e60:2038]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: eric) by mail.metricspace.net (Postfix) with ESMTPSA id 220DD296B2; Sun, 28 Jun 2015 14:16:21 +0000 (UTC) Message-ID: <559001B7.5000503@metricspace.net> Date: Sun, 28 Jun 2015 10:16:23 -0400 From: Eric McCorkle User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Andrey Fesenko CC: "freebsd-hackers@freebsd.org" Subject: Re: EFI ZFS loader successful load and boot References: <5560F4FE.4030502@metricspace.net> <5560F743.9000507@metricspace.net> <7CD9D028-8BCE-4361-966B-140642BAE341@metricspace.net> <98598C0A-D09A-4BC7-A15C-5422BBA2EE4C@gmail.com> <55761E58.6040704@metricspace.net> In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="uCV4vOgtbRVXN3ALrCL7DgLMtQdQh3cxl" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 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 Jun 2015 14:16:23 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --uCV4vOgtbRVXN3ALrCL7DgLMtQdQh3cxl Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Looking at your screenshots, it looks like the ZFS pool is being detected, but not initialized correctly. Are you certain you have the latest version of the patch? This looks similar to errors I was getting earlier in development, before I figured out the code for setting everything up correctly. On 06/28/2015 01:39 AM, Andrey Fesenko wrote: > On Tue, Jun 9, 2015 at 1:59 AM, Eric McCorkle wr= ote: >> OK, finally got time to turn the knobs. This patch should make it >> through a buildworld. >> >> I will at some point add functionality to boot1 to actually check the >> partition type GUIDs. >> >> That aside, this is ready for testing, and I've been EFI-booting a ZFS= >> partition from GRUB using this patch for a while now. >> >> On 05/26/2015 10:22 AM, Garrett Cooper wrote: >>> >>>> On May 26, 2015, at 05:34, Eric McCorkle wrot= e: >>>> >>>> Updates: with a new kernel, and the vt terminal, this works fine. >>>> >>>> Unfortunately, the patch doesn't seem to work with a buildworld buil= d (I was doing make from within the directories). This is related to a ha= ck I do of copying zfs.c into the efi loader directory so it can be built= with fPIC. The build system seems to get tripped up in mkdep as a result= =2E >>>> >>>> Could someone with more knowledge of the build system give me some p= ointers here? Otherwise, is all set for testing. >>> >>> DPSRCS/CLEANFILES are probably the knobs you're looking for... >=20 > Hello, > Can you describe in more detail the procedure for the use of a new > boot loader, how to partition and what files where you want to record? >=20 > Until I got here the results link to screenshots: > http://f-andrey.tumblr.com/post/122566594208/freebsd-uefi-zfs >=20 > Unable to load the kernel, i'm make simple gpart structure >=20 > GPT > efi part <- write /boot/loader.efi as efi/boot/bootx64.efi > ZFS root pool >=20 --uCV4vOgtbRVXN3ALrCL7DgLMtQdQh3cxl Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBAgAGBQJVkAG+AAoJEEGB2s+NNG0FZpcP/R00+o//2gsToMevhaBBJo7n O8ESv5QB4pLjoNRTY8/iG0KYR954N5NZBEuBEJxckCZSTdfULQ/5mAzfYr6c6oVj RKCzhjjWPKqoj18JzMXD1ZvMgpsEb49rQX2JDFpxkgzBZDlMStspktGHpdZyMJKG 7mMmmeuyc/c9o+H15mMWne3EB1tRycqPjUSBgXuXEaUeCjZPFJLcZ+Lkm+GgSQyk DmQZczI0vcqWTJQ1zvnPu886Zqw3DuPmYIdVi5ittOui47lMYKNFFnKHCpmmaY9G BXSCqWIuqkPcdR/sidGsGgivi8CMBf13KrqElw4iR3D91VfbLW4Gzwz7w9gSyYBL +54wFO+S+2k1wOwvDLikCuk2Zn/hCV8uwTYgO9+VD2fLFLvBRvcuEpICmco4lN5r pYkAOAGYtRZ9UPlf2/KvoWBt3nSQFSF/ZO17r8RCBJEt3I8EVF5O3JUx3cbwoOMd c8VsJb5rCuxvMzGIWcfiMgUeiZwkwT2zppbTF+pgaPQGdNTY2CsEQz1V21UCCBQ1 b/wcjzPy9ISJq83PUZ79xjO7FDleVWfJq2ktkwLO1zYFW3IrdM6C7uLZZiuLOHLi kEJ+iJU0Q/g96OF3FHIbbH2DiKVV/pMk4FsYS60Dw0kKBCSflruNjTQu2PHt5gz1 sDqZT6KngzbFj4BPWqv4 =Ioxa -----END PGP SIGNATURE----- --uCV4vOgtbRVXN3ALrCL7DgLMtQdQh3cxl-- From owner-freebsd-hackers@freebsd.org Sun Jun 28 14:19:11 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DD93F98FFBF for ; Sun, 28 Jun 2015 14:19:11 +0000 (UTC) (envelope-from eric@metricspace.net) Received: from mail.metricspace.net (mail.metricspace.net [IPv6:2001:470:1f11:617::103]) by mx1.freebsd.org (Postfix) with ESMTP id AF6C71E37 for ; Sun, 28 Jun 2015 14:19:11 +0000 (UTC) (envelope-from eric@metricspace.net) Received: from [IPv6:2001:470:1f11:617:5ef7:830:9e60:2038] (unknown [IPv6:2001:470:1f11:617:5ef7:830:9e60:2038]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: eric) by mail.metricspace.net (Postfix) with ESMTPSA id D65CD296B7 for ; Sun, 28 Jun 2015 14:19:04 +0000 (UTC) Message-ID: <5590025E.9030907@metricspace.net> Date: Sun, 28 Jun 2015 10:19:10 -0400 From: Eric McCorkle User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Subject: Re: EFI ZFS loader successful load and boot References: <5560F4FE.4030502@metricspace.net> <5560F743.9000507@metricspace.net> <7CD9D028-8BCE-4361-966B-140642BAE341@metricspace.net> <98598C0A-D09A-4BC7-A15C-5422BBA2EE4C@gmail.com> <55761E58.6040704@metricspace.net> In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="gUPdgaLvrExLsMHjo93F64Q6BNLTekWwJ" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 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 Jun 2015 14:19:12 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --gUPdgaLvrExLsMHjo93F64Q6BNLTekWwJ Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 06/28/2015 01:39 AM, Andrey Fesenko wrote: > Unable to load the kernel, i'm make simple gpart structure >=20 > GPT > efi part <- write /boot/loader.efi as efi/boot/bootx64.efi > ZFS root pool Just saw this part. You want to write /boot/boot1.efi to efi/boot/bootx64.efi, not loader. --gUPdgaLvrExLsMHjo93F64Q6BNLTekWwJ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBAgAGBQJVkAJiAAoJEEGB2s+NNG0FcLkQALMthAB1E+K0MsNE/ezBKggu 17GEFG+mdKqnGo2dQI4GDRY11di1q6/hUV6cgfwA/tDdVHcXIQqG1xAPnPB8G2k0 ytLHpkvL8WtTK/haZ+hwYndHkXxkU1lw4/6u3kZQxrY78HlGsUM5QKZp8pC2Kbq7 8hGKZK/G2jhNIALGQnTtSmMs5Oyewb9FhfOR7BkzdRwlZbe2hxSYbVzRy87wkoJj 82skZ70WEszZun65Gaj15F85LC+1CrC9DsvYn6ZL3EFsSeaJD3HSXvctuxIXNyKs 0OsaUNnlB37W3lJTYDhKP0wzj34cw5//QrPCikh/A/p689sNSICPJoMhpvCM444M DBcdQfm5kpJB1qhQVpFxyWzbbTZk1c54SbF8b+KS0azFpcjC1qAaURk2Up28Bdv6 s5+eOqQJrlmfTrLV5MfqQnYKx6vXyYCEQHPpWYanKpfubvBydzbqTopou/dzZEiN uU9EbkeFgxEQaMtmZ/K+ZIY9WerxC+LMCVm0IpjRj2Zi5e461nX5/X/mulMg01jG ls67sz8y68rnMV7aZqkptwX0ZIucEM3xleV2MZAnch5n9szunOU8eDXZrXpXnZX5 3jNMwroiZwn2REx5Nspnj9cjRkIOHa3wy8OxF7ofRlOqWYHtbXqfAcYij1t470iR 6xBRFFfRuYuOelPmLQ40 =oVmq -----END PGP SIGNATURE----- --gUPdgaLvrExLsMHjo93F64Q6BNLTekWwJ-- From owner-freebsd-hackers@freebsd.org Sun Jun 28 15:21:06 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D0CC998F937 for ; Sun, 28 Jun 2015 15:21:06 +0000 (UTC) (envelope-from j.deboynepollard-newsgroups@ntlworld.com) Received: from know-smtprelay-omc-2.server.virginmedia.net (know-smtprelay-omc-2.server.virginmedia.net [80.0.253.66]) by mx1.freebsd.org (Postfix) with ESMTP id 533A4127A for ; Sun, 28 Jun 2015 15:21:05 +0000 (UTC) (envelope-from j.deboynepollard-newsgroups@ntlworld.com) Received: from [192.168.1.100] ([86.20.122.200]) by know-smtprelay-2-imp with bizsmtp id lrKu1q01A4KXVwe01rKvcN; Sun, 28 Jun 2015 16:19:55 +0100 X-Originating-IP: [86.20.122.200] X-Spam: 0 X-Authority: v=2.1 cv=RLtOZNW+ c=1 sm=1 tr=0 a=WByauD8lJrWvBFCNrxRoEQ==:117 a=WByauD8lJrWvBFCNrxRoEQ==:17 a=NLZqzBF-AAAA:8 a=-0vIq9fx67kA:10 a=N659UExz7-8A:10 a=zizkCYwSUvl5dK1BSmYA:9 a=pILNOxqGKmIA:10 a=LCAnRaE0gTYA:10 Message-ID: <5590108E.2060300@NTLWorld.com> Date: Sun, 28 Jun 2015 16:19:42 +0100 From: Jonathan de Boyne Pollard User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: debian-user@lists.debian.org, "supervision@list.skarnet.org" , FreeBSD Hackers Subject: redo version 1.2 References: <54430B41.3010301@NTLWorld.com> <54B86FD5.3090203@NTLWorld.com> <554E53EF.4080600@NTLWorld.com> <554E93AF.3070709@NTLWorld.com> <556BA130.50708@NTLWorld.com> In-Reply-To: <556BA130.50708@NTLWorld.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 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 Jun 2015 15:21:06 -0000 redo is now at version 1.2 * http://homepage.ntlworld.com./jonathan.deboynepollard/Softwares/redo.html Two changes. First, as you can see, there's now a pre-built FreeBSD binary package. The second change is something that has been annoying me for some while. Sometimes, especially when one is building packages, one ends up with redo invoked by make. GNU make puts only flags in the MAKEFLAGS environment variable. BSD make, however, puts at least one macro definition in there too. redo was complaining about that, because it was only expecting flags. Now it knows to ignore macro definitions. (-: You'll need redo for one of the new (optional, of course) mechanisms in nosh version 1.17. From owner-freebsd-hackers@freebsd.org Sun Jun 28 15:29:01 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BE34398FC2A for ; Sun, 28 Jun 2015 15:29:01 +0000 (UTC) (envelope-from f0andrey@gmail.com) Received: from mail-wi0-x22c.google.com (mail-wi0-x22c.google.com [IPv6:2a00:1450:400c:c05::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2D3111E0B for ; Sun, 28 Jun 2015 15:29:01 +0000 (UTC) (envelope-from f0andrey@gmail.com) Received: by wicgi11 with SMTP id gi11so52671938wic.0 for ; Sun, 28 Jun 2015 08:28:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=r770KtuThOEFQhz29uAF5YVW+Ipf3tOYY53V7Zmyd18=; b=QinqT1zdng1HGYdllAHQkb/XZa2Pr1MCDI05v814hUGFM28qQSXCDiwbFNWLfF88D8 g4oY93+ttB+avTgWRqNNwHKcHJQ5asw0DEya9C83a0CjWlOnfpKT3faSRWlP++8jSWKR oeUqQiRnUJqmVT2hgXVQwhzPYX540ptZ7OvQHf0brHEpl1q9V1oyJG8RJUbKiZ0Kx06t wLyNdC+sBP3KeVDWD6T4a2sIrxfPP0YI6HfAbV6thxgP9lcGHbOpc3KE/Xb84LYxU44R 6/wjMfFeUZcz62oCR0tzxAh+9k/PCigTMnztKaOOuEM0x53A1ah+oZCU+czfg6i+4zZh iPwg== MIME-Version: 1.0 X-Received: by 10.194.87.4 with SMTP id t4mr22095214wjz.84.1435505339445; Sun, 28 Jun 2015 08:28:59 -0700 (PDT) Received: by 10.194.64.102 with HTTP; Sun, 28 Jun 2015 08:28:59 -0700 (PDT) In-Reply-To: <5590025E.9030907@metricspace.net> References: <5560F4FE.4030502@metricspace.net> <5560F743.9000507@metricspace.net> <7CD9D028-8BCE-4361-966B-140642BAE341@metricspace.net> <98598C0A-D09A-4BC7-A15C-5422BBA2EE4C@gmail.com> <55761E58.6040704@metricspace.net> <5590025E.9030907@metricspace.net> Date: Sun, 28 Jun 2015 18:28:59 +0300 Message-ID: Subject: Re: EFI ZFS loader successful load and boot From: Andrey Fesenko To: Eric McCorkle Cc: "freebsd-hackers@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 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 Jun 2015 15:29:01 -0000 On Sun, Jun 28, 2015 at 5:19 PM, Eric McCorkle wrote: > On 06/28/2015 01:39 AM, Andrey Fesenko wrote: > >> Unable to load the kernel, i'm make simple gpart structure >> >> GPT >> efi part <- write /boot/loader.efi as efi/boot/bootx64.efi >> ZFS root pool > > Just saw this part. You want to write /boot/boot1.efi to > efi/boot/bootx64.efi, not loader. > After this: Initialilizing modules: ZFS UFS Not ufs ZFS: i/o error - all block copies unavailable ZFS: can't read MOS of pool ( Could not load file Could not load file panic: No bootable partitions found It may be important i'm use beadm for root zfs and my root pool/ROOT/beadmname From owner-freebsd-hackers@freebsd.org Sun Jun 28 16:39:19 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D882E98F693 for ; Sun, 28 Jun 2015 16:39:19 +0000 (UTC) (envelope-from j.deboynepollard-newsgroups@ntlworld.com) Received: from know-smtprelay-omc-2.server.virginmedia.net (know-smtprelay-omc-2.server.virginmedia.net [80.0.253.66]) by mx1.freebsd.org (Postfix) with ESMTP id 5CD3F19C0 for ; Sun, 28 Jun 2015 16:39:18 +0000 (UTC) (envelope-from j.deboynepollard-newsgroups@ntlworld.com) Received: from [192.168.1.100] ([86.20.122.200]) by know-smtprelay-2-imp with bizsmtp id lsfH1q00X4KXVwe01sfHql; Sun, 28 Jun 2015 17:39:17 +0100 X-Originating-IP: [86.20.122.200] X-Spam: 0 X-Authority: v=2.1 cv=RLtOZNW+ c=1 sm=1 tr=0 a=WByauD8lJrWvBFCNrxRoEQ==:117 a=WByauD8lJrWvBFCNrxRoEQ==:17 a=NLZqzBF-AAAA:8 a=-0vIq9fx67kA:10 a=N659UExz7-8A:10 a=flwjNAT5w8FmYhSXFZMA:9 a=pILNOxqGKmIA:10 a=XdyKOaxJwVsA:10 Message-ID: <55902328.8080602@NTLWorld.com> Date: Sun, 28 Jun 2015 17:39:04 +0100 From: Jonathan de Boyne Pollard User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: debian-user@lists.debian.org, "supervision@list.skarnet.org" , FreeBSD Hackers Subject: Re: nosh version 1.17 References: <54430B41.3010301@NTLWorld.com> <54B86FD5.3090203@NTLWorld.com> <554E53EF.4080600@NTLWorld.com> <554E93AF.3070709@NTLWorld.com> <556BA130.50708@NTLWorld.com> In-Reply-To: <556BA130.50708@NTLWorld.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 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 Jun 2015 16:39:20 -0000 nosh is now up to version 1.17 * http://homepage.ntlworld.com./jonathan.deboynepollard/Softwares/nosh.html As I said to gdiazhartusch a while back, and as listed on the roadmap page, there is now a tool for auto-creating the mount@*, fsck@*, ttylogin@*, dump@*, and swap@* service bundles from /etc/ttys and /etc/fstab, and propagating settings from /etc/rc.conf{,.local} to service bundle env/ directories. This is documented in the Nosh Guide, in the section on external formats. It involves the use of redo, as I just mentioned in the release annoucement for redo 1.2, because it's a suite of redo scripts that endeavour to re-import the settings only when the source files change. An important design choice, called out in the introduction to the Nosh Guide, is that this is not a system of continually-regenerated ephemera. The Nosh Guide introduction has been completely rewritten, by the way. The external formats import relies upon rcctl, which now has the full implementation of "set" and "get" that was promised in the roadmap. Note the caveat in the manual about not using "set" on a "status" variable. That's an OpenBSD idiosyncrasy that wouldn't be correct for FreeBSD even with the original tool. Use "enable" and "disable". They'll work. Part of importing /etc/fstab is generating appropriate dump@* and swap@* service bundles. You'll note that swapauto and swaplate are no longer services but targets. As services, they relied upon options to "swapon" and were one giant lump. As targets, they pull in all of the generated swap@* services which are individually enabled. Also note that whilst the pre-built mount@-, fsck@-, mount@-usr, fsck@-usr, mount@-var, and fsck@-var service bundles are still supplied, the auto-creation system (or something similar) is meant to supersede them with bundles that match your /etc/fstab after system installation. Those aren't the only service bundle changes. There's the steady chipping away at that list of 157 rc.d scripts, which has just lost off its list a few pf services and savecore amongst other things. You might be wondering why mountcritlocal and mountcritremote are still there. The new auto-creation system makes mount@* and fsck@* bundles, and links them into targets, after all. The answer is that those FreeBSD rc.d scripts (like several others) have had some feature creep, and mounting is not all that they in fact do. There's some temporary files cleanup in there, for example. Which leaves just the last major change, which is the /etc/ subdirectories. /etc/system-manager/targets and /etc/sv have been brought together as /etc/service-bundles/targets and /etc/service-bundles/services. And /etc/system-manager/presets is now the better named /etc/system-control/presets as this is a function of the latter tool not of the former. The post-upgrade scripts in the binary packages will move the directories and create appropriate symbolic links in the right places. If you are building from source and hand-installing ... well look at what the post-upgrade scripts do, since they are right there in the source package, and do that. (-: From owner-freebsd-hackers@freebsd.org Sun Jun 28 16:55:39 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8B62298F948 for ; Sun, 28 Jun 2015 16:55:39 +0000 (UTC) (envelope-from j.deboynepollard-newsgroups@ntlworld.com) Received: from know-smtprelay-omc-2.server.virginmedia.net (know-smtprelay-omc-2.server.virginmedia.net [80.0.253.66]) by mx1.freebsd.org (Postfix) with ESMTP id 07D1F1371 for ; Sun, 28 Jun 2015 16:55:38 +0000 (UTC) (envelope-from j.deboynepollard-newsgroups@ntlworld.com) Received: from [192.168.1.100] ([86.20.122.200]) by know-smtprelay-2-imp with bizsmtp id lsvd1q00P4KXVwe01svdVu; Sun, 28 Jun 2015 17:55:37 +0100 X-Originating-IP: [86.20.122.200] X-Spam: 0 X-Authority: v=2.1 cv=RLtOZNW+ c=1 sm=1 tr=0 a=WByauD8lJrWvBFCNrxRoEQ==:117 a=WByauD8lJrWvBFCNrxRoEQ==:17 a=NLZqzBF-AAAA:8 a=-0vIq9fx67kA:10 a=N659UExz7-8A:10 a=3tcz3bTJAAAA:8 a=6I5d2MoRAAAA:8 a=aM_IB06m_s-QZ9zpjB8A:9 a=pILNOxqGKmIA:10 Message-ID: <559026FC.3080404@NTLWorld.com> Date: Sun, 28 Jun 2015 17:55:24 +0100 From: Jonathan de Boyne Pollard User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: "supervision@list.skarnet.org" , FreeBSD Hackers Subject: pflog(8) manual page bug References: <54430B41.3010301@NTLWorld.com> <54B86FD5.3090203@NTLWorld.com> <554E53EF.4080600@NTLWorld.com> <554E93AF.3070709@NTLWorld.com> <556BA130.50708@NTLWorld.com> <55902328.8080602@NTLWorld.com> In-Reply-To: <55902328.8080602@NTLWorld.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 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 Jun 2015 16:55:39 -0000 Jonathan de Boyne Pollard: > There's the steady chipping away at that list of 157 rc.d scripts, > which has just lost off its list a few pf services and savecore > amongst other things. Yet another bug report that has come out of this is that the pflogd(8) manual page has some gibberish under the -i option. The original OpenBSD update ... * http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/sbin/pflogd/pflogd.8.diff?r1=1.35&r2=1.36&f=h ... was not accurately brought over to FreeBSD ... * https://svnweb.freebsd.org/base/head/contrib/pf/pflogd/pflogd.8?r1=171172&r2=223637 ... and was missing two lines that make the gibberish make sense. Of course ... * http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/sbin/pflogd/pflogd.8.diff?r1=1.37&r2=1.38&f=h ... that option doesn't even exist any more. (-: From owner-freebsd-hackers@freebsd.org Sun Jun 28 17:05:30 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3A10898FB0B for ; Sun, 28 Jun 2015 17:05:30 +0000 (UTC) (envelope-from eric@metricspace.net) Received: from mail.metricspace.net (mail.metricspace.net [IPv6:2001:470:1f11:617::103]) by mx1.freebsd.org (Postfix) with ESMTP id 103FC1A40 for ; Sun, 28 Jun 2015 17:05:30 +0000 (UTC) (envelope-from eric@metricspace.net) Received: from [192.168.2.2] (unknown [32.136.34.135]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: eric) by mail.metricspace.net (Postfix) with ESMTPSA id 140AE2996E; Sun, 28 Jun 2015 17:05:28 +0000 (UTC) User-Agent: K-9 Mail for blackphone In-Reply-To: References: <5560F4FE.4030502@metricspace.net> <5560F743.9000507@metricspace.net> <7CD9D028-8BCE-4361-966B-140642BAE341@metricspace.net> <98598C0A-D09A-4BC7-A15C-5422BBA2EE4C@gmail.com> <55761E58.6040704@metricspace.net> <5590025E.9030907@metricspace.net> MIME-Version: 1.0 Subject: Re: EFI ZFS loader successful load and boot From: Eric McCorkle Date: Sun, 28 Jun 2015 13:05:22 -0400 To: Andrey Fesenko CC: "freebsd-hackers@freebsd.org" Message-ID: <90F9FE63-3E9C-4FF3-9E35-DA637852B943@metricspace.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 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 Jun 2015 17:05:30 -0000 Strange. Can you boot using legacy bios? On June 28, 2015 11:28:59 AM EDT, Andrey Fesenko wrote: >On Sun, Jun 28, 2015 at 5:19 PM, Eric McCorkle >wrote: >> On 06/28/2015 01:39 AM, Andrey Fesenko wrote: >> >>> Unable to load the kernel, i'm make simple gpart structure >>> >>> GPT >>> efi part <- write /boot/loader.efi as efi/boot/bootx64.efi >>> ZFS root pool >> >> Just saw this part. You want to write /boot/boot1.efi to >> efi/boot/bootx64.efi, not loader. >> > >After this: > >Initialilizing modules: ZFS UFS >Not ufs >ZFS: i/o error - all block copies unavailable >ZFS: can't read MOS of pool ( >Could not load file >Could not load file >panic: No bootable partitions found > >It may be important i'm use beadm for root zfs and my root >pool/ROOT/beadmname -- Sent from my Blackphone with K-9 Mail. Please excuse my brevity. From owner-freebsd-hackers@freebsd.org Sun Jun 28 20:55:57 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F294E98F917 for ; Sun, 28 Jun 2015 20:55:56 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 968CD1C43 for ; Sun, 28 Jun 2015 20:55:56 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.9/8.14.9) with ESMTP id t5SKtsc7030927 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sun, 28 Jun 2015 14:55:54 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.9/8.14.9/Submit) with ESMTP id t5SKtsa8030924; Sun, 28 Jun 2015 14:55:54 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Sun, 28 Jun 2015 14:55:54 -0600 (MDT) From: Warren Block To: Jonathan de Boyne Pollard cc: "supervision@list.skarnet.org" , FreeBSD Hackers Subject: Re: pflog(8) manual page bug In-Reply-To: <559026FC.3080404@NTLWorld.com> Message-ID: References: <54430B41.3010301@NTLWorld.com> <54B86FD5.3090203@NTLWorld.com> <554E53EF.4080600@NTLWorld.com> <554E93AF.3070709@NTLWorld.com> <556BA130.50708@NTLWorld.com> <55902328.8080602@NTLWorld.com> <559026FC.3080404@NTLWorld.com> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Sun, 28 Jun 2015 14:55:54 -0600 (MDT) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 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 Jun 2015 20:55:57 -0000 On Sun, 28 Jun 2015, Jonathan de Boyne Pollard wrote: > Jonathan de Boyne Pollard: >> There's the steady chipping away at that list of 157 rc.d scripts, which >> has just lost off its list a few pf services and savecore amongst other >> things. > > Yet another bug report that has come out of this is that the pflogd(8) manual > page has some gibberish under the -i option. > > The original OpenBSD update ... > > * > http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/sbin/pflogd/pflogd.8.diff?r1=1.35&r2=1.36&f=h > > ... was not accurately brought over to FreeBSD ... > > * > https://svnweb.freebsd.org/base/head/contrib/pf/pflogd/pflogd.8?r1=171172&r2=223637 > > ... and was missing two lines that make the gibberish make sense. > > Of course ... > > * > http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/sbin/pflogd/pflogd.8.diff?r1=1.37&r2=1.38&f=h > > ... that option doesn't even exist any more. (-: Fixed in r284914. Thanks! From owner-freebsd-hackers@freebsd.org Mon Jun 29 08:33:49 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4173A98D043 for ; Mon, 29 Jun 2015 08:33:49 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 26D682C29 for ; Mon, 29 Jun 2015 08:33:49 +0000 (UTC) (envelope-from julian@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 23FED98D041; Mon, 29 Jun 2015 08:33:49 +0000 (UTC) Delivered-To: hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2272098D040; Mon, 29 Jun 2015 08:33:49 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "vps1.elischer.org", Issuer "CA Cert Signing Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id D99F42C28; Mon, 29 Jun 2015 08:33:48 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from Julian-MBP3.local (ppp121-45-252-104.lns20.per4.internode.on.net [121.45.252.104]) (authenticated bits=0) by vps1.elischer.org (8.14.9/8.14.9) with ESMTP id t5T8Xb1M088031 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Mon, 29 Jun 2015 01:33:40 -0700 (PDT) (envelope-from julian@freebsd.org) Message-ID: <559102DB.4050902@freebsd.org> Date: Mon, 29 Jun 2015 16:33:31 +0800 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: "hackers@freebsd.org" , freebsd-current Subject: libc compile failure with new syscall. Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 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 Jun 2015 08:33:49 -0000 Hi all, At $JOB we have a few extra syscalls that we have added to our kernel. After generating the new sysent files in /sys/kern, libc fails to compile with: ===> lib/libc (obj,depend,all,install) building shared library libc.so.7 [...] /usr/bin/ld: rlk_check_offline.So: relocation R_X86_64_32 against `SYS_rlk_check_offline' can not be used when making a shared object; recompile with -fPIC rlk_check_offline.So: could not read symbols: Bad value *** [libc.so.7] Error code 1 this suggests that the code that generates the libc syscall stubs is generating something the linker doesn't like. the definition of the syscall is: 588 AUE_NULL NOSTD { int rlk_check_offline(char *localfs, char *path, \ int *is_offline, int rlk_flags, \ int *cache_status); } ------ which generates (in various files): { AS(rlk_check_offline_args), (sy_call_t *)lkmressys, AUE_NULL, NULL, 0, 0, 0, SY_THR_ABSENT }, /* 588 = rlk_check_offline */ ------ "rlk_check_offline", /* 588 = rlk_check_offline */ ------ /* rlk_check_offline */ case 588: { struct rlk_check_offline_args *p = params; uarg[0] = (intptr_t) p->localfs; /* char * */ uarg[1] = (intptr_t) p->path; /* char * */ uarg[2] = (intptr_t) p->is_offline; /* int * */ iarg[3] = p->rlk_flags; /* int */ uarg[4] = (intptr_t) p->cache_status; /* int * */ *n_args = 5; break; } ------- #define SYS_rlk_check_offline 588 ------- struct rlk_check_offline_args { char localfs_l_[PADL_(char *)]; char * localfs; char localfs_r_[PADR_(char *)]; char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; char is_offline_l_[PADL_(int *)]; int * is_offline; char is_offline_r_[PADR_(int *)]; char rlk_flags_l_[PADL_(int)]; int rlk_flags; char rlk_flags_r_[PADR_(int)]; char cache_status_l_[PADL_(int *)]; int * cache_status; char cache_status_r_[PADR_(int *)]; }; int sys_rlk_check_offline(struct thread *, struct rlk_check_offline_args *); #define SYS_AUE_rlk_check_offline AUE_NULL ------- the generated stub looks like: $ cat /usr/obj/usr/src/lib/libc/rlk_check_offline.S #include "compat.h" #include "SYS.h" RSYSCALL(rlk_check_offline) .section .note.GNU-stack,"",%progbits -------- nothing in this definition looks special, So I'm surprised that the libc build doesn't like it. This is a (just) post 10.1 10-stable. But we plan to move to 11 soon too. Any suggestions as to what I should change would be greatly appreciated.. I'm running out of ideas. From owner-freebsd-hackers@freebsd.org Mon Jun 29 08:43:27 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2A43298D298 for ; Mon, 29 Jun 2015 08:43:27 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 0F1AE10DA for ; Mon, 29 Jun 2015 08:43:27 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 0E6A798D296; Mon, 29 Jun 2015 08:43:27 +0000 (UTC) Delivered-To: hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E7E6298D294; Mon, 29 Jun 2015 08:43:26 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 742C610D8; Mon, 29 Jun 2015 08:43:26 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kostik@localhost [127.0.0.1]) by kib.kiev.ua (8.14.9/8.14.9) with ESMTP id t5T8hGfr091821 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Mon, 29 Jun 2015 11:43:16 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.9.2 kib.kiev.ua t5T8hGfr091821 Received: (from kostik@localhost) by tom.home (8.14.9/8.14.9/Submit) id t5T8hGct091820; Mon, 29 Jun 2015 11:43:16 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Mon, 29 Jun 2015 11:43:16 +0300 From: Konstantin Belousov To: Julian Elischer Cc: "hackers@freebsd.org" , freebsd-current Subject: Re: libc compile failure with new syscall. Message-ID: <20150629084316.GS2080@kib.kiev.ua> References: <559102DB.4050902@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <559102DB.4050902@freebsd.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on tom.home X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 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 Jun 2015 08:43:27 -0000 On Mon, Jun 29, 2015 at 04:33:31PM +0800, Julian Elischer wrote: > Hi all, > > At $JOB we have a few extra syscalls that we have added to our kernel. > > After generating the new sysent files in /sys/kern, libc fails to > compile with: > > ===> lib/libc (obj,depend,all,install) > building shared library libc.so.7 > [...] > /usr/bin/ld: rlk_check_offline.So: relocation R_X86_64_32 against > `SYS_rlk_check_offline' can not be used when making a shared object; > recompile with -fPIC > rlk_check_offline.So: could not read symbols: Bad value > *** [libc.so.7] Error code 1 > > this suggests that the code that generates the libc syscall stubs is > generating something the linker doesn't like. No, this suggests that the symbol SYS_rlk_check_offline was undefined when assembling your rlk_check_offline.S. Check the way you generated the stuff from syscalls.master. Most likely, sys/sys/syscall.h update was lost. > > > the definition of the syscall is: > > 588 AUE_NULL NOSTD { int rlk_check_offline(char *localfs, > char *path, \ > int *is_offline, int rlk_flags, \ > int *cache_status); } > ------ > which generates (in various files): > { AS(rlk_check_offline_args), (sy_call_t *)lkmressys, > AUE_NULL, NULL, 0, 0, 0, SY_THR_ABSENT }, /* 588 = rlk_check_offline */ > ------ > "rlk_check_offline", /* 588 = > rlk_check_offline */ > ------ > /* rlk_check_offline */ > case 588: { > struct rlk_check_offline_args *p = params; > uarg[0] = (intptr_t) p->localfs; /* char * */ > uarg[1] = (intptr_t) p->path; /* char * */ > uarg[2] = (intptr_t) p->is_offline; /* int * */ > iarg[3] = p->rlk_flags; /* int */ > uarg[4] = (intptr_t) p->cache_status; /* int * */ > *n_args = 5; > break; > } > ------- > #define SYS_rlk_check_offline 588 ^^^^^ This must be seen by asm. Note that in the stock sources, lib/libc/amd64/SYS.h includes syscall.h. > ------- > struct rlk_check_offline_args { > char localfs_l_[PADL_(char *)]; char * localfs; char > localfs_r_[PADR_(char *)]; > char path_l_[PADL_(char *)]; char * path; char > path_r_[PADR_(char *)]; > char is_offline_l_[PADL_(int *)]; int * is_offline; char > is_offline_r_[PADR_(int *)]; > char rlk_flags_l_[PADL_(int)]; int rlk_flags; char > rlk_flags_r_[PADR_(int)]; > char cache_status_l_[PADL_(int *)]; int * cache_status; char > cache_status_r_[PADR_(int *)]; > }; > int sys_rlk_check_offline(struct thread *, struct > rlk_check_offline_args *); > #define SYS_AUE_rlk_check_offline AUE_NULL > > ------- > > > > the generated stub looks like: > $ cat /usr/obj/usr/src/lib/libc/rlk_check_offline.S > > #include "compat.h" > #include "SYS.h" > RSYSCALL(rlk_check_offline) > .section .note.GNU-stack,"",%progbits > > -------- > > > nothing in this definition looks special, So I'm surprised that the > libc build doesn't like it. > This is a (just) post 10.1 10-stable. But we plan to move to 11 soon too. > > Any suggestions as to what I should change would be greatly > appreciated.. I'm running out of ideas. > > > > > > > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" From owner-freebsd-hackers@freebsd.org Mon Jun 29 09:04:12 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 77E1198C5A0 for ; Mon, 29 Jun 2015 09:04:12 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 5E0EE10DA for ; Mon, 29 Jun 2015 09:04:12 +0000 (UTC) (envelope-from julian@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 5AE0B98C59D; Mon, 29 Jun 2015 09:04:12 +0000 (UTC) Delivered-To: hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3EAE598C59C; Mon, 29 Jun 2015 09:04:12 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "vps1.elischer.org", Issuer "CA Cert Signing Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 19BE310D9; Mon, 29 Jun 2015 09:04:11 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from Julian-MBP3.local (ppp121-45-252-104.lns20.per4.internode.on.net [121.45.252.104]) (authenticated bits=0) by vps1.elischer.org (8.14.9/8.14.9) with ESMTP id t5T947gZ088144 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Mon, 29 Jun 2015 02:04:10 -0700 (PDT) (envelope-from julian@freebsd.org) Message-ID: <55910A01.60206@freebsd.org> Date: Mon, 29 Jun 2015 17:04:01 +0800 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: "hackers@freebsd.org" , freebsd-current Subject: Re: libc compile failure with new syscall. References: <559102DB.4050902@freebsd.org> In-Reply-To: <559102DB.4050902@freebsd.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 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 Jun 2015 09:04:12 -0000 On 6/29/15 4:33 PM, Julian Elischer wrote: > Hi all, > > At $JOB we have a few extra syscalls that we have added to our kernel. > > After generating the new sysent files in /sys/kern, libc fails to > compile with: > > ===> lib/libc (obj,depend,all,install) > building shared library libc.so.7 > [...] > /usr/bin/ld: rlk_check_offline.So: relocation R_X86_64_32 against > `SYS_rlk_check_offline' can not be used when making a shared object; > recompile with -fPIC > rlk_check_offline.So: could not read symbols: Bad value > *** [libc.so.7] Error code 1 > > this suggests that the code that generates the libc syscall stubs is > generating something the linker doesn't like. > > > the definition of the syscall is: > > 588 AUE_NULL NOSTD { int rlk_check_offline(char > *localfs, char *path, \ > int *is_offline, int rlk_flags, \ > int *cache_status); } > ------ > which generates (in various files): > { AS(rlk_check_offline_args), (sy_call_t *)lkmressys, > AUE_NULL, NULL, 0, 0, 0, SY_THR_ABSENT }, /* 588 = rlk_check_offline */ > ------ > "rlk_check_offline", /* 588 = > rlk_check_offline */ > ------ > /* rlk_check_offline */ > case 588: { > struct rlk_check_offline_args *p = params; > uarg[0] = (intptr_t) p->localfs; /* char * */ > uarg[1] = (intptr_t) p->path; /* char * */ > uarg[2] = (intptr_t) p->is_offline; /* int * */ > iarg[3] = p->rlk_flags; /* int */ > uarg[4] = (intptr_t) p->cache_status; /* int * */ > *n_args = 5; > break; > } > ------- > #define SYS_rlk_check_offline 588 > ------- > struct rlk_check_offline_args { > char localfs_l_[PADL_(char *)]; char * localfs; char > localfs_r_[PADR_(char *)]; > char path_l_[PADL_(char *)]; char * path; char > path_r_[PADR_(char *)]; > char is_offline_l_[PADL_(int *)]; int * is_offline; char > is_offline_r_[PADR_(int *)]; > char rlk_flags_l_[PADL_(int)]; int rlk_flags; char > rlk_flags_r_[PADR_(int)]; > char cache_status_l_[PADL_(int *)]; int * cache_status; char > cache_status_r_[PADR_(int *)]; > }; > int sys_rlk_check_offline(struct thread *, struct > rlk_check_offline_args *); > #define SYS_AUE_rlk_check_offline AUE_NULL > > ------- > > > > the generated stub looks like: > $ cat /usr/obj/usr/src/lib/libc/rlk_check_offline.S > > #include "compat.h" > #include "SYS.h" > RSYSCALL(rlk_check_offline) > .section .note.GNU-stack,"",%progbits > > -------- > > > nothing in this definition looks special, So I'm surprised that the > libc build doesn't like it. > This is a (just) post 10.1 10-stable. But we plan to move to 11 soon > too. > > Any suggestions as to what I should change would be greatly > appreciated.. I'm running out of ideas. Having looked at it I'm guessing it's to do with the NOSTD , which generates lkmressys and RSYSCALL which generates the code, but I'm still not seeing the part that causes the error. I will admit my understanding of the linking process is not extensive. I do have other syscall that are NOSTD and do not give the error. > > > > > > > > _______________________________________________ > 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" > > From owner-freebsd-hackers@freebsd.org Mon Jun 29 10:14:09 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BF19598FD75 for ; Mon, 29 Jun 2015 10:14:09 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id A75F61A91 for ; Mon, 29 Jun 2015 10:14:09 +0000 (UTC) (envelope-from julian@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id A420698FD72; Mon, 29 Jun 2015 10:14:09 +0000 (UTC) Delivered-To: hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A1A7098FD71; Mon, 29 Jun 2015 10:14:09 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "vps1.elischer.org", Issuer "CA Cert Signing Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 7D8B01A90; Mon, 29 Jun 2015 10:14:09 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from Julian-MBP3.local (ppp121-45-252-104.lns20.per4.internode.on.net [121.45.252.104]) (authenticated bits=0) by vps1.elischer.org (8.14.9/8.14.9) with ESMTP id t5TADxgv088656 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Mon, 29 Jun 2015 03:14:02 -0700 (PDT) (envelope-from julian@freebsd.org) Message-ID: <55911A65.9090600@freebsd.org> Date: Mon, 29 Jun 2015 18:13:57 +0800 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Konstantin Belousov CC: "hackers@freebsd.org" , freebsd-current Subject: Re: libc compile failure with new syscall. References: <559102DB.4050902@freebsd.org> <20150629084316.GS2080@kib.kiev.ua> In-Reply-To: <20150629084316.GS2080@kib.kiev.ua> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 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 Jun 2015 10:14:09 -0000 On 6/29/15 4:43 PM, Konstantin Belousov wrote: > On Mon, Jun 29, 2015 at 04:33:31PM +0800, Julian Elischer wrote: >> Hi all, >> >> At $JOB we have a few extra syscalls that we have added to our kernel. >> >> After generating the new sysent files in /sys/kern, libc fails to >> compile with: >> >> ===> lib/libc (obj,depend,all,install) >> building shared library libc.so.7 >> [...] >> /usr/bin/ld: rlk_check_offline.So: relocation R_X86_64_32 against >> `SYS_rlk_check_offline' can not be used when making a shared object; >> recompile with -fPIC >> rlk_check_offline.So: could not read symbols: Bad value >> *** [libc.so.7] Error code 1 >> >> this suggests that the code that generates the libc syscall stubs is >> generating something the linker doesn't like. > No, this suggests that the symbol SYS_rlk_check_offline was undefined > when assembling your rlk_check_offline.S. > > Check the way you generated the stuff from syscalls.master. Most likely, > sys/sys/syscall.h update was lost. /sys/sys/syscall.h: #define SYS_pz_openat_ex 587 #define SYS_rlk_check_offline 588 <---- #define SYS_MAXSYSCALL 589 as shown below.. > >> >> the definition of the syscall is: >> >> 588 AUE_NULL NOSTD { int rlk_check_offline(char *localfs, >> char *path, \ >> int *is_offline, int rlk_flags, \ >> int *cache_status); } >> ------ >> which generates (in various files): >> { AS(rlk_check_offline_args), (sy_call_t *)lkmressys, >> AUE_NULL, NULL, 0, 0, 0, SY_THR_ABSENT }, /* 588 = rlk_check_offline */ >> ------ >> "rlk_check_offline", /* 588 = >> rlk_check_offline */ >> ------ >> /* rlk_check_offline */ >> case 588: { >> struct rlk_check_offline_args *p = params; >> uarg[0] = (intptr_t) p->localfs; /* char * */ >> uarg[1] = (intptr_t) p->path; /* char * */ >> uarg[2] = (intptr_t) p->is_offline; /* int * */ >> iarg[3] = p->rlk_flags; /* int */ >> uarg[4] = (intptr_t) p->cache_status; /* int * */ >> *n_args = 5; >> break; >> } >> ------- >> #define SYS_rlk_check_offline 588 > ^^^^^ This must be seen by asm. > > Note that in the stock sources, lib/libc/amd64/SYS.h includes syscall.h. and it does here too.. otherwise all the other syscalls would fail.... hmmm wonder if I need to install the new one into /usr/include/sys/first. ah that's it I'm doing "make libraries" and it requires the new syscall.h to be in /usr/include. thanks for that.. now for the next problem... > >> ------- >> struct rlk_check_offline_args { >> char localfs_l_[PADL_(char *)]; char * localfs; char >> localfs_r_[PADR_(char *)]; >> char path_l_[PADL_(char *)]; char * path; char >> path_r_[PADR_(char *)]; >> char is_offline_l_[PADL_(int *)]; int * is_offline; char >> is_offline_r_[PADR_(int *)]; >> char rlk_flags_l_[PADL_(int)]; int rlk_flags; char >> rlk_flags_r_[PADR_(int)]; >> char cache_status_l_[PADL_(int *)]; int * cache_status; char >> cache_status_r_[PADR_(int *)]; >> }; >> int sys_rlk_check_offline(struct thread *, struct >> rlk_check_offline_args *); >> #define SYS_AUE_rlk_check_offline AUE_NULL >> >> ------- >> >> >> >> the generated stub looks like: >> $ cat /usr/obj/usr/src/lib/libc/rlk_check_offline.S >> >> #include "compat.h" >> #include "SYS.h" >> RSYSCALL(rlk_check_offline) >> .section .note.GNU-stack,"",%progbits >> >> -------- >> >> >> nothing in this definition looks special, So I'm surprised that the >> libc build doesn't like it. >> This is a (just) post 10.1 10-stable. But we plan to move to 11 soon too. >> >> Any suggestions as to what I should change would be greatly >> appreciated.. I'm running out of ideas. >> >> >> >> >> >> >> >> _______________________________________________ >> freebsd-current@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-current >> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > From owner-freebsd-hackers@freebsd.org Mon Jun 29 16:56:19 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A52AB9902F4 for ; Mon, 29 Jun 2015 16:56:19 +0000 (UTC) (envelope-from pkelsey@gmail.com) Received: from mail-yk0-x22c.google.com (mail-yk0-x22c.google.com [IPv6:2607:f8b0:4002:c07::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6F8402F96; Mon, 29 Jun 2015 16:56:19 +0000 (UTC) (envelope-from pkelsey@gmail.com) Received: by ykdy1 with SMTP id y1so120136885ykd.2; Mon, 29 Jun 2015 09:56:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=6xZxgWfsr/WweNzZyTCBToHgkaL1l6AoOFNEJKkxHCA=; b=q3vrggvAdjaZ2Okl6gOA0i+YgY7t1lIqkkLqIK31B8C3NevE+sxKQhu8wO78Vl5qkk lML6Zv3CX32/GQBwuYv0WQbrLZuMMUBvJPgkvy3X9ymGJe4A0UhAuyckE6VVTV92GQ1m 7lihqb4B05/J/NVgk0HJTw9uCLKNhBYWpA1Cq5P6XS0BryVIq29TQeTzNbLW6A3wG5wB QRpLjzhDYjbhCpGTg8rcAPMktkIhClHwc0eKdCy18jPkPiOObyq4x2kMvS16KV3RUTXh NuKTEModuYSjYROOcB/hRWkuxO5gqCWDjUtbLuwpgqyDzwVsxXYqR+AhLyFBJ7wSO9ny ua5Q== MIME-Version: 1.0 X-Received: by 10.129.36.14 with SMTP id k14mr18893572ywk.64.1435596978360; Mon, 29 Jun 2015 09:56:18 -0700 (PDT) Sender: pkelsey@gmail.com Received: by 10.13.219.136 with HTTP; Mon, 29 Jun 2015 09:56:18 -0700 (PDT) In-Reply-To: References: <558F1D88.8010407@ignoranthack.me> Date: Mon, 29 Jun 2015 12:56:18 -0400 X-Google-Sender-Auth: YZmPHcHl9iwOzegp26eEwqDVtPE Message-ID: Subject: Re: sysctl(3) man page examples From: Patrick Kelsey To: sbruno@freebsd.org Cc: "freebsd-hackers@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 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 Jun 2015 16:56:19 -0000 On Sun, Jun 28, 2015 at 2:26 AM, Patrick Kelsey wrote: > > > > On Sat, Jun 27, 2015 at 6:02 PM, Sean Bruno > wrote: > >> >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA512 >> >> sysctl(3) specifies three easy to understand examples. >> >> The first appears to depend on a FreeBSD libc() function or library that >> is missing, "printkproc()". Is this a deprecated/deleted function from >> the past? >> > > This example was committed in r71409, which was between the 4.2 and 4.3 > releases. Today, and at that time, the result of fetching a particular > kern.proc.pid is a struct kinfo_proc, not struct kinfo_kproc (which did and > does not exist). There appears to never have been a printkproc() function > (nor print_kproc(), nor printproc(), nor print_proc()) - this seems to be a > function that is assumed to exist elsewhere in the unseen parts of the > example program. > > >> >> The second example works just fine. >> >> The third accesss user.cs_path which seems to be empty across all >> platforms. I'm not sure if we should replace this example with >> something more meaningful(that is to say that its proper for >> user.cs_path to be empty) or if there is a bug causing user.cs_path to >> be empty. >> >> > This appears to be a bug that was introduced almost three years ago in > r240176. sysctl() in lib/libc/gen/sysctl.c has special handling for > USER_CS_PATH that returns the value of _PATH_STDPATH, which is > "/usr/bin:/bin:/usr/sbin:/sbin". However, this special handling for > USER_CS_PATH was short circuited by r240176, which introduced the > requirement that __sysctl() return ENOENT in order to reach the special > USER_CS_PATH handling. However, __sysctl() doesn't return ENOENT for > USER_CS_PATH because there is a sysctl entry for it (containing an empty > string) that is created in sys/kern/kern_mib.c, apparently so that > user.cs_path exists when enumerating the names in the sysctl tree. > A patch for this is posted for review at https://reviews.freebsd.org/D2945. -Patrick From owner-freebsd-hackers@freebsd.org Mon Jun 29 18:36:36 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F0B7498F377 for ; Mon, 29 Jun 2015 18:36:36 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (mail.turbocat.net [IPv6:2a01:4f8:d16:4514::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B61911179; Mon, 29 Jun 2015 18:36:36 +0000 (UTC) (envelope-from hps@selasky.org) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 7AB921FE022; Mon, 29 Jun 2015 20:36:32 +0200 (CEST) Message-ID: <5591906E.8060904@selasky.org> Date: Mon, 29 Jun 2015 20:37:34 +0200 From: Hans Petter Selasky User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Patrick Kelsey , sbruno@freebsd.org CC: "freebsd-hackers@freebsd.org" Subject: Re: sysctl(3) man page examples References: <558F1D88.8010407@ignoranthack.me> In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 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 Jun 2015 18:36:37 -0000 On 06/28/15 08:26, Patrick Kelsey wrote: > s a sysctl entry for it (containing an empty > string) Hi, FYI: Until r267960 zero-length strings were not listed by sysctl, which might be part of the reason this bug has not been seen before. --HPS From owner-freebsd-hackers@freebsd.org Mon Jun 29 22:36:06 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EEC1E990649 for ; Mon, 29 Jun 2015 22:36:06 +0000 (UTC) (envelope-from j.deboynepollard-newsgroups@ntlworld.com) Received: from know-smtprelay-omc-2.server.virginmedia.net (know-smtprelay-omc-2.server.virginmedia.net [80.0.253.66]) by mx1.freebsd.org (Postfix) with ESMTP id 70E1D11D3 for ; Mon, 29 Jun 2015 22:36:05 +0000 (UTC) (envelope-from j.deboynepollard-newsgroups@ntlworld.com) Received: from [192.168.1.100] ([86.20.122.200]) by know-smtprelay-2-imp with bizsmtp id mNbx1q00i4KXVwe01NbxMK; Mon, 29 Jun 2015 23:35:57 +0100 X-Originating-IP: [86.20.122.200] X-Spam: 0 X-Authority: v=2.1 cv=RLtOZNW+ c=1 sm=1 tr=0 a=WByauD8lJrWvBFCNrxRoEQ==:117 a=WByauD8lJrWvBFCNrxRoEQ==:17 a=9cW_t1CCXrUA:10 a=NLZqzBF-AAAA:8 a=-0vIq9fx67kA:10 a=N659UExz7-8A:10 a=6I5d2MoRAAAA:8 a=w2vK8DLv0ioDCuPsheYA:9 a=pILNOxqGKmIA:10 a=LQeKYf6GpDMA:10 a=9nPMi4LjoWYA:10 a=k-DPaNk29mYA:10 a=VjhokSYyaSYA:10 Message-ID: <5591C838.3030006@NTLWorld.com> Date: Mon, 29 Jun 2015 23:35:36 +0100 From: Jonathan de Boyne Pollard User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 CC: FreeBSD Hackers Subject: Re: pflog(8) manual page bug References: <54430B41.3010301@NTLWorld.com> <54B86FD5.3090203@NTLWorld.com> <554E53EF.4080600@NTLWorld.com> <554E93AF.3070709@NTLWorld.com> <556BA130.50708@NTLWorld.com> <55902328.8080602@NTLWorld.com> <559026FC.3080404@NTLWorld.com> In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 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 Jun 2015 22:36:07 -0000 Warren Block: > Fixed in r284914. Thanks! No worries. If you enjoyed that, then you'll also enjoy the two earlier manual bugs that I reported at the end of the 1.12 announcement. (-: * https://lists.freebsd.org/pipermail/freebsd-hackers/2015-January/046857.html * https://svnweb.freebsd.org/base/head/usr.sbin/kbdcontrol/kbdmap.5?view=markup#l104 That ASCII character list has been wrong for more than 15 years. From owner-freebsd-hackers@freebsd.org Mon Jun 29 23:13:29 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1E0BF990CA2 for ; Mon, 29 Jun 2015 23:13:29 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id B3B49112B for ; Mon, 29 Jun 2015 23:13:28 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.9/8.14.9) with ESMTP id t5TNDQO8018051 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 29 Jun 2015 17:13:26 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.9/8.14.9/Submit) with ESMTP id t5TNDPWG018047; Mon, 29 Jun 2015 17:13:26 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Mon, 29 Jun 2015 17:13:25 -0600 (MDT) From: Warren Block To: Jonathan de Boyne Pollard cc: FreeBSD Hackers Subject: Re: pflog(8) manual page bug In-Reply-To: <5591C838.3030006@NTLWorld.com> Message-ID: References: <54430B41.3010301@NTLWorld.com> <54B86FD5.3090203@NTLWorld.com> <554E53EF.4080600@NTLWorld.com> <554E93AF.3070709@NTLWorld.com> <556BA130.50708@NTLWorld.com> <55902328.8080602@NTLWorld.com> <559026FC.3080404@NTLWorld.com> <5591C838.3030006@NTLWorld.com> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Mon, 29 Jun 2015 17:13:26 -0600 (MDT) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 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 Jun 2015 23:13:29 -0000 On Mon, 29 Jun 2015, Jonathan de Boyne Pollard wrote: > Warren Block: >> Fixed in r284914. Thanks! > > No worries. If you enjoyed that, then you'll also enjoy the two earlier I wouldn't say "enjoyed", exactly. :) > manual bugs that I reported at the end of the 1.12 announcement. (-: > > * > https://lists.freebsd.org/pipermail/freebsd-hackers/2015-January/046857.html > * > https://svnweb.freebsd.org/base/head/usr.sbin/kbdcontrol/kbdmap.5?view=markup#l104 > > That ASCII character list has been wrong for more than 15 years. It is a little difficult to isolate the bug from the narrative. Could I convince you to use our bug report system? https://bugs.freebsd.org/bugzilla/ At least for the kbdmap.5 bug, there look to be three others. It's not clear to me what line 104 should be, the text talks about "np". I would like to fix this, and there are certainly people interested in the others bugs. They just might not know they are interested yet. Thank you! From owner-freebsd-hackers@freebsd.org Mon Jun 29 23:57:42 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2CE4398F45F for ; Mon, 29 Jun 2015 23:57:42 +0000 (UTC) (envelope-from pkelsey@gmail.com) Received: from mail-yk0-x22c.google.com (mail-yk0-x22c.google.com [IPv6:2607:f8b0:4002:c07::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E1BDD2236; Mon, 29 Jun 2015 23:57:41 +0000 (UTC) (envelope-from pkelsey@gmail.com) Received: by ykdt186 with SMTP id t186so129508773ykd.0; Mon, 29 Jun 2015 16:57:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=iPQdnJ06ldm6FUETQjGaPsLjFNdr2gzgYF+K/N2fRFY=; b=eRiDqJvzKEkTP7vftkG2ZDNBlo4Qv+pmvzYnioqtgsuZir/YgZVDfmYlHqPJBMeL/6 Df/lzDktsuNLkI5trZqx4MNGYgR+zJpHDcgTfpGA8fPZAcO6GJlR7sv+8va6h0IUNS/L P8OScsESqsbDMOKRpfsfB58yx9tjaotkpeUaX7mLiItMdIjsV1oOr6A/A0ncrT69dTD1 li30XyuRlPNOZ+m8foOpg0TddNlx8B/09Ly5Zo/eTc52x9rh/aPT9aEWKsAWdkD8ehDB RePdlYNXfq15lRm6vlcw91f7ogZ/PZVHlOTwOOrWjahKGmtGBIcp13WvNigGTaWXSGKN Kcfg== MIME-Version: 1.0 X-Received: by 10.129.103.84 with SMTP id b81mr22048800ywc.55.1435622261135; Mon, 29 Jun 2015 16:57:41 -0700 (PDT) Sender: pkelsey@gmail.com Received: by 10.13.219.136 with HTTP; Mon, 29 Jun 2015 16:57:41 -0700 (PDT) In-Reply-To: <5591906E.8060904@selasky.org> References: <558F1D88.8010407@ignoranthack.me> <5591906E.8060904@selasky.org> Date: Mon, 29 Jun 2015 19:57:41 -0400 X-Google-Sender-Auth: TRGcQ7b1XLrsATk7Rl0gqFVvy8M Message-ID: Subject: Re: sysctl(3) man page examples From: Patrick Kelsey To: Hans Petter Selasky Cc: Sean Bruno , "freebsd-hackers@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 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 Jun 2015 23:57:42 -0000 On Mon, Jun 29, 2015 at 2:37 PM, Hans Petter Selasky wrote: > On 06/28/15 08:26, Patrick Kelsey wrote: > >> s a sysctl entry for it (containing an empty >> string) >> > > Hi, > > FYI: > > Until r267960 zero-length strings were not listed by sysctl, which might > be part of the reason this bug has not been seen before. > > That zero-length string is just a dummy entry to keep the mib name in the sysctl tree - the true value for that key is supplied by sysctl(3) directly, so that key should never validly resolve to a zero-length string. I believe this bug did not show up because there are vanishingly few consumers of the user.cs_path sysctl value. -Patrick From owner-freebsd-hackers@freebsd.org Tue Jun 30 05:35:16 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 869B3990A42 for ; Tue, 30 Jun 2015 05:35:16 +0000 (UTC) (envelope-from pkelsey@gmail.com) Received: from mail-qk0-x22e.google.com (mail-qk0-x22e.google.com [IPv6:2607:f8b0:400d:c09::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3E4F711D6; Tue, 30 Jun 2015 05:35:16 +0000 (UTC) (envelope-from pkelsey@gmail.com) Received: by qkei195 with SMTP id i195so67342937qke.3; Mon, 29 Jun 2015 22:35:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=FVIZuTnQLkJQUgFwFyXXG/p3ItsdMJoxGqtDQN6Cxv8=; b=MKCbZ9Qn6XbzoXs9VGIJUaY7EggRs1u9HrHqqW7CMy1EpkYeucuvhuVETNoNDG6c// hR/KfRoUV1dJA4s4hWEGvSWhEfcPpyRMIx2aX1uy2y/a7eRcRaZnPzOL6KBXktUmtkui nWG8+DdryviEISHHvXtTSKhdFpX+LqiifBUCyMUVZEUqFk88CW+Kh/cfQxEXGHJK61N0 s6A1m2mibpzeCPymqUQiqOicgSiJ4alcwzp8qzrYi2Gvm8NAHO+26sJbbtrEIyC9BnYj N1UMWeirbOsl5TuP9Kq5Lx1IrcXaD8Md97LWetwYYknm49wRf74b1l35iVJEzDvoDEGC SKXA== X-Received: by 10.140.194.141 with SMTP id p135mr25120524qha.20.1435642515306; Mon, 29 Jun 2015 22:35:15 -0700 (PDT) Received: from [10.136.55.158] ([166.170.31.14]) by mx.google.com with ESMTPSA id s91sm12682182qge.44.2015.06.29.22.35.14 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 29 Jun 2015 22:35:14 -0700 (PDT) Sender: Patrick Kelsey Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (1.0) Subject: Re: sysctl(3) man page examples From: Patrick Kelsey X-Mailer: iPhone Mail (12F70) In-Reply-To: <5591906E.8060904@selasky.org> Date: Tue, 30 Jun 2015 01:35:13 -0400 Cc: "sbruno@freebsd.org" , "freebsd-hackers@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: <2E314532-E83D-4408-B4A9-7D7339EA72A0@freebsd.org> References: <558F1D88.8010407@ignoranthack.me> <5591906E.8060904@selasky.org> To: Hans Petter Selasky X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 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 Jun 2015 05:35:16 -0000 > On Jun 29, 2015, at 2:37 PM, Hans Petter Selasky wrote: >=20 >> On 06/28/15 08:26, Patrick Kelsey wrote: >> s a sysctl entry for it (containing an empty >> string) >=20 > Hi, >=20 > FYI: >=20 > Until r267960 zero-length strings were not listed by sysctl, which might b= e part of the reason this bug has not been seen before. >=20 I initially read this somewhat differently than you meant it - but now I see= what you are saying - between r240176 and r267960, it would not have been v= isually apparent that user.cs_path was empty in the output of 'sysctl user' a= s user.cs_path would not have been displayed at all due to being empty. That= is a good point. -Patrick= From owner-freebsd-hackers@freebsd.org Tue Jun 30 08:19:03 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C51F1990883 for ; Tue, 30 Jun 2015 08:19:03 +0000 (UTC) (envelope-from saper@saper.info) Received: from m.saper.info (m.saper.info [IPv6:2a01:4f8:a0:7383::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "m.saper.info", Issuer "Marcin Cieslak 2011" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 6335C1FDA for ; Tue, 30 Jun 2015 08:19:03 +0000 (UTC) (envelope-from saper@saper.info) Received: from m.saper.info (saper@m.saper.info [IPv6:2a01:4f8:a0:7383::]) by m.saper.info (8.14.9/8.14.9) with ESMTP id t5U8J17j043827 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Tue, 30 Jun 2015 08:19:01 GMT (envelope-from saper@saper.info) Received: from localhost (saper@localhost) by m.saper.info (8.14.9/8.14.9/Submit) with ESMTP id t5U8J05f043820 for ; Tue, 30 Jun 2015 08:19:01 GMT (envelope-from saper@saper.info) X-Authentication-Warning: m.saper.info: saper owned process doing -bs Date: Tue, 30 Jun 2015 08:19:00 +0000 From: Marcin Cieslak To: freebsd-hackers@freebsd.org Subject: Build for profiling? Got //usr/lib/libc_p.a(sbrk.po): undefined reference to symbol '_end' Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 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 Jun 2015 08:19:03 -0000 I am trying to compile https://github.com/sass/libsass instrumented for profiling. As far as I understand this does not work with clang, so I am trying with gcc version 4.8.5 20150212 (prerelease) (FreeBSD Ports Collection). This is a shared library in C++ that gets loaded by node (www/node). I have a world built with profiling libraries, I have additionally ran "make install INSTALL_PIC_ARCHIVE=yes" in lib/libc, lib/msun and lib/libcxxrt directories (the latter probably not needed). Here's config.log output: configure:3344: checking whether the C++ compiler works configure:3366: g++48 -pg -g conftest.cpp >&5 /usr/local/bin/ld: //usr/lib/libc_p.a(sbrk.po): undefined reference to symbol '_end' //lib/libc.so.7: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status configure:3370: $? = 1 configure:3408: result: no configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libsass" | #define PACKAGE_TARNAME "libsass" | #define PACKAGE_VERSION "3.2.5-9-gbe07-dirty" | #define PACKAGE_STRING "libsass 3.2.5-9-gbe07-dirty" | #define PACKAGE_BUGREPORT "support@moovweb.com" | #define PACKAGE_URL "" | #define PACKAGE "libsass" | #define VERSION "3.2.5-9-gbe07-dirty" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } ~Marcin From owner-freebsd-hackers@freebsd.org Tue Jun 30 08:20:42 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AE2C7990928 for ; Tue, 30 Jun 2015 08:20:42 +0000 (UTC) (envelope-from saper@saper.info) Received: from m.saper.info (m.saper.info [IPv6:2a01:4f8:a0:7383::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "m.saper.info", Issuer "Marcin Cieslak 2011" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 46F451158 for ; Tue, 30 Jun 2015 08:20:42 +0000 (UTC) (envelope-from saper@saper.info) Received: from m.saper.info (saper@m.saper.info [IPv6:2a01:4f8:a0:7383::]) by m.saper.info (8.14.9/8.14.9) with ESMTP id t5U8KdKj044062 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Tue, 30 Jun 2015 08:20:39 GMT (envelope-from saper@saper.info) Received: from localhost (saper@localhost) by m.saper.info (8.14.9/8.14.9/Submit) with ESMTP id t5U8KdMW044059 for ; Tue, 30 Jun 2015 08:20:39 GMT (envelope-from saper@saper.info) X-Authentication-Warning: m.saper.info: saper owned process doing -bs Date: Tue, 30 Jun 2015 08:20:39 +0000 From: Marcin Cieslak To: freebsd-hackers@freebsd.org Subject: Re: Build for profiling? Got //usr/lib/libc_p.a(sbrk.po): undefined reference to symbol '_end' In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 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 Jun 2015 08:20:42 -0000 On Tue, 30 Jun 2015, Marcin Cieslak wrote: > I am trying to compile https://github.com/sass/libsass instrumented > for profiling. As far as I understand this does not work with clang, > so I am trying with gcc version 4.8.5 20150212 (prerelease) > (FreeBSD Ports Collection). (forgot to add: this is 10.1-STABLE #4 r283908) From owner-freebsd-hackers@freebsd.org Tue Jun 30 13:20:01 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3AF5B98F965 for ; Tue, 30 Jun 2015 13:20:01 +0000 (UTC) (envelope-from hans@beastielabs.net) Received: from testsoekris.hotsoft.nl (unknown [IPv6:2001:888:1227:0:200:24ff:fec9:5934]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EDD851963 for ; Tue, 30 Jun 2015 13:20:00 +0000 (UTC) (envelope-from hans@beastielabs.net) Received: from beastie.hotsoft.nl (beastie.hotsoft.nl [IPv6:2001:888:1227:0:219:d1ff:fee8:91eb]) by testsoekris.hotsoft.nl (8.14.7/8.14.7) with ESMTP id t5UDJubt070610; Tue, 30 Jun 2015 15:19:56 +0200 (CEST) (envelope-from hans@beastielabs.net) Message-ID: <5592977C.2030304@beastielabs.net> Date: Tue, 30 Jun 2015 15:19:56 +0200 From: Hans Ottevanger User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Marcin Cieslak CC: freebsd-hackers@freebsd.org Subject: Re: Build for profiling? Got //usr/lib/libc_p.a(sbrk.po): undefined reference to symbol '_end' References: In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 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 Jun 2015 13:20:01 -0000 On 06/30/15 10:19, Marcin Cieslak wrote: > I am trying to compile https://github.com/sass/libsass instrumented > for profiling. As far as I understand this does not work with clang, > so I am trying with gcc version 4.8.5 20150212 (prerelease) > (FreeBSD Ports Collection). > Profiling with -pg was added to clang a few years ago by Roman Divacky, with a bit of my help. It is not (yet) documented AFAIK and don't know about the situation upstream. See also the mailing list thread starting here: https://lists.freebsd.org/pipermail/freebsd-toolchain/2011-January/000075.html > This is a shared library in C++ that gets loaded by node (www/node). > > I have a world built with profiling libraries, I have additionally > ran "make install INSTALL_PIC_ARCHIVE=yes" in lib/libc, lib/msun > and lib/libcxxrt directories (the latter probably not needed). > > Here's config.log output: > > configure:3344: checking whether the C++ compiler works > configure:3366: g++48 -pg -g conftest.cpp >&5 > /usr/local/bin/ld: //usr/lib/libc_p.a(sbrk.po): undefined reference to symbol '_end' > //lib/libc.so.7: error adding symbols: DSO missing from command line > collect2: error: ld returned 1 exit status > configure:3370: $? = 1 > configure:3408: result: no > configure: failed program was: > | /* confdefs.h */ > | #define PACKAGE_NAME "libsass" > | #define PACKAGE_TARNAME "libsass" > | #define PACKAGE_VERSION "3.2.5-9-gbe07-dirty" > | #define PACKAGE_STRING "libsass 3.2.5-9-gbe07-dirty" > | #define PACKAGE_BUGREPORT "support@moovweb.com" > | #define PACKAGE_URL "" > | #define PACKAGE "libsass" > | #define VERSION "3.2.5-9-gbe07-dirty" > | /* end confdefs.h. */ > | > | int > | main () > | { > | > | ; > | return 0; > | } > Maybe adding an extra -lc_p helps. Keep in mind that time spent in libraries that are dynamically linked will not turn up in your profile. If I want profiling results from the standard libraries I explicitly link (statically, because they are .a archives) with the profiled libs, e.g. using -lc++_p -lm_p -lc_p (with clang). Kind regards, Hans Ottevanger Eindhoven, Netherlands www.beastielabs.net From owner-freebsd-hackers@freebsd.org Thu Jul 2 02:44:38 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E2E289920AD; Thu, 2 Jul 2015 02:44:38 +0000 (UTC) (envelope-from kaduk@mit.edu) Received: from dmz-mailsec-scanner-4.mit.edu (dmz-mailsec-scanner-4.mit.edu [18.9.25.15]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6023D1BAD; Thu, 2 Jul 2015 02:44:37 +0000 (UTC) (envelope-from kaduk@mit.edu) X-AuditID: 1209190f-f79716d000002ea2-21-5594a58ecc54 Received: from mailhub-auth-2.mit.edu ( [18.7.62.36]) (using TLS with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by dmz-mailsec-scanner-4.mit.edu (Symantec Messaging Gateway) with SMTP id 9F.2C.11938.E85A4955; Wed, 1 Jul 2015 22:44:30 -0400 (EDT) Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) by mailhub-auth-2.mit.edu (8.13.8/8.9.2) with ESMTP id t622iTtg014124; Wed, 1 Jul 2015 22:44:30 -0400 Received: from multics.mit.edu (system-low-sipb.mit.edu [18.187.2.37]) (authenticated bits=56) (User authenticated as kaduk@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.8/8.12.4) with ESMTP id t622iRsd032138 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 1 Jul 2015 22:44:29 -0400 Received: (from kaduk@localhost) by multics.mit.edu (8.12.9.20060308) id t622iR0O022132; Wed, 1 Jul 2015 22:44:27 -0400 (EDT) Date: Wed, 1 Jul 2015 22:44:27 -0400 (EDT) From: Benjamin Kaduk X-X-Sender: kaduk@multics.mit.edu To: freebsd-hackers@freebsd.org cc: freebsd-current@freebsd.org Subject: Call for FreeBSD 2015Q2 (April-June) Status Reports Message-ID: User-Agent: Alpine 1.10 (GSO 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrPIsWRmVeSWpSXmKPExsUixG6notu3dEqowdb7mha7rp1mt5jz5gOT xfbN/xgdmD1mfJrPEsAYxWWTkpqTWZZapG+XwJUx9+BzxoITXBXHnv5lbmB8zNHFyMkhIWAi 8aHnHjOELSZx4d56ti5GLg4hgcVMEhfmdUM5GxglOlZdY4dwDjJJrP32kx2kRUigXmLyu5lM IDaLgJbE1IY+NhCbTUBN4vHeZlaIsYoSm09NAlrBwSEiIC+x4Lw9SJgZyPx/5TJYq7CAjcSZ W+vYQEp4BRwlLnR7goRFBXQkVu+fwgJi8woISpyc+YQFolVLYvn0bSwTGAVmIUnNQpJawMi0 ilE2JbdKNzcxM6c4NVm3ODkxLy+1SNdELzezRC81pXQTIygcOSX5dzB+O6h0iFGAg1GJhzeg akqoEGtiWXFl7iFGSQ4mJVFe7iVAIb6k/JTKjMTijPii0pzU4kOMEhzMSiK8zBOAcrwpiZVV qUX5MClpDhYlcd5NP/hChATSE0tSs1NTC1KLYLIyHBxKErw6IEMFi1LTUyvSMnNKENJMHJwg w3mAhgeB1PAWFyTmFmemQ+RPMSpKifNqgCQEQBIZpXlwvbB08YpRHOgVYd4fIFU8wFQD1/0K aDAT0OCX9pNABpckIqSkGhjNZR26vn4JnFeyUtbloZW4u828xc9XJG1ddO5nTekd/scLuR6c 21Zicr5M+OO1PzsnLJwQlv183mem2tuCn+9VxjLtOLrToOjL5F+efxosRD2+z5aZ9vXYqZPp k7qvVUupBPZskv8rNq3PxfrU69g+5s4tjKFzYlWli+U3XVpdvHj6DDb7/2fqlViKMxINtZiL ihMB4aRNvvICAAA= X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 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 Jul 2015 02:44:39 -0000 Dear FreeBSD Community, The deadline for the next FreeBSD Quarterly Status update is July 14, 2015, for work done in April through June. Status report submissions do not have to be very long. They may be about anything happening in the FreeBSD project and community, and provide a great way to inform FreeBSD users and developers about what you're working on. Submission of reports is not restricted to committers. Anyone doing anything interesting and FreeBSD-related can -- and should -- write one! The preferred and easiest submission method is to use the XML generator [1] with the results emailed to the status report team at monthly at freebsd.org . There is also an XML template [2] which can be filled out manually and attached if preferred. For the expected content and style, please study our guidelines on how to write a good status report [3]. You can also review previous issues [4][5] for ideas on the style and format. We are looking forward to all of your 2015Q2 reports! Thanks, Ben (on behalf of monthly@) [1] http://www.freebsd.org/cgi/monthly.cgi [2] http://www.freebsd.org/news/status/report-sample.xml [3] http://www.freebsd.org/news/status/howto.html [4] http://www.freebsd.org/news/status/report-2014-10-2014-12.html [5] http://www.freebsd.org/news/status/report-2015-01-2015-03.html From owner-freebsd-hackers@freebsd.org Thu Jul 2 20:21:46 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CDA739930CA for ; Thu, 2 Jul 2015 20:21:46 +0000 (UTC) (envelope-from max@m00nbsd.net) Received: from 15.mo5.mail-out.ovh.net (15.mo5.mail-out.ovh.net [178.33.107.29]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 958B82AB1 for ; Thu, 2 Jul 2015 20:21:46 +0000 (UTC) (envelope-from max@m00nbsd.net) Received: from mail632.ha.ovh.net (gw6.ovh.net [213.251.189.206]) by mo5.mail-out.ovh.net (Postfix) with SMTP id 5A659FFA8B1 for ; Thu, 2 Jul 2015 19:55:49 +0200 (CEST) Received: from localhost (HELO queueout) (127.0.0.1) by localhost with SMTP; 2 Jul 2015 19:55:47 +0200 Received: from str75-4-78-193-192-205.fbxo.proxad.net (HELO localhost.localdomain) (max@M00nBSD.net@78.193.192.205) by ns0.ovh.net with SMTP; 2 Jul 2015 19:55:44 +0200 Message-ID: <55957B1C.3070609@m00nbsd.net> Date: Thu, 02 Jul 2015 19:55:40 +0200 From: Maxime Villard MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Subject: Re: Brainy: Set of 17 potential bugs References: <54F1D602.6050108@M00nBSD.net> In-Reply-To: <54F1D602.6050108@M00nBSD.net> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 8872091267216379867 X-Ovh-Remote: 78.193.192.205 (str75-4-78-193-192-205.fbxo.proxad.net) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-OVH-SPAMSTATE: OK X-OVH-SPAMSCORE: 0 X-OVH-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeekvddrfeefucetufdoteggucfrrhhofhhilhgvmecuqfggjfenuceurghilhhouhhtmecufedttdenuc X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeekvddrfeefucetufdoteggucfrrhhofhhilhgvmecuqfggjfenuceurghilhhouhhtmecufedttdenuc X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 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 Jul 2015 20:21:46 -0000 Reminder: 12 bugs are still not fixed. Le 28/02/2015 15:51, Maxime Villard a crit : > Hi, > I have been developing a C code scanner for a while, particularly good at > finding kernel bugs. I've scanned the FreeBSD tree partially, and among > the numerous results, I've put here a list of 17 bugs affecting the > FreeBSD-10 Stable kernel: > > http://m00nbsd.net/59a47a86959c23b3f7c8bc495598dfde.html > > Found by The Brainy Code Scanner. More information: max at m00nbsd dot net > > Regards, > Maxime Villard > _______________________________________________ > 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" > From owner-freebsd-hackers@freebsd.org Fri Jul 3 16:30:10 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 383E4994340 for ; Fri, 3 Jul 2015 16:30:10 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from nm13-vm0.bullet.mail.bf1.yahoo.com (nm13-vm0.bullet.mail.bf1.yahoo.com [98.139.213.79]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DFFC61191 for ; Fri, 3 Jul 2015 16:30:09 +0000 (UTC) (envelope-from pfg@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1435941004; bh=PotTc9ZJPPf/P4mm9l+Lcs7KFK/XQekA2LOKoAONH3c=; h=Date:From:To:CC:Subject:From:Subject; b=YIndnHSnTzGEcNIC4f0cXwlu8j4HROcZyt6CGk+l2HisaBNKsYBGiAOnDduyUJ6RbqG1h8PV8gSmA+5PJ/KKDneIvTDRj9RGyAgAx4XHqv5CFUKMJLar4g5nEInxkb8lx2CqeT7EShI8BViQdEo6mUgPtsGkq4pU1oZJGcSh6IgUGdWhZZgiDAAlYtr7dOBS5vnle7b6zGS8Z3khI/M0pY3RTE4ysT3UZvn9IQLjyVX9dXkH90xFONNYq55yCoNOrnrgF6X6taJ4pOKfDuJJtWoHLuOb+L7PJJpd0Hu0sEY4gO61vKSoHe+yIkpKEetqw8vUUtbBxyR4R4RMpWZ8QQ== Received: from [66.196.81.170] by nm13.bullet.mail.bf1.yahoo.com with NNFMP; 03 Jul 2015 16:30:04 -0000 Received: from [98.139.213.9] by tm16.bullet.mail.bf1.yahoo.com with NNFMP; 03 Jul 2015 16:30:02 -0000 Received: from [127.0.0.1] by smtp109.mail.bf1.yahoo.com with NNFMP; 03 Jul 2015 16:30:02 -0000 X-Yahoo-Newman-Id: 733462.62098.bm@smtp109.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: gSIjFt8VM1l8.B54VoYV_LhGLC_jiHJY1De.7VtKE7M.z6A 1iJYQyWGWvh_A6wH8noxiYzuajvUwroZzmvobXI3hr7kky8g3ZsBnlN2R32r ea55wckrzqvauoF35HNSdUwpyzY7ydLUfux6zuUx_APJ7isIkVG144FeMuQ6 zcvRvXsA.IOnbLZVvPg1mNvuJ2EfIEItSYmJk0Gq2f1IEdUBiUS4KARnGh5D oFQMpwfEWQCLGjDqAsTrP2b4saCQUOs51iOsox0e65xEDemFZhSPq4W2zi9z IPh.OkfYbmgeKnFt0RQyLQdxwGjRegF65__4wQF0T3SKEIoUUd1FjY79f24z gdN7pSNy_QYBSosZPzqj8ZWpBEz7axMdWD04BeKNRETHZD5B6rzOUR8CZrzG o3hqaICzWZ0btj0VnFDZxcrS0KJYSAIZVpRBtPcHyTqRmErn3yfoGXndQlnT IfPSsNno741LnfVRTzp52Np8vuNsg7O5KJJNHeRgD8MYnIWSTi8m9oykidjI cRtjnKvhakMjOw6BGVpju3P.PeCcLyDu6 X-Yahoo-SMTP: xcjD0guswBAZaPPIbxpWwLcp9Unf Message-ID: <5596B894.5060708@FreeBSD.org> Date: Fri, 03 Jul 2015 11:30:12 -0500 From: Pedro Giffuni Organization: FreeBSD Project User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Maxime Villard CC: FreeBSD Hackers Subject: Re: Brainy: Set of 17 potential bugs Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 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 Jul 2015 16:30:10 -0000 Hi Maxime; Le 28/02/2015 15:51, Maxime Villard a écrit : > Hi, > I have been developing a C code scanner for a while, particularly good at > finding kernel bugs. I've scanned the FreeBSD tree partially, and among > the numerous results, I've put here a list of 17 bugs affecting the > FreeBSD-10 Stable kernel: > > http://m00nbsd.net/59a47a86959c23b3f7c8bc495598dfde.html I think: # 04 SYS/NFS/ _01/FIXED-rev279405|UNINITIALIZED VAR: krpc_subr.crev256281 Uninitialized var 'so' at l.430. is a false positive. The socket is created on line 222. Cheers, Pedro. From owner-freebsd-hackers@freebsd.org Fri Jul 3 16:59:48 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2FC13994878 for ; Fri, 3 Jul 2015 16:59:48 +0000 (UTC) (envelope-from garga.bsd@gmail.com) Received: from mail-qg0-x22e.google.com (mail-qg0-x22e.google.com [IPv6:2607:f8b0:400d:c04::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DFF6518EA for ; Fri, 3 Jul 2015 16:59:47 +0000 (UTC) (envelope-from garga.bsd@gmail.com) Received: by qgeg89 with SMTP id g89so48540762qge.3 for ; Fri, 03 Jul 2015 09:59:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:content-type:content-transfer-encoding:subject :message-id:date:to:mime-version; bh=wOhp+Ytsfji2an15BNNgpyIzpnfXZeMsd3R3B41HFpM=; b=wVM2tOm6VjEjmu0SIeeqcIuzhtZofrhy/2jP+BzDpl0IdLuYS2On1GggQnODiPdAQN AQyEEos+XBVtlnnmWfpOH3dTG4b3SQiRtC5fK+8gYARYG/ff3rwOju5pFLoPgZj/QBdB O60qCoj1Xqp1pxu/ge99KFyLayTaqnNkZxiSLKg5rEr6PobhIqdUzreTTfrGabnwoI/9 G5+KdtI+IB0WqUBj7LCObvJCH7H0UyQxP03I0j9gXOmLM+H4h7Um6nl3NeXLpCZ78nXM FqMqS/wEna3XS1iaNZx6/USHf6AXyYkp2ujngXHNcQozFAtjpuy1tqv8NPOJ6wsu5Cxq GeqQ== X-Received: by 10.140.148.135 with SMTP id 129mr55529662qhu.24.1435942786938; Fri, 03 Jul 2015 09:59:46 -0700 (PDT) Received: from mbp.home (179-125-141-40.desktop.com.br. [179.125.141.40]) by mx.google.com with ESMTPSA id v64sm4686651qgv.28.2015.07.03.09.59.45 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 03 Jul 2015 09:59:46 -0700 (PDT) Sender: Renato Botelho From: Renato Botelho Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: rename() + fsync() implementation Message-Id: <2770DA5F-D7F2-46D9-9158-10C86115F8AC@FreeBSD.org> Date: Fri, 3 Jul 2015 13:59:43 -0300 To: FreeBSD Hackers Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2102\)) X-Mailer: Apple Mail (2.2102) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 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 Jul 2015 16:59:48 -0000 Some time ago we found a bug on pfSense and after investigating we = figured out the root cause was passwd / group related tools was not = checking if files were safe in disk, and system ended up with a 0 length = passwd/group db after a power cycle. There are more context at revision = [1]. After that, bapt@ suggest to do similar fix for cap_mkdb and = services_mkdb, that also can be found at another review [2]. Until now there are 3 places with added code similar to: /* * Make sure file is safe on disk. To improve performance we = will call * fsync() to the directory where file lies */ if (rename(tname, dbname) =3D=3D -1 || (dbname_dir =3D dirname(dbname)) =3D=3D NULL || (dbname_dir_fd =3D open(dbname_dir, O_RDONLY|O_DIRECTORY)) = =3D=3D -1 || fsync(dbname_dir_fd) !=3D 0) { if (dbname_dir_fd !=3D -1) close(dbname_dir_fd); err(1, "Cannot rename `%s' to `%s'", tname, dbname); } if (dbname_dir_fd !=3D -1) close(dbname_dir_fd); The idea is to implement a =E2=80=9Csync rename=E2=80=9D function to do = all these steps. I thought about it and IMO lib/libutil would be a good = place to implement it. But since I=E2=80=99m starting to touch src now, = I would like to hear more opinions about this. Thanks! [1] https://reviews.freebsd.org/D2978 [2] https://reviews.freebsd.org/D2982 -- Renato Botelho From owner-freebsd-hackers@freebsd.org Fri Jul 3 20:47:11 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DE4B09934B5 for ; Fri, 3 Jul 2015 20:47:11 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from nm17-vm1.bullet.mail.bf1.yahoo.com (nm17-vm1.bullet.mail.bf1.yahoo.com [98.139.213.55]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 918942FF7 for ; Fri, 3 Jul 2015 20:47:11 +0000 (UTC) (envelope-from pfg@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1435956424; bh=msvjKHcqHFGrqvhyAtyFmuk7mpkhQF182yW6P8dTVPo=; h=Date:From:To:CC:Subject:References:In-Reply-To:From:Subject; b=rl6RtCcPmX2ARIrC5VI0HT3kYJKx9L/T7ByZZVB7W94Q+vIaDwAhrGs32mpTJArBagXH/6xEHQ3SIiNHSlYpQg0kg84dazoG3U+2mJMc/XHs95q+MOm7xWgRH2g3UP4nNYaQW1+m3BDUcij9JOarCrIw09Ax2OY67fZzep/6FJc3VaYVZCyMk8KmknMmsLStnps1GxyHNqnfZXvCY7HhBBdeepch/DGLNaYzZjgEpgFzd1DwWLmv4c8FPPWkzL8+yvuvkXHx0YGj9whHvBNTuhmSyMi5ndUNTVMiKiTlZZMa2ST6UH38Z1A1w8U6VrJCFssiC1/rCo+jRMDBQx47Dg== Received: from [98.139.170.179] by nm17.bullet.mail.bf1.yahoo.com with NNFMP; 03 Jul 2015 20:47:04 -0000 Received: from [68.142.230.64] by tm22.bullet.mail.bf1.yahoo.com with NNFMP; 03 Jul 2015 20:47:04 -0000 Received: from [127.0.0.1] by smtp221.mail.bf1.yahoo.com with NNFMP; 03 Jul 2015 20:47:04 -0000 X-Yahoo-Newman-Id: 7939.7045.bm@smtp221.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: Ef8HejoVM1kRnTi2TxMzMwc5SbtftTUZn7iceQ_fCd98s_Z I.YSa2vT5Bqkv_ClhzbX8ZkXSrp6j2vxlWbl4pPv6dqCsUUFaJTG8jTzrBR0 s.P8VzDKfnprdTi3yRvd7V5fAQhavw9OK468cdsEDPWU4BDWnPQ8.Q_4HjeI eiZ0uAXEO.R7bol.m8CepXlPpL_3qzYZvYa0Tw1OOlK282_Udkql1XLICaVr ffUFCITteRCrN0H40gIh3yKGTDA9QeUhJnjJBMUVHErcAlJt8dSWtkAacdc8 vhoxKBDVng4e8kbNgRtEitCBSLRfYsWWCvqdRkaj_whvfLfwi9CEYQ7jAuwa 53osJQNXMlGl4PRnFkxZqSKvB.eQDhq2K.LlLp6oP_liWt7eAP5J4w7Ac2Ag JTn.X052T_yEtMp7h7Ck3JpaLnFGHqx4I2O.fAVz672DHbryizU5IVAOI1iS q0uI5BB.eC5jgdpZg8HxR9lvIdKkuzou9cnu7wm3AgGB8Abvn3b_jVhG5Ssc _tbibsenwmkk5.gOPdwa.KEmFQJ0XOltJ X-Yahoo-SMTP: xcjD0guswBAZaPPIbxpWwLcp9Unf Message-ID: <5596F4D3.5020602@FreeBSD.org> Date: Fri, 03 Jul 2015 15:47:15 -0500 From: Pedro Giffuni User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Maxime Villard CC: FreeBSD Hackers Subject: Re: Brainy: Set of 17 potential bugs References: <5596B894.5060708@FreeBSD.org> <5596BE6B.8030508@m00nbsd.net> In-Reply-To: <5596BE6B.8030508@m00nbsd.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 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 Jul 2015 20:47:12 -0000 On 07/03/15 11:55, Maxime Villard wrote: > Le 03/07/2015 18:30, Pedro Giffuni a écrit : >> Hi Maxime; >> >> Le 28/02/2015 15:51, Maxime Villard a écrit : >>> Hi, >>> I have been developing a C code scanner for a while, particularly good at >>> finding kernel bugs. I've scanned the FreeBSD tree partially, and among >>> the numerous results, I've put here a list of 17 bugs affecting the >>> FreeBSD-10 Stable kernel: >>> >>> http://m00nbsd.net/59a47a86959c23b3f7c8bc495598dfde.html >> I think: >> # 04 SYS/NFS/ >> >> _01/FIXED-rev279405|UNINITIALIZED VAR: krpc_subr.crev256281 >> >> Uninitialized var 'so' at l.430. >> >> is a false positive. >> >> The socket is created on line 222. >> > > I guess you didn't spot the "FIXED-rev279405" mentioned in the line you > just quoted. > > Fixed four months ago: > > http://svnweb.freebsd.org/base/head/sys/nfs/krpc_subr.c?view=log Ah, oops ... Sorry for *my* false positive. I shouldn't try to figure out stuff like this from a tablet. ;) Pedro. From owner-freebsd-hackers@freebsd.org Fri Jul 3 22:52:45 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 01D5F994D14 for ; Fri, 3 Jul 2015 22:52:45 +0000 (UTC) (envelope-from max@m00nbsd.net) Received: from 10.mo3.mail-out.ovh.net (10.mo3.mail-out.ovh.net [87.98.165.232]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BC0282D9B for ; Fri, 3 Jul 2015 22:52:44 +0000 (UTC) (envelope-from max@m00nbsd.net) Received: from mail404.ha.ovh.net (gw6.ovh.net [213.251.189.206]) by mo3.mail-out.ovh.net (Postfix) with SMTP id 48BF4FF93F9 for ; Fri, 3 Jul 2015 18:55:17 +0200 (CEST) Received: from localhost (HELO queueout) (127.0.0.1) by localhost with SMTP; 3 Jul 2015 18:55:16 +0200 Received: from str75-4-78-193-192-205.fbxo.proxad.net (HELO localhost.localdomain) (max@M00nBSD.net@78.193.192.205) by ns0.ovh.net with SMTP; 3 Jul 2015 18:55:15 +0200 Message-ID: <5596BE6B.8030508@m00nbsd.net> Date: Fri, 03 Jul 2015 18:55:07 +0200 From: Maxime Villard MIME-Version: 1.0 To: Pedro Giffuni CC: FreeBSD Hackers Subject: Re: Brainy: Set of 17 potential bugs References: <5596B894.5060708@FreeBSD.org> In-Reply-To: <5596B894.5060708@FreeBSD.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 13723312490244607963 X-Ovh-Remote: 78.193.192.205 (str75-4-78-193-192-205.fbxo.proxad.net) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-OVH-SPAMSTATE: OK X-OVH-SPAMSCORE: -100 X-OVH-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeekvddrfeehucetufdoteggucfrrhhofhhilhgvmecuqfggjfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddm X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeekvddrfeehucetufdoteggucfrrhhofhhilhgvmecuqfggjfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddm X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 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 Jul 2015 22:52:45 -0000 Le 03/07/2015 18:30, Pedro Giffuni a écrit : > Hi Maxime; > > Le 28/02/2015 15:51, Maxime Villard a écrit : >> Hi, >> I have been developing a C code scanner for a while, particularly good at >> finding kernel bugs. I've scanned the FreeBSD tree partially, and among >> the numerous results, I've put here a list of 17 bugs affecting the >> FreeBSD-10 Stable kernel: >> >> http://m00nbsd.net/59a47a86959c23b3f7c8bc495598dfde.html > > I think: > # 04 SYS/NFS/ > > _01/FIXED-rev279405|UNINITIALIZED VAR: krpc_subr.crev256281 > > Uninitialized var 'so' at l.430. > > is a false positive. > > The socket is created on line 222. > I guess you didn't spot the "FIXED-rev279405" mentioned in the line you just quoted. Fixed four months ago: http://svnweb.freebsd.org/base/head/sys/nfs/krpc_subr.c?view=log Maxime From owner-freebsd-hackers@freebsd.org Sat Jul 4 13:30:42 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B12D492A8 for ; Sat, 4 Jul 2015 13:30:42 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: from mail-wg0-x22e.google.com (mail-wg0-x22e.google.com [IPv6:2a00:1450:400c:c00::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 43764119A; Sat, 4 Jul 2015 13:30:42 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: by wgjx7 with SMTP id x7so106557859wgj.2; Sat, 04 Jul 2015 06:30:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-type:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=yqAEEaKro4VLiLf6++pIYNLnu9q1GtjPvWod6/0q1Us=; b=WUp8IPy++1NJJtr26kvJ6tdxCFTIO+XfOm1fYZ2TqHKThvBchezOMYQdmxSPKVyrPP /TeMNfhFEB6X04MZSCsK32jB2EtH5WljkxvRArZMJzn/GYhfknc1X3QUL7iRUPpjzb1F LCPraqBU/+hP4ht6oeY+FFJ0u8R6D7BR17St2sRrUJTr6Dk403uTHDgoZgUYzquXUzgg BJBfbmBOxaJqmdcp/+2PKAU9uSjoIaDXmryg56u04l7pL2Xz4rK0SQEvcTlwYRpK8mOD GHhiFqSMH+XhZLXzdCe40OBCuC5b0Gb+KxHdXHeP8b3x/E73j/C/vDmH2tDSJhVhPdvC 4RMA== X-Received: by 10.194.205.101 with SMTP id lf5mr84008362wjc.37.1436016639167; Sat, 04 Jul 2015 06:30:39 -0700 (PDT) Received: from dft-labs.eu (n1x0n-1-pt.tunnel.tserv5.lon1.ipv6.he.net. [2001:470:1f08:1f7::2]) by mx.google.com with ESMTPSA id dl10sm14823020wjb.42.2015.07.04.06.30.36 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sat, 04 Jul 2015 06:30:37 -0700 (PDT) Date: Sat, 4 Jul 2015 15:30:34 +0200 From: Mateusz Guzik To: Renato Botelho Cc: FreeBSD Hackers Subject: Re: rename() + fsync() implementation Message-ID: <20150704133034.GA3102@dft-labs.eu> Mail-Followup-To: Mateusz Guzik , Renato Botelho , FreeBSD Hackers References: <2770DA5F-D7F2-46D9-9158-10C86115F8AC@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2770DA5F-D7F2-46D9-9158-10C86115F8AC@FreeBSD.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 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 Jul 2015 13:30:42 -0000 On Fri, Jul 03, 2015 at 01:59:43PM -0300, Renato Botelho wrote: > Some time ago we found a bug on pfSense and after investigating we figured out the root cause was passwd / group related tools was not checking if files were safe in disk, and system ended up with a 0 length passwd/group db after a power cycle. There are more context at revision [1]. > > After that, bapt@ suggest to do similar fix for cap_mkdb and services_mkdb, that also can be found at another review [2]. > This definitely needs an explanation what is going on here. When the problem from [1] is encountered, which file appears to be zeroed? If the new one, should not O_SYNC you added in several places take care of that? (btw, it would be nicer if that was fsynced before close instead) If the old one, this still has the window (although miniscule compared to 5 mins) since whatever crash/failure you experienced can happen before you fsync. It may be ok enough in practice, but then the question is whether O_SYNC on the new file was of any significance. Or to state differently, do callers have to fsync/O_SYNC the file they are passing as an argument? Of course it may be either one can appear truncated. Assuming the whole approach makes sense here are some comments about the code itself: > /* > * Make sure file is safe on disk. To improve performance we will call > * fsync() to the directory where file lies > */ > if (rename(tname, dbname) == -1 || > (dbname_dir = dirname(dbname)) == NULL || dirname returns a pointer to an internal buffer, so it is not suitable for use in a library function (think: foo = dirname(...); this(...);) Since it can fail and does not depend on rename, it should have been done earlier. dbname_dir looks like a weird name. Something like dbdirname would be better. > (dbname_dir_fd = open(dbname_dir, O_RDONLY|O_DIRECTORY)) == -1 || dbname_dir_fd is definitely bad. This is not a name, this is a fd. So dbdirfd. > fsync(dbname_dir_fd) != 0) { Why does this do '!= 0' instead of '== -1'? > if (dbname_dir_fd != -1) > close(dbname_dir_fd); > err(1, "Cannot rename `%s' to `%s'", tname, dbname); It could be renamed succeeded, so this msg should be modified to state what really failed. But as a library func it likely should return an error instead, indicating which part failed. > } > > if (dbname_dir_fd != -1) > close(dbname_dir_fd); > At this point dbname_dir_fd is guaranteed to be != -1. > The idea is to implement a “sync rename” function to do all these steps. I thought about it and IMO lib/libutil would be a good place to implement it. But since I’m starting to touch src now, I would like to hear more opinions about this. > > > [1] https://reviews.freebsd.org/D2978 > [2] https://reviews.freebsd.org/D2982 -- Mateusz Guzik From owner-freebsd-hackers@freebsd.org Sat Jul 4 15:30:58 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id ACB2A95EC; Sat, 4 Jul 2015 15:30:58 +0000 (UTC) (envelope-from f0andrey@gmail.com) Received: from mail-wg0-x236.google.com (mail-wg0-x236.google.com [IPv6:2a00:1450:400c:c00::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BDA41867; Sat, 4 Jul 2015 15:30:58 +0000 (UTC) (envelope-from f0andrey@gmail.com) Received: by wguu7 with SMTP id u7so108241310wgu.3; Sat, 04 Jul 2015 08:30:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=SgNZFhQsWrhNIvpjWN6BbKHQ46am3cFsGHM8nzjqpsA=; b=A907fFgxgl6HNT0MH8/VdgpkLH7v7ztgYAHUmEHUgHigrwsZ31Ee6sCkhrY3wlDcgo yYWmJP4FJEFfK/4GppEdoTg79YDcGVgS3KnL6xi1DgUvyA2muUkGtz6AZdlqYFwhCjMe /8huLI9iXLYelUSaY6QOrBtkB7qjCgPs7THhEn1uwfZrHjzx5IHYCnB35Ql2GkST7aHf UMzkewSiiG8oqd797Vx+8clrTH42AWurolFfcbNo4Gc8rRfftap0gmtc0Ur4ELVHCdJP tNO8O/VFxziLlRYqiM4dSxCp+a/sT3022fxKsmtEGLFeEVwGmpI+rC9efqvyHJmNLcj1 OSOw== MIME-Version: 1.0 X-Received: by 10.180.23.33 with SMTP id j1mr28311769wif.44.1436023855708; Sat, 04 Jul 2015 08:30:55 -0700 (PDT) Received: by 10.194.64.102 with HTTP; Sat, 4 Jul 2015 08:30:55 -0700 (PDT) Date: Sat, 4 Jul 2015 18:30:55 +0300 Message-ID: Subject: UTF-8 xmonad (firefox+flash) crush Xorg From: Andrey Fesenko To: "freebsd-hackers@freebsd.org" , freebsd-x11@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 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 Jul 2015 15:30:58 -0000 Hello, I am trying to convert my laptop to use UTF-8 by default. Everything works fine, but when you try to start any page with flash (youtube) in firefox, the status bar will blink dzen2 and restart Xorg. Further, in the text env, files *.core and xmonad.hs are available here https://bsdnir.info/files/X-xmonad-ff-flash-crush/ % uname -a FreeBSD x220.efi.local 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r284871: Fri Jun 26 20:20:21 MSK 2015 root@des.local:/usr/obj/usr/src/sys/X220 amd64 % grep UTF /etc/login.conf :charset=UTF-8:\ :lang=en_GB.UTF-8:\ regenerated etc/login.conf.db and set login class for user % pkg info rxvt-unicode-9.21 hs-X11-1.6.1.2_1 hs-X11-xft-0.3.1_13 hs-data-default-0.5.3_6 hs-data-default-class-0.0.1_6 hs-data-default-instances-base-0.0.1_6 hs-data-default-instances-containers-0.0.1_6 hs-data-default-instances-dlist-0.0.1_6 hs-data-default-instances-old-locale-0.0.1_6 hs-dlist-0.7.1_1 hs-extensible-exceptions-0.1.1.4_6 hs-hscolour-1.20.3_8,1 hs-mtl-2.1.3.1_1 hs-random-1.0.1.1_10 hs-utf8-string-0.3.8_1 hs-xmonad-0.11_10 hs-xmonad-contrib-0.11.3_2 ghc-7.8.3_1 firefox-38.0.6,1 linux-c6-flashplugin-11.2r202.4 xorg-server-1.14.7_5,168 dzen2-0.9.5 (with XFT) /var/log/Xorg.0.log [ 14846.947] (II) config/devd: terminating backend... [ 14846.948] (II) UnloadModule: "mouse" [ 14846.948] (II) UnloadModule: "kbd" [ 14847.232] (EE) Server terminated successfully (0). Closing log file. /var/log/messages Jul 4 17:13:24 x220 kernel: pid 49299 (xmonad-x86_64-freeb), uid 1001: exited on signal 4 (core dumped) Jul 4 17:13:27 x220 kernel: pid 49319 (plugin-container), uid 1001: exited on signal 11 (core dumped) Jul 4 17:13:28 x220 devd: check_clients: dropping disconnected client From owner-freebsd-hackers@freebsd.org Sat Jul 4 18:41:28 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4ABD496FD; Sat, 4 Jul 2015 18:41:28 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ie0-x22c.google.com (mail-ie0-x22c.google.com [IPv6:2607:f8b0:4001:c03::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 180091134; Sat, 4 Jul 2015 18:41:28 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by iebmu5 with SMTP id mu5so92251252ieb.1; Sat, 04 Jul 2015 11:41:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=kM3bek2r8yGXce+niEA1hcykAMp2vpMJ0DpvX7EgEaY=; b=PnET0IrEmdu4dP3hmDCz2BHD/9xRXpK4G1yoywbEy9YgRJ6VEGOoBRLK+aZdSYI6g5 bNstRh1GDOM6w1d4rqLO6ikOgpMXJr30YxLIdJBDHUM/EUvq/27cbuO6fuBo5+Rv+5mG +XFzA7GSOW797YjkXX9/SfnNNQiNgSUoV27K3ujNOMIziWYKnJ7WzbssZck49d5DznnO CrWAn2MNhTR7EnyHG1U3HwPiAszcbm1QuiKDa8rxBujJ+PpNY+KsYyaxvcjP6d/d9Gt0 muYSDpyqJtBCJqa6gGMUTXBBSlxPoUvqy1MD43uRZExjGakWxz1Stw+MoxcXMyB9U+QH YyMg== MIME-Version: 1.0 X-Received: by 10.107.5.1 with SMTP id 1mr36806614iof.88.1436035287307; Sat, 04 Jul 2015 11:41:27 -0700 (PDT) Received: by 10.36.38.133 with HTTP; Sat, 4 Jul 2015 11:41:27 -0700 (PDT) In-Reply-To: References: Date: Sat, 4 Jul 2015 11:41:27 -0700 Message-ID: Subject: Re: UTF-8 xmonad (firefox+flash) crush Xorg From: Adrian Chadd To: Andrey Fesenko Cc: "freebsd-hackers@freebsd.org" , freebsd-x11 Content-Type: text/plain; charset=UTF-8 X-Mailman-Approved-At: Sat, 04 Jul 2015 18:46:17 +0000 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 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 Jul 2015 18:41:28 -0000 hi! ca n you at least post a backtrace? -a On 4 July 2015 at 08:30, Andrey Fesenko wrote: > Hello, > I am trying to convert my laptop to use UTF-8 by default. > Everything works fine, but when you try to start any page with flash > (youtube) in firefox, the status bar will blink dzen2 and restart > Xorg. > Further, in the text env, files *.core and xmonad.hs are available > here https://bsdnir.info/files/X-xmonad-ff-flash-crush/ > > % uname -a > FreeBSD x220.efi.local 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r284871: > Fri Jun 26 20:20:21 MSK 2015 > root@des.local:/usr/obj/usr/src/sys/X220 amd64 > > % grep UTF /etc/login.conf > :charset=UTF-8:\ > :lang=en_GB.UTF-8:\ > regenerated etc/login.conf.db and set login class for user > > % pkg info > rxvt-unicode-9.21 > hs-X11-1.6.1.2_1 > hs-X11-xft-0.3.1_13 > hs-data-default-0.5.3_6 > hs-data-default-class-0.0.1_6 > hs-data-default-instances-base-0.0.1_6 > hs-data-default-instances-containers-0.0.1_6 > hs-data-default-instances-dlist-0.0.1_6 > hs-data-default-instances-old-locale-0.0.1_6 > hs-dlist-0.7.1_1 > hs-extensible-exceptions-0.1.1.4_6 > hs-hscolour-1.20.3_8,1 > hs-mtl-2.1.3.1_1 > hs-random-1.0.1.1_10 > hs-utf8-string-0.3.8_1 > hs-xmonad-0.11_10 > hs-xmonad-contrib-0.11.3_2 > ghc-7.8.3_1 > firefox-38.0.6,1 > linux-c6-flashplugin-11.2r202.4 > xorg-server-1.14.7_5,168 > dzen2-0.9.5 (with XFT) > > /var/log/Xorg.0.log > [ 14846.947] (II) config/devd: terminating backend... > [ 14846.948] (II) UnloadModule: "mouse" > [ 14846.948] (II) UnloadModule: "kbd" > [ 14847.232] (EE) Server terminated successfully (0). Closing log file. > > /var/log/messages > Jul 4 17:13:24 x220 kernel: pid 49299 (xmonad-x86_64-freeb), uid > 1001: exited on signal 4 (core dumped) > Jul 4 17:13:27 x220 kernel: pid 49319 (plugin-container), uid 1001: > exited on signal 11 (core dumped) > Jul 4 17:13:28 x220 devd: check_clients: dropping disconnected client > _______________________________________________ > 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" From owner-freebsd-hackers@freebsd.org Sat Jul 4 18:49:45 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A95539790; Sat, 4 Jul 2015 18:49:45 +0000 (UTC) (envelope-from baptiste.daroussin@gmail.com) Received: from mail-wi0-x22d.google.com (mail-wi0-x22d.google.com [IPv6:2a00:1450:400c:c05::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3D95612FE; Sat, 4 Jul 2015 18:49:45 +0000 (UTC) (envelope-from baptiste.daroussin@gmail.com) Received: by wiwl6 with SMTP id l6so252907451wiw.0; Sat, 04 Jul 2015 11:49:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=dlU0K5mqHJdMorNbo1YVarG4tV27jxOrlVrKFLLeGko=; b=EJeIaToKwA6t8HoKA1Q5PIbtyH7J2CrtY2Vh9Qm4EmZuVUVH+FiA7jWoBmzB62SfEG vUe1hp/w4IMXv3ZGchG+cYPCbLaQJfeq/ed4cv2hE1H3CUD9JlYEeBROTbwUpFrQcCmM fMQar+ohysXfu+tYaau4rcmzOjPlj4yZcUXQFlglEnj19OliF6VoXTEd7XyuYaDVk7ki DI4cOflEgaWio8z6gKbNWwZ9bvt+8Z2Y6fr8JXLQyJ7MeP38V4G1rCUTnxSChb4iEks9 VtOwMrMANCFuIsaZl7ByZdDCrRK2G36mQpP7ow5pVF/XohwPDLSxlNls+RdEGuuERJWp ktPg== X-Received: by 10.194.192.72 with SMTP id he8mr80727958wjc.11.1436035783755; Sat, 04 Jul 2015 11:49:43 -0700 (PDT) Received: from ivaldir.etoilebsd.net ([2001:41d0:8:db4c::1]) by mx.google.com with ESMTPSA id ea2sm30009053wib.22.2015.07.04.11.49.42 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 04 Jul 2015 11:49:43 -0700 (PDT) Sender: Baptiste Daroussin Date: Sat, 4 Jul 2015 20:49:40 +0200 From: Baptiste Daroussin To: Adrian Chadd Cc: Andrey Fesenko , "freebsd-hackers@freebsd.org" , freebsd-x11 Subject: Re: UTF-8 xmonad (firefox+flash) crush Xorg Message-ID: <20150704184939.GC97710@ivaldir.etoilebsd.net> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="E/DnYTRukya0zdZ1" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 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 Jul 2015 18:49:45 -0000 --E/DnYTRukya0zdZ1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jul 04, 2015 at 11:41:27AM -0700, Adrian Chadd wrote: > hi! >=20 > ca n you at least post a backtrace? >=20 Would be non trivial to get a backtrace on plugin-container which is a proc= ess spawned by firefox Best regards, Bapt --E/DnYTRukya0zdZ1 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlWYKsMACgkQ8kTtMUmk6EzYcQCfdVOXllUyp+ydq3uenx16MxTE 5HYAoKEkRh2QJZEl41EsgPpjlMPgKRMS =lGyx -----END PGP SIGNATURE----- --E/DnYTRukya0zdZ1-- From owner-freebsd-hackers@freebsd.org Sat Jul 4 19:00:22 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2AF52999D; Sat, 4 Jul 2015 19:00:22 +0000 (UTC) (envelope-from baptiste.daroussin@gmail.com) Received: from mail-wg0-x22a.google.com (mail-wg0-x22a.google.com [IPv6:2a00:1450:400c:c00::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AAA841BAD; Sat, 4 Jul 2015 19:00:21 +0000 (UTC) (envelope-from baptiste.daroussin@gmail.com) Received: by wguu7 with SMTP id u7so110403235wgu.3; Sat, 04 Jul 2015 12:00:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=H/4/s7RkaevdxElVAftez0Q15UuoBaiJ7mBATSiwG7s=; b=CA/Yyh0LMtzRiqQd/as8q8qnZ/tmFmr8KETA6tJKnsVWmRuG7S6STk1q1tewOjIB2B HFdoYXSaz+XFbvbSsYvFOuaSS6ljbms8BUTZ69SN7Qo6Xy1wXoeaeb6RFUBXyEX6YGqG UfZaMvTJKSd0Y44tLtSs1lRyHhvBid1Tch8F7nZyuhByNWbHOzbFZ9Gla7mKHljYObbW z9OsY3gwLDKoo/aKMZt5rzeM0rg4sVLZe9eldO30Dnq6/JibrZA8/FBoFjnGHGxVjeGt 5SkM/q1VNXlRXXB310OneKxOER5Gw1UMtBJc2ZLVmjqUZDOyDPmdfSx/b0J96rEkq/2G jA5g== X-Received: by 10.180.9.225 with SMTP id d1mr76388401wib.73.1436036420166; Sat, 04 Jul 2015 12:00:20 -0700 (PDT) Received: from ivaldir.etoilebsd.net ([2001:41d0:8:db4c::1]) by mx.google.com with ESMTPSA id qq1sm19274540wjc.0.2015.07.04.12.00.18 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 04 Jul 2015 12:00:19 -0700 (PDT) Sender: Baptiste Daroussin Date: Sat, 4 Jul 2015 21:00:17 +0200 From: Baptiste Daroussin To: Adrian Chadd Cc: Andrey Fesenko , "freebsd-hackers@freebsd.org" , freebsd-x11 Subject: Re: UTF-8 xmonad (firefox+flash) crush Xorg Message-ID: <20150704190016.GD97710@ivaldir.etoilebsd.net> References: <20150704184939.GC97710@ivaldir.etoilebsd.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="DiL7RhKs8rK9YGuF" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 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 Jul 2015 19:00:22 -0000 --DiL7RhKs8rK9YGuF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jul 04, 2015 at 11:57:27AM -0700, Adrian Chadd wrote: > Can't get it from the coredump? >=20 Sure if he rebuilds firefox with symbols, hence why I said non trivial :) Best regards, bapt --DiL7RhKs8rK9YGuF Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlWYLUAACgkQ8kTtMUmk6Ewo1wCfeLC6ilp7rDbC9F8u7Rz0Q1ML +f8AoKGptWfstH7ZMkZmCm7o1FnWXnhZ =gbTK -----END PGP SIGNATURE----- --DiL7RhKs8rK9YGuF-- From owner-freebsd-hackers@freebsd.org Sat Jul 4 18:57:28 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CF3B2994E; Sat, 4 Jul 2015 18:57:28 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ig0-x233.google.com (mail-ig0-x233.google.com [IPv6:2607:f8b0:4001:c05::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9CA1E1B16; Sat, 4 Jul 2015 18:57:28 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by igblr2 with SMTP id lr2so93100871igb.0; Sat, 04 Jul 2015 11:57:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=tUp/TQ2FiF1ecxFGmreEJmYlVuu1warM+W5toY9a1ys=; b=urERAW4C7nMfWqBQTmI0Idw3NGJi0llDCcW3qkMkjFSgcSny07N8NnIBkg7FtroDh3 +5ZOMA2E9AIxJj8WMSLUvyiylzgk19A8fpo1eMVfovvmhLQlP1ievFM9RzRqGHmPMHSw A08ec8o1Ch3U7ouyuHit6duJ24ryKP7YTGj9TcsfrtQWybBPPq9zBr2STU8OcfyMtA4I IkHNzXG7DE7pqKTgDBtXa3wImrE7jzLcXeXgz815yQGTR2D9XKbf9fhsn2hLJeJtI8aF lFymHn/MmuNgBQvMio0lUuZ1MJQIQiZa/uJrR5TTB2gt5l+cvgO3ab53VHl46xKworyU AnbA== MIME-Version: 1.0 X-Received: by 10.50.102.7 with SMTP id fk7mr30044869igb.49.1436036247481; Sat, 04 Jul 2015 11:57:27 -0700 (PDT) Received: by 10.36.38.133 with HTTP; Sat, 4 Jul 2015 11:57:27 -0700 (PDT) In-Reply-To: <20150704184939.GC97710@ivaldir.etoilebsd.net> References: <20150704184939.GC97710@ivaldir.etoilebsd.net> Date: Sat, 4 Jul 2015 11:57:27 -0700 Message-ID: Subject: Re: UTF-8 xmonad (firefox+flash) crush Xorg From: Adrian Chadd To: Baptiste Daroussin Cc: Andrey Fesenko , "freebsd-hackers@freebsd.org" , freebsd-x11 Content-Type: text/plain; charset=UTF-8 X-Mailman-Approved-At: Sat, 04 Jul 2015 20:04:53 +0000 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 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 Jul 2015 18:57:28 -0000 Can't get it from the coredump? -a On 4 July 2015 at 11:49, Baptiste Daroussin wrote: > On Sat, Jul 04, 2015 at 11:41:27AM -0700, Adrian Chadd wrote: >> hi! >> >> ca n you at least post a backtrace? >> > Would be non trivial to get a backtrace on plugin-container which is a process > spawned by firefox > > Best regards, > Bapt