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


Groups > linux.debian.bugs.rc > #397811 > unrolled thread

Bug#1101839: #1101839 nxtomomill test crash in tqdm destructor

Started by"Rebecca N. Palmer" <rebecca_palmer@zoho.com>
First post2025-09-12 20:40 +0200
Last post2025-09-12 20:40 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.debian.bugs.rc

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Bug#1101839: #1101839 nxtomomill test crash in tqdm destructor "Rebecca N. Palmer" <rebecca_palmer@zoho.com> - 2025-09-12 20:40 +0200
    Processed: Re: #1101839 nxtomomill test crash in tqdm destructor "Debian Bug Tracking System" <owner@bugs.debian.org> - 2025-09-12 20:40 +0200

#397811 — Bug#1101839: #1101839 nxtomomill test crash in tqdm destructor

From"Rebecca N. Palmer" <rebecca_palmer@zoho.com>
Date2025-09-12 20:40 +0200
SubjectBug#1101839: #1101839 nxtomomill test crash in tqdm destructor
Message-ID<LugQF-eP7F-1@gated-at.bofh.it>
Control: reassign -1 python3-nxtomomill,python3-tqdm
Control: tags -1 patch
Control: severity -1 important
(Lowering severity as nxtomomill's tests have been disabled.)

The difference might be what version of Python you're using: a comment 
in the tqdm upstream bug notes that this happens in Python 3.13 but not 
Python 3.12.  This might also be why nxtomomill upstream don't seem to 
have noticed, as they run their CI in up to Python 3.12.

They also note that it happens during interpreter shutdown, when 
datetime is garbage-collected before tqdm runs close().  I'm not sure if 
that's supposed to be possible ( https://peps.python.org/pep-0442/ ).

This suggests that one possible solution would be for close() to check 
for this condition and then not try to display the bar (similar to how 
it already doesn't if the output stream has been closed: 
https://sources.debian.org/src/tqdm/4.67.1-5/tqdm/std.py#L1289 ). 
However, the obvious ways to do so risk either false positives ( 
https://docs.python.org/3/library/sys.html#sys.is_finalizing will also 
be True when the application is exiting but display() would still work) 
or false negatives (if datetime is None: will only check datetime, which 
might not be the only missing module that can trigger this kind of 
crash), so I'm not sure if it's worth it.

Given that we do have an easy way to fix this particular instance in 
nxtomomill, I suggest doing that:
https://salsa.debian.org/python-team/packages/python-nxtomomill/-/merge_requests/1

[toc] | [next] | [standalone]


#397812 — Processed: Re: #1101839 nxtomomill test crash in tqdm destructor

From"Debian Bug Tracking System" <owner@bugs.debian.org>
Date2025-09-12 20:40 +0200
SubjectProcessed: Re: #1101839 nxtomomill test crash in tqdm destructor
Message-ID<LugQF-eP7F-3@gated-at.bofh.it>
In reply to#397811
Processing control commands:

> reassign -1 python3-nxtomomill,python3-tqdm
Bug #1101839 [python3-tqdm] python3-tqdm: segmentation fault in destructor method
Bug reassigned from package 'python3-tqdm' to 'python3-nxtomomill,python3-tqdm'.
No longer marked as found in versions tqdm/4.67.1-3.
Ignoring request to alter fixed versions of bug #1101839 to the same values previously set
> tags -1 patch
Bug #1101839 [python3-nxtomomill,python3-tqdm] python3-tqdm: segmentation fault in destructor method
Added tag(s) patch.
> severity -1 important
Bug #1101839 [python3-nxtomomill,python3-tqdm] python3-tqdm: segmentation fault in destructor method
Severity set to 'important' from 'serious'

-- 
1101839: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1101839
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.bugs.rc


csiph-web