From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Apr 14 14:42:47 2010 Return-Path: Delivered-To: freebsd-ports-bugs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A7D47106566C; Wed, 14 Apr 2010 14:42:47 +0000 (UTC) (envelope-from gpagnoni@gmail.com) Received: from mail-yx0-f174.google.com (mail-yx0-f174.google.com [209.85.210.174]) by mx1.freebsd.org (Postfix) with ESMTP id 4BDD18FC1F; Wed, 14 Apr 2010 14:42:46 +0000 (UTC) Received: by yxe4 with SMTP id 4so90626yxe.28 for ; Wed, 14 Apr 2010 07:42:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=8wVlqF/Zn+Gs2hJeth1bBtNTtCP7MO5pLPdxmTeLUmc=; b=Usu//3eeX44npmLhs14mYJYuD+idecAGwIGYAu/zSP6HTZqviePht7hhPOduzn6tZw lkKDjApJhJ6DbxX1+ET7ODC2O0xj6JvM2VG57qYs6APVMr+vzzWkxbk3fmjyqX1K/iRq oTVKAtkqNT6YTftBHktkNg+IMb/266lR4Oetc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=JXAzijGgIGUwppHT95DWWKrsX4zB2H0nJfNYjxWJX+aXJB8Qf+3i5cvVpMlfAm1tpb /PccqxtPHwGIF9LIfo9TPIpfkk+5gU8aZRSvu5UlXUGClsdCL3jN7A8MU0E5YN8yNTzs hrxhqeJNmiOP8TW34HSWv4kXuNuZCOJK7DddU= MIME-Version: 1.0 Received: by 10.90.97.18 with HTTP; Wed, 14 Apr 2010 07:42:46 -0700 (PDT) In-Reply-To: References: <20100414120914.GB3605@hades.panopticon> Date: Wed, 14 Apr 2010 16:42:46 +0200 Received: by 10.91.197.29 with SMTP id z29mr2705391agp.17.1271256166064; Wed, 14 Apr 2010 07:42:46 -0700 (PDT) Message-ID: From: Giuseppe Pagnoni To: Garrett Cooper Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-ports-bugs@freebsd.org, freebsd-python@freebsd.org Subject: Re: pyglet segfaults on FreeBSD 8.0/amd64/nVidia X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Apr 2010 14:42:47 -0000 Dear all, thanks for your help, I have re-built python and pyglet and run gdb on the core file that gets produced by running the pyglet code. I am not sure about the procedure, so I will detail it in the following: cd /usr/ports/lang/python26 make deinstall clean make WITH_DEBUG=3D"yes" reinstall cd /usr/ports/graphics/py-pyglet make deinstall clean make WITH_DEBUG=3D"yes" reinstall python foobar2.py (the file foobar2.py contains just the following lines: import pyglet luxi =3D pyglet.font.load('Luxi Sans', 14) =3D> I get a segmentation fault and a python.core file. When I run: gdb core python.core I get: 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 ar= e welcome to change it and/or distribute copies of it under certain condition= s. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "amd64-marcel-freebsd"...core: No such file or directory. Core was generated by `python'. Program terminated with signal 11, Segmentation fault. #0 0x0000000807a3d901 in ?? () It doesn't seem very informative to me but I don't know how to use gdb at all; perhaps the debug symbols were stripped on install? By the way, I will repost here the content of my /etc/make.conf file for clarity: # added by use.perl 2010-03-23 15:25:42 PERL_VERSION=3D5.10.1 # Give preference to CUPS WITH_CUPS=3DYES CUPS_OVERWRITE_BASE=3DYES WITHOUT_LPR=3DYES thanks again very best giuseppe On Wed, Apr 14, 2010 at 3:51 PM, Giuseppe Pagnoni wrot= e: > Dear all, > > thanks for the quick reply. =A0Here the content of /etc/make.conf: > > # added by use.perl 2010-03-23 15:25:42 > PERL_VERSION=3D5.10.1 > # Give preference to CUPS > WITH_CUPS=3DYES > CUPS_OVERWRITE_BASE=3DYES > WITHOUT_LPR=3DYES > > I am currently recompiling python and pyglet WITH_DEBUG as per > Dmitry's suggestion and will post the results ASAP. > > thanks again, > > =A0giuseppe > > On Wed, Apr 14, 2010 at 3:23 PM, Garrett Cooper wrot= e: >> On Wed, Apr 14, 2010 at 5:09 AM, Dmitry Marakasov wro= te: >>> * Giuseppe Pagnoni (gpagnoni@gmail.com) wrote: >>> >>>> First of all, let me apologize for the re- and cross-posting , but aft= er a >>>> couple of weeks scouring the web and forums to no avail, I thought I w= ould >>>> try again and query the FreeBSD mother source... >>>> >>>> I installed pyglet from the ports (latest version as of yesterday, >>>> py26-pyglet-1.1.2_1) on a FreeBSD 8.0 amd64 box, running the latest ve= rsion >>>> of the ports' nvidia driver (nvidia-driver-195.36.15). =A0I found that= I >>>> cannot use either font.Text or text.label without causing segfaults. = =A0Here >>>> is some sample code that makes python crash: >>> >>> The problem is most likely 64 bits. On FreeBSD 8/i386/nVidia I don't >>> see any crashes. You should try rebuilding pyglet and python >>> WITH_DEBUG and run your testcases under gdb. >> >> =A0 =A0We need make.conf information for reproduction purposes. >> Thanks, >> -Garrett >> > > > > -- > Giuseppe Pagnoni > Dip. Scienze Biomediche > Sezione Fisiologia > Univ. di Modena e Reggio Emilia > Via Campi 287 > I-41125 Modena, Italy > Tel: +39-059-205-5742 > Fax: +39-059-205-5336 > --=20 Giuseppe Pagnoni Dip. Scienze Biomediche Sezione Fisiologia Univ. di Modena e Reggio Emilia Via Campi 287 I-41125 Modena, Italy Tel: +39-059-205-5742 Fax: +39-059-205-5336