From owner-freebsd-bugs@FreeBSD.ORG Wed Apr 9 12:30:03 2008 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E77AF1065670 for ; Wed, 9 Apr 2008 12:30:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C50508FC1B for ; Wed, 9 Apr 2008 12:30:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m39CU3OH034590 for ; Wed, 9 Apr 2008 12:30:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m39CU3AI034587; Wed, 9 Apr 2008 12:30:03 GMT (envelope-from gnats) Resent-Date: Wed, 9 Apr 2008 12:30:03 GMT Resent-Message-Id: <200804091230.m39CU3AI034587@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Taavi Repän Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 34AB0106564A for ; Wed, 9 Apr 2008 12:22:19 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 23BB38FC13 for ; Wed, 9 Apr 2008 12:22:19 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m39CM1Bk055067 for ; Wed, 9 Apr 2008 12:22:01 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.2/8.14.1/Submit) id m39CM1H3055066; Wed, 9 Apr 2008 12:22:01 GMT (envelope-from nobody) Message-Id: <200804091222.m39CM1H3055066@www.freebsd.org> Date: Wed, 9 Apr 2008 12:22:01 GMT From: Taavi Repän To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/122596: Python hangs when importing pygtk X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Apr 2008 12:30:04 -0000 >Number: 122596 >Category: misc >Synopsis: Python hangs when importing pygtk >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Apr 09 12:30:03 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Taavi Repän >Release: 7.0 >Organization: >Environment: FreeBSD tservu.pri.ee 7.0-RELEASE FreeBSD 7.0-RELEASE #5: Fri Apr 4 21:49:44 EEST 2008 root@tservu.pri.ee:/usr/obj/usr/src/sys/TSERVU i386 >Description: Firstly I filed the bug in Python buglist (http://bugs.python.org/issue2602), but they recommended reporting it here. Python hangs with ucond state, GDB info: (gdb) info threads * 1 Thread 0x28301f00 (LWP 100097) 0x281e932b in _umtx_op () from /lib/libc.so.7 (gdb) bt #0 0x281e932b in _umtx_op () from /lib/libc.so.7 #1 0x281a0b18 in pthread_cleanup_push () from /lib/libthr.so.3 #2 0x2819f31e in pthread_cond_init () from /lib/libthr.so.3 #3 0x080eeda3 in PyThread_acquire_lock (lock=0x0, waitflag=1) at thread_pthread.h:452 #4 0x080da9cc in lock_import () at Python/import.c:272 #5 0x080de05c in PyImport_ImportModuleLevel (name=0x284393f4 "gobject", globals=0x2842eacc, locals=0x2842eacc, fromlist=0x2831fc6c, level=-1) at Python/import.c:2071 #6 0x080c0714 in builtin___import__ (self=0x0, args=0x284384dc, kwds=0x0) at Python/bltinmodule.c:47 #7 0x0805d2da in PyObject_CallFunctionObjArgs (callable=0x28319e6c) at Objects/abstract.c:1861 #8 0x080de1be in PyImport_Import (module_name=0x284393e0) at Python/import.c:2576 #9 0x080de377 in PyImport_ImportModule (name=0x29799ed3 "gobject") at Python/import.c:1972 #10 0x2964e275 in init_gtk () from /usr/local/lib/python2.5/site-packages/gtk-2.0/gtk/_gtk.so #11 0x080df534 in _PyImport_LoadDynamicModule (name=0xbfbfce27 "gtk._gtk", pathname=0xbfbfc9b3 "/usr/local/lib/python2.5/site-packages/gtk-2.0/gtk/_gtk.so", fp=0x2829ee78) at ./Python/importdl.c:53 #12 0x080dd314 in load_module (name=0xbfbfce27 "gtk._gtk", fp=Variable "fp" is not available. ) at Python/import.c:1758 #13 0x080dd531 in import_submodule (mod=0x28311524, subname=0x28433b34 "_gtk", fullname=0xbfbfce27 "gtk._gtk") at Python/import.c:2400 #14 0x080dd7eb in ensure_fromlist (mod=0x28311524, fromlist=0x28433b8c, buf=0xbfbfce27 "gtk._gtk", buflen=3, recursive=0) at Python/import.c:2311 #15 0x080dddfc in import_module_level (name=0x0, globals=Variable "globals" is not available. ) at Python/import.c:2038 #16 0x080de077 in PyImport_ImportModuleLevel (name=0x28433794 "gtk", globals=0x2842eacc, locals=0x2842eacc, fromlist=0x28433b8c, level=-1) at Python/import.c:2072 #17 0x080c0714 in builtin___import__ (self=0x0, args=0x28432edc, kwds=0x0) at Python/bltinmodule.c:47 #18 0x0805a867 in PyObject_Call (func=0x28319e6c, arg=0x28432edc, kw=0x0) at Objects/abstract.c:1861 #19 0x080c0c8c in PyEval_CallObjectWithKeywords (func=0x28319e6c, arg=0x28432edc, kw=0x0) at Python/ceval.c:3442 #20 0x080c3112 in PyEval_EvalFrameEx (f=0x283ab1ec, throwflag=0) at Python/ceval.c:2067 #21 0x080c7f07 in PyEval_EvalCodeEx (co=0x28429068, globals=0x2842eacc, locals=0x2842eacc, args=0x0, argcount=0, kws=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:2836 #22 0x080c8057 in PyEval_EvalCode (co=0x28429068, globals=0x2842eacc, locals=0x2842eacc) at Python/ceval.c:494 #23 0x080dc7bc in PyImport_ExecCodeModuleEx (name=0xbfbfe2f7 "gtk", co=0x28429068, pathname=0xbfbfd5fb "/usr/local/lib/python2.5/site-packages/gtk-2.0/gtk/__init__.pyc") at Python/import.c:675 #24 0x080dcff4 in load_source_module (name=0xbfbfe2f7 "gtk", pathname=0xbfbfd5fb "/usr/local/lib/python2.5/site-packages/gtk-2.0/gtk/__init__.pyc", fp=0x2829ee20) at Python/import.c:959 #25 0x080de520 in load_package (name=0xbfbfe2f7 "gtk", pathname=Variable "pathname" is not available. ) at Python/import.c:1015 ---Type to continue, or q to quit--- #26 0x080dd531 in import_submodule (mod=0x8143658, subname=0xbfbfe2f7 "gtk", fullname=0xbfbfe2f7 "gtk") at Python/import.c:2400 #27 0x080dd9d7 in load_next (mod=0x8143658, altmod=0x8143658, p_name=Variable "p_name" is not available. ) at Python/import.c:2220 #28 0x080ddbfa in import_module_level (name=0x0, globals=0x28330374, locals=Variable "locals" is not available. ) at Python/import.c:2001 #29 0x080de077 in PyImport_ImportModuleLevel (name=0x28433794 "gtk", globals=0x2832aacc, locals=0x2832aacc, fromlist=0x8143658, level=-1) at Python/import.c:2072 #30 0x080c0714 in builtin___import__ (self=0x0, args=0x2841ef7c, kwds=0x0) at Python/bltinmodule.c:47 #31 0x0805a867 in PyObject_Call (func=0x28319e6c, arg=0x2841ef7c, kw=0x0) at Objects/abstract.c:1861 #32 0x080c0c8c in PyEval_CallObjectWithKeywords (func=0x28319e6c, arg=0x2841ef7c, kw=0x0) at Python/ceval.c:3442 #33 0x080c3112 in PyEval_EvalFrameEx (f=0x2836fbcc, throwflag=0) at Python/ceval.c:2067 #34 0x080c7f07 in PyEval_EvalCodeEx (co=0x28419f98, globals=0x2832aacc, locals=0x2832aacc, args=0x0, argcount=0, kws=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:2836 #35 0x080c8057 in PyEval_EvalCode (co=0x28419f98, globals=0x2832aacc, locals=0x2832aacc) at Python/ceval.c:494 #36 0x080e7cf0 in PyRun_InteractiveOneFlags (fp=0x2828b400, filename=0x811ff68 "", flags=0xbfbfebe8) at Python/pythonrun.c:1273 #37 0x080e7f16 in PyRun_InteractiveLoopFlags (fp=0x2828b400, filename=0x811ff68 "", flags=0xbfbfebe8) at Python/pythonrun.c:723 #38 0x080e8076 in PyRun_AnyFileExFlags (fp=0x2828b400, filename=0x811ff68 "", closeit=0, flags=0xbfbfebe8) at Python/pythonrun.c:692 #39 0x08056ee1 in Py_Main (argc=0, argv=0xbfbfec78) at Modules/main.c:532 #40 0x080563b5 in main (argc=Error accessing memory address 0x0: Bad address. ) at ./Modules/python.c:23 >How-To-Repeat: Run this in Python: import pygtk import gtk >Fix: >Release-Note: >Audit-Trail: >Unformatted: