Path: csiph.com!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python,': 0.02; 'debugging': 0.05; 'python': 0.09; 'macros': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:using': 0.09; 'symbols': 0.09; 'subject:error': 0.11; 'suggest': 0.11; 'far)': 0.16; 'macro': 0.16; 'received:80.91.229.3': 0.16; 'received:dip0.t-ipconnect.de': 0.16; 'received:plane.gmane.org': 0.16; 'received:t-ipconnect.de': 0.16; 'url:svn': 0.16; 'versions': 0.20; 'suggested': 0.20; 'trying': 0.21; 'not,': 0.21; 'context.': 0.22; 'tells': 0.22; 'installation': 0.23; 'installed': 0.23; 'tried': 0.25; 'header :User-Agent:1': 0.26; 'i.e.': 0.27; 'header:X-Complaints-To:1': 0.28; 'run': 0.28; 'cpu': 0.29; 'writes:': 0.29; "i'm": 0.29; 'install': 0.29; 'attach': 0.30; 'url:python': 0.32; 'running': 0.32; 'loading': 0.33; 'symbol': 0.33; 'to:addr:python-list': 0.33; 'version': 0.34; 'updated': 0.34; 'received:org': 0.36; 'url:org': 0.36; 'subject:" ': 0.36; 'should': 0.36; 'charset:us- ascii': 0.36; 'from:': 0.38; 'to:addr:python.org': 0.39; 'skip:" 10': 0.40; 'header:Received:5': 0.40; 'your': 0.60; 'here:': 0.62; 'relatively': 0.62; 'information': 0.63; 'received:217': 0.68; 'lack': 0.71 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: dieter Subject: Re: "No symbol" error using pystack gdb macro Date: Sat, 02 Mar 2013 08:08:31 +0100 References: <8a465112-c63f-43bd-901f-ab703097522b@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Gmane-NNTP-Posting-Host: pd9e0833d.dip0.t-ipconnect.de User-Agent: Gnus/5.1008 (Gnus v5.10.8) XEmacs/21.4.22 (linux) Cancel-Lock: sha1:EN66G/O4o/RPSl0wS6OeMoDZcBk= X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 32 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1362208128 news.xs4all.nl 6970 [2001:888:2000:d::a6]:54099 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:40321 debby@josesmex.com writes: > I'm relatively new to Python, running Python 3.3 on FreeBSD > > I have a process which has started to spike CPU usage. I'm trying to find out what it's doing. > > I tried the "pystack" macro suggested here: > > http://stackoverflow.com/questions/132058/showing-the-stack-trace-from-a-running-python-application/147114#147114 > > I got the gdbinit macro from: > > http://svn.python.org/projects/python/trunk/Misc/gdbinit > > When I attach gdb, it tells me it is loading symbols from python3.3m > > However when I run pystack I get: > > No symbol "PyStringObject" in current context. > > Do I need an updated version of the gdb macro for Python3.3? Many system installed Python versions (all, I have seen so far) are "stripped", i.e. they lack debugging information. Such information is necessary in order to use the gdb macros effectively. I suggest you install and compile your Python yourself. Likely, the generated Python will have debugging symbols without (manual) intervention. If not, the installation instructions should tell you how to get a Python with debugging symbols.