Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!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.007 X-Spam-Evidence: '*H*': 0.99; '*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:dip0.t-ipconnect.de': 0.16; 'received:plane.gmane.org': 0.16; 'received:t-ipconnect.de': 0.16; 'scripts.': 0.16; 'simplest': 0.16; 'subject:python': 0.16; 'attach': 0.16; 'seems': 0.21; 'import': 0.22; '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; 'running': 0.33; 'minimal': 0.33; 'operations': 0.35; 'but': 0.35; 'charset:us-ascii': 0.36; '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; 'received:217': 0.63; 'here': 0.66; 'bare': 0.84; 'subject:read': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: dieter Subject: Re: gdb unable to read python frame information Date: Fri, 07 Mar 2014 08:10:20 +0100 References: <0b7f74c8-9c70-4950-b431-6c9bbb3f0058@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Gmane-NNTP-Posting-Host: pd9e09a15.dip0.t-ipconnect.de User-Agent: Gnus/5.1008 (Gnus v5.10.8) XEmacs/21.4.22 (linux) Cancel-Lock: sha1:u9EtgkIdR8k6vg5/Yq4oqo/fEyc= 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: 21 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1394176233 news.xs4all.nl 2970 [2001:888:2000:d::a6]:48757 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:67979 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.