From owner-freebsd-stable@FreeBSD.ORG Mon Feb 16 23:41:06 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5C84510656D4 for ; Mon, 16 Feb 2009 23:41:06 +0000 (UTC) (envelope-from galen.sampson@gmail.com) Received: from mail-ew0-f21.google.com (mail-ew0-f21.google.com [209.85.219.21]) by mx1.freebsd.org (Postfix) with ESMTP id B6F8B8FC14 for ; Mon, 16 Feb 2009 23:41:05 +0000 (UTC) (envelope-from galen.sampson@gmail.com) Received: by ewy14 with SMTP id 14so2307976ewy.19 for ; Mon, 16 Feb 2009 15:41:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=27qc8WAPoRnAhVdzlYz9osYjcz+FtY+LBZnacKq8NSA=; b=qwdocqTzWN4jZqasCjlibtADhPz5RqD357zmgAqGlArXCd2kmi6rZhfHqgACqUXKgf qjHs3mdxdVfgh0hQoUloIQCNoPIU6gv5QfSqdoR2rKQ5CCGDtB4q7qPiyo08eIyHH9SF 0flpl1mfqjdEmyjhqZoKhIiu+cpWSbn3JCIJw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=n6Xmkh3yBQNTHgfS1NpDLFEDmeABGmQt/a47oGztjNPyCKYsTiwcvOItHZI1WOd8Dn 5tn5WH3MXZjj5txYoa1IAOaUSTPrP5WAx+2T3Y7jXlG1Booq0vjGWi7I+gPFhow6ZP6r 5bCBsUsbCNAaK40fOxXP9ILVuL81n/oYJf2B8= Received: by 10.210.65.2 with SMTP id n2mr3321352eba.35.1234825968844; Mon, 16 Feb 2009 15:12:48 -0800 (PST) Received: from ?192.168.0.98? (ip72-205-194-62.sb.sd.cox.net [72.205.194.62]) by mx.google.com with ESMTPS id i7sm3682492nfh.26.2009.02.16.15.12.46 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 16 Feb 2009 15:12:48 -0800 (PST) Message-ID: <4999F2F5.2000503@gmail.com> Date: Mon, 16 Feb 2009 15:12:53 -0800 From: Galen Sampson User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.17) Gecko/20080914 Thunderbird/2.0.0.17 Mnenhy/0.7.6.666 MIME-Version: 1.0 To: FreeBSD Stable Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: csup permissions issue + truss core dump X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Feb 2009 23:41:06 -0000 All, I am running 7.1-RELEASE-p2. I use csup to update my base source tree and my ports tree. I want to be able to update my sources while running as a user that doesn't own the files being updated. I have /usr/ports set as a symlink to /home/port_builder/ports. The files there are owned by the user "port_builder" and group "port_builder". I then add my user to the "port_builder" group. When I run csup I see the following output when a file is changed: Updater failed: Cannot install "/home/port_builder/ports/audio/last.fm/#cvs.csup-14913.1" to "/home/port_builder/ports/audio/last.fm/Makefile": Operation not permitted However if I mv the #cvs.csup-14913.1 to Makefile as the same user this works just fine. To debug the problem I tried to run csup under truss. This did not work as expected as truss dumps core when the permission denied occurs and generates no output to help. To debug the truss core dump I tried the following: cd /usr/src/usr.bin/truss; make CFLAGS="-g -pipe" depend make CFLAGS="-g -pipe" gdb -core ~/truss.core truss Unfortunately the backtrace is garbled: > gdb -core ~/truss.core truss GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-marcel-freebsd"... warning: exec file is newer than core file. Core was generated by `truss'. Program terminated with signal 11, Segmentation fault. #0 0x28113199 in ?? () (gdb) bt #0 0x28113199 in ?? () #1 0x0000000c in ?? () #2 0x00003989 in ?? () #3 0xbfbfe7b8 in ?? () #4 0x00000000 in ?? () #5 0x28202000 in ?? () #6 0x00000000 in ?? () #7 0x00000001 in ?? () #8 0x00000000 in ?? () #9 0xbf4fa000 in ?? () #10 0x37382332 in ?? () #11 0xbfbfeac8 in ?? () #12 0x08049ea5 in get_string (pid=0, offset=0x37382332, max=-1085300736) at syscalls.c:475 Previous frame identical to this frame (corrupt stack?) (gdb) Can anyone else reproduce the problem with truss? Is what I am trying to do supported by csup? Regards, Galen