[issue46070] _PyImport_FixupExtensionObject() regression causing a crash in subintepreters

2022-01-01 Thread Joel Uckelman
Joel Uckelman added the comment: I have this happening on Linux with a Flask app after upgrading from Fedora 34 to 35. libpython keeps crashing httpd. I see this from journalctl: #0 0x7fd899baa801 PyObject_Malloc (libpython3.10.so.1.0 + 0xf7801) #1 0x7fd899baab47

[issue29412] IndexError thrown on email.message.Message.get

2017-02-07 Thread Joel Uckelman
Joel Uckelman added the comment: Here's a patch, complete with tests. If the value is all CFWS, then get_cfws(value)[1], which is what's left after the CFWS is extracted, is the empty string---which is why value[0] throws in this case. -- keywords: +patch Added file: http

[issue29412] IndexError thrown on email.message.Message.get

2017-02-07 Thread Joel Uckelman
Joel Uckelman added the comment: I'm working on a patch now. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29412> ___ ___ Pyth

[issue29412] IndexError thrown on email.message.Message.get

2017-02-01 Thread Joel Uckelman
Changes by Joel Uckelman <uckel...@nomic.net>: -- title: IndexError thrown on email.message.EmailMessage.get -> IndexError thrown on email.message.Message.get ___ Python tracker <rep...@bugs.python.org> <http://bugs.pyt

[issue29412] IndexError thrown on email.message.EmailMessage.get

2017-02-01 Thread Joel Uckelman
Joel Uckelman added the comment: No dice. I get the same exception with issue27931_v2.patch. I briefly looked at the other two, and don't expect those will help, either. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.p

[issue29412] IndexError thrown on email.message.EmailMessage.get

2017-02-01 Thread Joel Uckelman
Changes by Joel Uckelman <uckel...@nomic.net>: -- title: IndexError thrown on email.message.M -> IndexError thrown on email.message.EmailMessage.get ___ Python tracker <rep...@bugs.python.org> <http://bugs.pyt

[issue29412] IndexError thrown on email.message.M

2017-02-01 Thread Joel Uckelman
New submission from Joel Uckelman: Test case: import email import email.policy txt = '''From: juckel...@strozfriedberg.co.uk To: (Recipient list suppressed) Date: Thu, 22 Aug 2013 04:13:02 + Subject: ADSF-1082 Hey! ''' msg = email.message_from_string(txt) msg.get