Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!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.008 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'debugging': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.11; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'scripts.': 0.16; 'simplest': 0.16; 'subject:python': 0.16; 'attach': 0.16; 'wrote:': 0.18; 'seems': 0.21; 'import': 0.22; 'install': 0.23; 'header:User-Agent:1': 0.23; 'header:X -Complaints-To:1': 0.27; 'installed': 0.27; '(which': 0.31; 'usually': 0.31; 'writes:': 0.31; 'yourself.': 0.31; 'probably': 0.32; 'running': 0.33; 'minimal': 0.33; 'operations': 0.35; 'but': 0.35; 'possible': 0.36; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'users': 0.40; 'read': 0.60; 'here': 0.66; 'bare': 0.84; 'received:139': 0.84; 'subject:read': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Neal Becker Subject: Re: gdb unable to read python frame information Date: Fri, 07 Mar 2014 08:23:20 -0500 References: <0b7f74c8-9c70-4950-b431-6c9bbb3f0058@googlegroups.com> <87mwh2bi1v.fsf@handshake.de> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Gmane-NNTP-Posting-Host: exa2-in-fw-01-epn.hns.com User-Agent: KNode/4.12.2 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: 26 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1394198618 news.xs4all.nl 2881 [2001:888:2000:d::a6]:45994 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:67996 dieter wrote: > Wesley writes: > >> I wanna use gdb to attach my running python scripts. >> Successfully import libpython in gdb, but seems all py operations failed to >> read python information. >> >> Here is the snippet: >> (gdb) python >>>import libpython >>>end >> (gdb) py-bt >> #3 (unable to read python frame information) >> #5 (unable to read python frame information) > > The simplest possible interpretation would be that your > Python lacks debugging symbols. That often happens with > system installed Python installations (which usually are stripped > to the bare minimal symbol set - as "normal" users do not need > debugging). > > Try with a Python that you have generated yourself. You probably need to install the python-debuginfo package