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="yes" reinstall cd /usr/ports/graphics/py-pyglet make deinstall clean make WITH_DEBUG="yes" reinstall python foobar2.py (the file foobar2.py contains just the following lines: import pyglet luxi = pyglet.font.load('Luxi Sans', 14) => 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 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 "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=5.10.1 # Give preference to CUPS WITH_CUPS=YES CUPS_OVERWRITE_BASE=YES WITHOUT_LPR=YES thanks again very best giuseppe On Wed, Apr 14, 2010 at 3:51 PM, Giuseppe Pagnoni <gpagn...@gmail.com> wrote: > Dear all, > > thanks for the quick reply. Here the content of /etc/make.conf: > > # added by use.perl 2010-03-23 15:25:42 > PERL_VERSION=5.10.1 > # Give preference to CUPS > WITH_CUPS=YES > CUPS_OVERWRITE_BASE=YES > WITHOUT_LPR=YES > > I am currently recompiling python and pyglet WITH_DEBUG as per > Dmitry's suggestion and will post the results ASAP. > > thanks again, > > giuseppe > > On Wed, Apr 14, 2010 at 3:23 PM, Garrett Cooper <yanef...@gmail.com> wrote: >> On Wed, Apr 14, 2010 at 5:09 AM, Dmitry Marakasov <amd...@amdmi3.ru> wrote: >>> * Giuseppe Pagnoni (gpagn...@gmail.com) wrote: >>> >>>> First of all, let me apologize for the re- and cross-posting , but after a >>>> couple of weeks scouring the web and forums to no avail, I thought I would >>>> 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 version >>>> of the ports' nvidia driver (nvidia-driver-195.36.15). I found that I >>>> cannot use either font.Text or text.label without causing segfaults. Here >>>> 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. >> >> We 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 > -- 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 _______________________________________________ freebsd-python@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-python To unsubscribe, send any mail to "freebsd-python-unsubscr...@freebsd.org"