Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3.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.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:not': 0.03; 'debug': 0.07; 'debugging': 0.07; 'extent': 0.07; 'gpl': 0.07; 'permitted': 0.07; 'see:': 0.07; 'subject:file': 0.07; 'executable': 0.09; 'url:github': 0.09; 'url:software': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'bug': 0.12; '<>.': 0.14; '<>.': 0.16; '[new': 0.16; 'dump': 0.16; 'format:': 0.16; 'guys,': 0.16; 'help?': 0.16; 'subject:File': 0.16; 'subject:core': 0.16; 'subject:format': 0.16; 'url:gnu': 0.16; 'url:licenses': 0.16; 'url:sphinx': 0.16; 'warranty,': 0.16; 'subject:python': 0.16; 'wrote:': 0.18; 'foundation,': 0.20; 'later': 0.20; 'seems': 0.21; 'memory': 0.22; 'email addr:gmail.com>': 0.22; 'manual': 0.22; 'cc:addr:python.org': 0.22; 'error': 0.23; 'directory.': 0.24; 'mon,': 0.24; 'cc:2**0': 0.24; 'law.': 0.26; 'recognized': 0.26; 'skip:" 30': 0.26; 'subject: : ': 0.26; 'skip:" 20': 0.27; 'header:In-Reply-To:1': 0.27; 'url:bugs': 0.29; '(c)': 0.29; 'am,': 0.29; 'reporting': 0.29; 'related': 0.29; 'message-id:@mail.gmail.com': 0.30; 'url:mailman': 0.30; 'url:wiki': 0.31; 'file': 0.32; 'url:python': 0.33; 'skip:& 30': 0.33; 'at:': 0.34; 'core': 0.34; 'received:google.com': 0.35; 'there': 0.35; 'version': 0.36; '14,': 0.36; 'machine.': 0.36; 'url:downloads': 0.36; 'url:listinfo': 0.36; 'url:org': 0.36; 'skip:& 10': 0.38; 'configured': 0.38; 'skip:[ 10': 0.38; 'issue': 0.38; 'does': 0.39; 'help,': 0.39; 'url:mail': 0.40; 'commands': 0.60; 'skip:\xc2 10': 0.60; 'then,': 0.60; 'free': 0.61; 'details.': 0.61; 'such': 0.63; 'today': 0.64; '8bit%:10': 0.64; 'license': 0.66; 'here': 0.66; 'production': 0.68; 'url:be': 0.68; 'online': 0.71; 'leak.': 0.84; 'url:forums': 0.84; 'to:none': 0.92 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=XcjqYb5V1vP2EWpbLDPYh7SOzkdD1UptgJvMJieCxfc=; b=Z/E+kGH76gIS77NTA+Y09J4nzM3q+MA13X10P9YSxNnlRMkXT+dXEyqEA374U+JznC FtGnbyviCQaNEgKE2nNvSMEg+7tpw8Sd5csZqoQVy2i+Ei5y2F4qnh8CyYwdJ+AkHDGY vO+R0FGiDjHzh4/nM6DEXc4mpkPVlJ++zzskUSxAv6Bhg0aFupdWxckT2W69AKYNWJJd acgTHWiDoABhUae9Jur7IxJn7acham6E3EjHtgd1FjZB8BPn4o0BBFIywWVAaSxnR6sT lvA2uow+ayaV78y7fpXtMys0m8mQJJtbK6Et+QQb5M+YOGR92nJDcm5FfhHb+PPYzILk gyvA== MIME-Version: 1.0 X-Received: by 10.236.116.99 with SMTP id f63mr58880008yhh.10.1397504278870; Mon, 14 Apr 2014 12:37:58 -0700 (PDT) In-Reply-To: References: Date: Mon, 14 Apr 2014 12:37:58 -0700 Subject: Re: gdb python core dump file : not in executable format: File format not From: "david.garvey@gmail.com" Cc: "comp.lang.python" Content-Type: multipart/alternative; boundary=20cf3036387d1d409b04f705d2da 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: 147 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1397504281 news.xs4all.nl 2830 [2001:888:2000:d::a6]:52721 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:70231 --20cf3036387d1d409b04f705d2da Content-Type: text/plain; charset=UTF-8 Does this help? http://plasmodic.github.io/ecto/ecto/usage/external/debugging.html http://gnuradio.org/redmine/projects/gnuradio/wiki/TutorialsDebugging http://downloads.conceptive.be/downloads/camelot/doc/sphinx/build/advanced/debug.html http://forums.gentoo.org/viewtopic-p-7123814.html On Mon, Apr 14, 2014 at 1:19 AM, Wesley wrote: > Hi guys, > Today I am debugging an issue related to memory leak. > I use gdb 7.7 and python 2.7.6 to generate one core dump file from > production env. > > And then, just use gdb to debug the coredump upon the same machine. > Got error that seems not support debug core file using pyton? > > Here is snippet: > [root@localhost server]# gdb --core memleak.core > GNU gdb (GDB) 7.7 > Copyright (C) 2014 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later < > http://gnu.org/licenses/gpl.html> > This is free software: you are free to change and redistribute it. > There is NO WARRANTY, to the extent permitted by law. Type "show copying" > and "show warranty" for details. > This GDB was configured as "x86_64-unknown-linux-gnu". > Type "show configuration" for configuration details. > For bug reporting instructions, please see: > . > Find the GDB manual and other documentation resources online at: > . > For help, type "help". > Type "apropos word" to search for commands related to "word". > [New LWP 25738] > [New LWP 25739] > [New LWP 25740] > [New LWP 25745] > [New LWP 25746] > [New LWP 25747] > [New LWP 25635] > Core was generated by `python'. > #0 0x00000030016e15e3 in ?? () > (gdb) file /root/server/deviceserver.py > "/root/server/deviceserver.py": not in executable format: File format not > recognized > (gdb) file /root/server/deviceserver > /root/server/deviceserver: No such file or directory. > (gdb) file /root/server/deviceserver.py > "/root/server/deviceserver.py": not in executable format: File format not > recognized > (gdb) > -- > https://mail.python.org/mailman/listinfo/python-list > -- David Garvey --20cf3036387d1d409b04f705d2da Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Does this help?








On Mon= , Apr 14, 2014 at 1:19 AM, Wesley <nispray@gmail.com> wrote:=
Hi guys,
=C2=A0 =C2=A0Today I am debugging an issue related to memory leak.
I use gdb 7.7 and python 2.7.6 to generate one core dump file from producti= on env.

And then, just use gdb to debug the coredump upon the same machine.
Got error that seems not support debug core file using pyton?

Here is snippet:
[root@localhost server]# gdb --core =C2=A0memleak.core
GNU gdb (GDB) 7.7
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>=
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. =C2=A0Type "show= copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<htt= p://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word&= quot;.
[New LWP 25738]
[New LWP 25739]
[New LWP 25740]
[New LWP 25745]
[New LWP 25746]
[New LWP 25747]
[New LWP 25635]
Core was generated by `python'.
#0 =C2=A00x00000030016e15e3 in ?? ()
(gdb) file /root/server/deviceserver.py
"/root/server/deviceserver.py": not in executable format: File fo= rmat not recognized
(gdb) file /root/server/deviceserver
/root/server/deviceserver: No such file or directory.
(gdb) file /root/server/deviceserver.py
"/root/server/deviceserver.py": not in executable format: File fo= rmat not recognized
(gdb)
--
https://mail.python.org/mailman/listinfo/python-list



-- David Garvey
--20cf3036387d1d409b04f705d2da--