From owner-freebsd-questions@FreeBSD.ORG Sat Nov 12 16:48:14 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 029E416A41F for ; Sat, 12 Nov 2005 16:48:14 +0000 (GMT) (envelope-from alistair.sutton@gmail.com) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4CF6243D45 for ; Sat, 12 Nov 2005 16:48:13 +0000 (GMT) (envelope-from alistair.sutton@gmail.com) Received: by nproxy.gmail.com with SMTP id n28so213134nfc for ; Sat, 12 Nov 2005 08:48:12 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=nwHalowIAQEFZa1C5d5j9Tc/3YO0Sxe/tkFgHT5AkATbohpN6F0gaesHiHGg4AnXJ68Bgd6zYNNIzmZeXVBK4ryhbRwjvN2wet9HURwsplkNPXL9WZJGuM7ohdngUtLf7xkB18nxQgDamN6K5l+daMxaxS0CNknkCaWoaXOokms= Received: by 10.48.199.3 with SMTP id w3mr137550nff; Sat, 12 Nov 2005 08:41:10 -0800 (PST) Received: by 10.48.3.11 with HTTP; Sat, 12 Nov 2005 08:41:10 -0800 (PST) Message-ID: Date: Sat, 12 Nov 2005 16:41:10 +0000 From: Alistair Sutton To: cpghost In-Reply-To: <20051112154221.GA71266@fw.farid-hajji.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20051112154221.GA71266@fw.farid-hajji.net> Cc: ringworm01@gmail.com, freebsd-questions@freebsd.org Subject: Re: portmanager coredumps [with backtrace] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Nov 2005 16:48:14 -0000 On 12/11/05, cpghost wrote: > First time using portmanager. Using command line: > # portmanager -u -pi editors/openoffice-1.1 -l -f > It coredumps approx at line 00218 or so: > > MGPMrController 0.3.4_0 info: running in forced update mode > ------------------------------------------------------------------------ > portmanager 0.3.4_0: Collecting installed port data "forced mode" > ------------------------------------------------------------------------ > 00574 setiathome-3.08_3 /astro/setiathome > 00573 compat4x-i386-5.3_2 /misc/compat4x > 00572 localedata-5.4 /misc/localedata > 00571 tiff-3.7.4 /graphics/tiff > 00570 libtool-1.5.20 /devel/libtool15 > 00569 jpeg-6b_3 /graphics/jpeg > [...] > > Here's the backtrace: > > #0 0x2812c216 in strcpy () from /lib/libc.so.6 > #1 0x080fd000 in ?? () > #2 0x2807f82c in rrGetPortName (property=3D0xbfbfeb50, > portDir=3D0x80ed000 "/ports/multimedia/avifile/../win32-codecs", > portName=3D0x80fd000 "qt-3.3.5") at MGPMrCreateAllUpdateStatusDb.c:20= 9 > #3 0x2808047b in rrParse (property=3D0xbfbfeb50, > availablePortName=3D0x80ad000 "avifile-0.7.41,2", > availablePortDir=3D0x809d000 "/multimedia/avifile", > dependType=3D0xbfbfe790 "RUN_DEPENDS", > buffer=3D0x80cd000 "/usr/X11R6/bin/moc:/usr/ports/x11-toolkits/qt33", > counterPtr=3D0xbfbfe84c) at MGPMrCreateAllUpdateStatusDb.c:496 > #4 0x280801e4 in rrDependencyParse (property=3D0xbfbfeb50, > buffer=3D0x80cd000 "/usr/X11R6/bin/moc:/usr/ports/x11-toolkits/qt33", > availablePortName=3D0x80ad000 "avifile-0.7.41,2", > availablePortDir=3D0x809d000 "/multimedia/avifile", > dependType=3D0xbfbfe790 "RUN_DEPENDS", counterPtr=3D0xbfbfe84c) > at MGPMrCreateAllUpdateStatusDb.c:424 > #5 0x2807ff3e in rrFillDependencies (property=3D0xbfbfeb50, > availablePortName=3D0x80ad000 "avifile-0.7.41,2", > availablePortDir=3D0x809d000 "/multimedia/avifile", counterPtr=3D0xbf= bfe84c) > at MGPMrCreateAllUpdateStatusDb.c:351 > #6 0x2807f5d6 in rrFindDepends (property=3D0xbfbfeb50, > availablePortDir=3D0x809d000 "/multimedia/avifile", > availablePortName=3D0x80ad000 "avifile-0.7.41,2", counterPtr=3D0xbfbf= e84c) > at MGPMrCreateAllUpdateStatusDb.c:149 > #7 0x2807f4c9 in MGPMrCreateAllUpdateStatusDb (property=3D0xbfbfeb50) > at MGPMrCreateAllUpdateStatusDb.c:117 > #8 0x2807e7ce in rPmUpgradeNewMethod (property=3D0xbfbfeb50) > at MGPMrController.c:727 > #9 0x2807d724 in MGPMrController (property=3D0xbfbfeb50, > path=3D0xbfbfead0 "PMUPGRADE") at MGPMrController.c:408 > #10 0x2807be6d in rParseCommandLine (property=3D0xbfbfeb50, argc=3D6, > argv=3D0xbfbfed18) at MGPMrCommandLine.c:302 > #11 0x2807b5d9 in MGPMrCommandLine (argc=3D6, argv=3D0xbfbfed18) > at MGPMrCommandLine.c:115 > #12 0x08048533 in main (argc=3D6, argv=3D0xbfbfed18) at portmanager.c:38 I had this on my machine. In the multimedia/avifile Makefile there is the following: #CODEC_PORT=3D ${PORTSDIR}/multimedia/win32-codecs CODEC_PORT=3D ${.CURDIR}/../win32-codecs Switching the commented lines around to this CODEC_PORT=3D ${PORTSDIR}/multimedia/win32-codecs #CODEC_PORT=3D ${.CURDIR}/../win32-codecs stops portmanager from coredumping when scanning that port. I'm unsure as to where the problem lies so I wouldn't entirely recommend making the change unless you're willing to spend time fixing things if they get broken (note: I've had no problems so far but since I don't fully understand the way the port works I'm not going to say this is the Right Thing To Do ;-) Al -- GPG/PGP: http://www.no-dns-yet.org.uk/~everlone/pubkey.gpg