Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder7.xlned.com!newsfeed.xs4all.nl!newsfeed3a.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.026 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'preferred.': 0.05; 'context': 0.07; 'debugging': 0.07; 'skip:" 60': 0.07; 'thread': 0.14; 'conditional': 0.16; 'fingerprint:': 0.16; 'fruit': 0.16; 'gpg': 0.16; 'skip:= 10': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'putting': 0.22; 'tests': 0.22; 'id:': 0.23; 'header:User- Agent:1': 0.23; "i've": 0.25; 'least': 0.26; 'header:In-Reply- To:1': 0.27; 'function': 0.29; 'chris': 0.29; "i'm": 0.30; "skip:' 10": 0.31; 'occurs': 0.31; 'skip:= 20': 0.31; 'writes:': 0.31; 'file': 0.32; 'call.': 0.33; 'problem': 0.35; 'something': 0.35; 'skip:" 50': 0.36; 'subject:?': 0.36; 'should': 0.36; 'seconds': 0.37; 'unit': 0.37; 'wrong': 0.37; 'two': 0.37; 'being': 0.38; 'to:addr:python-list': 0.38; 'issue': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'called': 0.40; 'skip:t 30': 0.61; 'high': 0.63; 'close': 0.67; 'flies': 0.84; 'together,': 0.84; 'encrypted': 0.91; 'ominous': 0.91; 'obtained': 0.96 From: Nikolaus Rath To: python-list@python.org Subject: Re: Missing stack frames? References: <87fvjlv22v.fsf@vostro.rath.org> Mail-Copies-To: never Mail-Followup-To: python-list@python.org Date: Wed, 04 Jun 2014 21:10:45 -0700 In-Reply-To: (Chris Angelico's message of "Wed, 4 Jun 2014 12:35:36 +1000") 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: 55 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1401941449 news.xs4all.nl 2829 [2001:888:2000:d::a6]:45772 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:72677 Chris Angelico writes: > On Wed, Jun 4, 2014 at 12:30 PM, Nikolaus Rath wrote: >> 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). > > I think the likelihood of this being an issue with interactive > debugging and threads is sufficiently high that you should avoid > putting the two together, at least until you can verify that the same > problem occurs without that combination. Here's stacktrace as obtained by traceback.print_stack(): tests/t1_backends.py:563: test_extra_data[mock_s3c-zlib] PASSED tests/t1_backends.py:563: test_extra_data[mock_s3c-bzip2] 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 87= 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 5 passed, 1 skipped, 87 desel= ected in 0.65 seconds =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D File "/home/nikratio/in-progress/s3ql/src/s3ql/backends/common.py", line = 853, in close self.fh.close() File "/home/nikratio/in-progress/s3ql/src/s3ql/backends/s3c.py", line 691= , in close traceback.print_stack(file=3Dsys.stdout) something is wrong File "/home/nikratio/in-progress/s3ql/src/s3ql/backends/common.py", line = 853, in close self.fh.close() File "/home/nikratio/in-progress/s3ql/src/s3ql/backends/s3c.py", line 691= , in close traceback.print_stack(file=3Dsys.stdout) something is wrong File "/home/nikratio/in-progress/s3ql/src/s3ql/backends/common.py", line = 1050, in close self.fh.close() File "/home/nikratio/in-progress/s3ql/src/s3ql/backends/s3c.py", line 691= , in close traceback.print_stack(file=3Dsys.stdout) Still no context before the ominous close() call. I'm very confused. 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