Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Apr 2010 16:42:46 +0200
From:      Giuseppe Pagnoni <gpagnoni@gmail.com>
To:        Garrett Cooper <yanefbsd@gmail.com>
Cc:        freebsd-ports-bugs@freebsd.org, Dmitry Marakasov <amdmi3@amdmi3.ru>, freebsd-python@freebsd.org
Subject:   Re: pyglet segfaults on FreeBSD 8.0/amd64/nVidia
Message-ID:  <y2o92056ebc1004140742j95be372vba684348b55353f5@mail.gmail.com>
In-Reply-To: <n2z92056ebc1004140651g86164e3zd4eedb6c8a0d3d8@mail.gmail.com>
References:  <h2z92056ebc1004140144p1df1b5bcq3934ff6cf997834f@mail.gmail.com> <20100414120914.GB3605@hades.panopticon> <q2x7d6fde3d1004140623ue80886c0o21e6316cdff46a92@mail.gmail.com> <n2z92056ebc1004140651g86164e3zd4eedb6c8a0d3d8@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <gpagnoni@gmail.com> 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 <yanefbsd@gmail.com> wrot=
e:
>> On Wed, Apr 14, 2010 at 5:09 AM, Dmitry Marakasov <amdmi3@amdmi3.ru> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?y2o92056ebc1004140742j95be372vba684348b55353f5>