Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #40263 > unrolled thread

"No symbol" error using pystack gdb macro

Started bydebby@josesmex.com
First post2013-03-01 08:07 -0800
Last post2013-03-02 08:08 +0100
Articles 2 — 2 participants

Back to article view | Back to comp.lang.python


Contents

  "No symbol" error using pystack gdb macro debby@josesmex.com - 2013-03-01 08:07 -0800
    Re: "No symbol" error using pystack gdb macro dieter <dieter@handshake.de> - 2013-03-02 08:08 +0100

#40263 — "No symbol" error using pystack gdb macro

Fromdebby@josesmex.com
Date2013-03-01 08:07 -0800
Subject"No symbol" error using pystack gdb macro
Message-ID<8a465112-c63f-43bd-901f-ab703097522b@googlegroups.com>
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?

[toc] | [next] | [standalone]


#40321

Fromdieter <dieter@handshake.de>
Date2013-03-02 08:08 +0100
Message-ID<mailman.2770.1362208128.2939.python-list@python.org>
In reply to#40263
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.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web