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


Groups > comp.lang.python > #72579

Missing stack frames?

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 <Nikolaus@rath.org>
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 <Nikolaus@rath.org>
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 <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.10670.1401849019.18130.python-list@python.org> (permalink)
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

Show key headers only | View raw


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
=============================== test session starts ===============================
platform linux -- Python 3.3.5 -- py-1.4.20 -- pytest-2.5.2 -- /usr/bin/python3
collected 33 items 

tests/t1_backends.py:563: test_extra_data[mock_s3c-plain] SKIPPED
tests/t1_backends.py:563: test_extra_data[mock_s3c-zlib] PASSED

======================== 31 tests deselected by '-kextra' =========================
=============== 1 passed, 1 skipped, 31 deselected in 0.23 seconds ================
> /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 code? At
the very least, I would have expected some frames from threading.py...?


Best,
-Nikolaus
-- 
GPG encrypted emails preferred. Key id: 0xD113FCAC3C4E599F
Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F

             »Time flies like an arrow, fruit flies like a Banana.«

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Missing stack frames? Nikolaus Rath <Nikolaus@rath.org> - 2014-06-03 19:30 -0700

csiph-web