Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.albasani.net!news.stack.nl!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.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'preferred.': 0.05; 'caller': 0.09; 'skip:/ 10': 0.09; 'python': 0.11; 'thread': 0.14; '(pdb)': 0.16; 'called,': 0.16; 'code?': 0.16; 'conditional': 0.16; 'fingerprint:': 0.16; 'fruit': 0.16; 'gpg': 0.16; 'skip:/ 60': 0.16; 'skip:/ 70': 0.16; 'skipped': 0.16; 'skip:= 10': 0.16; 'trying': 0.19; 'stack': 0.19; 'starts': 0.20; 'tests': 0.22; 'print': 0.22; 'id:': 0.23; 'header:User-Agent:1': 0.23; "i've": 0.25; 'this:': 0.26; 'function': 0.29; '(this': 0.29; 'related': 0.29; "skip:' 10": 0.31; 'skip:= 20': 0.31; 'trace': 0.31; 'figure': 0.32; 'linux': 0.33; 'test': 0.35; 'there': 0.35; 'subject:?': 0.36; 'seconds': 0.37; 'unit': 0.37; 'expected': 0.38; 'to:addr:python-list': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'called': 0.40; 'how': 0.40; 'skip:t 30': 0.61; 'back': 0.62; 'flies': 0.84; 'encrypted': 0.91 From: Nikolaus Rath To: python-list@python.org Subject: Missing stack frames? Mail-Copies-To: never Mail-Followup-To: python-list@python.org Date: Tue, 03 Jun 2014 19:30:16 -0700 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: 48 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1401849019 news.xs4all.nl 2944 [2001:888:2000:d::a6]:59777 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:72579 Hello, (This may or may not be related to my mail about a "corrupted stack trace"). I've instrumented one of my unit tests with a conditional 'pdb.set_trace' in some circumstances (specifically, when a function is called by a thread other than MainThread). However, when trying to print a back trace to figure out how this function got called, I get this: $ py.test-3 tests/t1_backends.py -k extra =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D test session starts =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D platform linux -- Python 3.3.5 -- py-1.4.20 -- pytest-2.5.2 -- /usr/bin/pyt= hon3 collected 33 items=20 tests/t1_backends.py:563: test_extra_data[mock_s3c-plain] SKIPPED tests/t1_backends.py:563: test_extra_data[mock_s3c-zlib] PASSED =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 31= tests deselected by '-kextra' =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 1 passed, 1 skipped, 31 desel= ected in 0.23 seconds =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > /home/nikratio/in-progress/s3ql/src/s3ql/backends/s3c.py(693)close() -> if not self.md5_checked: (Pdb) bt /home/nikratio/in-progress/s3ql/src/s3ql/backends/common.py(853)close() -> self.fh.close() > /home/nikratio/in-progress/s3ql/src/s3ql/backends/s3c.py(693)close() -> if not self.md5_checked: (Pdb) q What does this mean? Why is there no caller above the backends/common.py co= de? At the very least, I would have expected some frames from threading.py...? Best, -Nikolaus --=20 GPG encrypted emails preferred. Key id: 0xD113FCAC3C4E599F Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F =C2=BBTime flies like an arrow, fruit flies like a Banana.=C2= =AB