
This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.
Created on2014-04-02 14:10 byMarek.Kowalski, last changed2022-04-11 14:58 byadmin. This issue is nowclosed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| segv.py | Marek.Kowalski,2014-04-02 14:10 | Minial script causing segfault | ||
| Messages (10) | |||
|---|---|---|---|
| msg215384 -(view) | Author: Marek Kowalski (Marek.Kowalski) | Date: 2014-04-02 14:10 | |
I'm attaching a minimal script to reproduce. I tested only with 3.2 and 2.7 versions. Its possible that it has been fixed since 3.2. | |||
| msg215386 -(view) | Author: STINNER Victor (vstinner)*![]() | Date: 2014-04-02 14:44 | |
Python 3.2 is not getting bugfixes anymore, only 3.4 and 3.5 (and 2.7). | |||
| msg215389 -(view) | Author: Roundup Robot (python-dev)![]() | Date: 2014-04-02 16:17 | |
New changeset140c5da3dc82 by Benjamin Peterson in branch '3.4':bail in unicode error's __str__ methods if the objects are not properly initialized (closes#21134)http://hg.python.org/cpython/rev/140c5da3dc82New changesetafa7fb2cbe3b by Benjamin Peterson in branch '2.7':bail in unicode error's __str__ methods if the objects are not properly initialized (closes#21134)http://hg.python.org/cpython/rev/afa7fb2cbe3bNew changeset0aeaea247d7d by Benjamin Peterson in branch 'default':merge 3.4 (#21134)http://hg.python.org/cpython/rev/0aeaea247d7d | |||
| msg215390 -(view) | Author: STINNER Victor (vstinner)*![]() | Date: 2014-04-02 17:11 | |
Benjamin: I don't like your change. You silently ignore the error. I would prefer to raise an exception on str(exc) if the Unicode exception object was not properly initialized. | |||
| msg215391 -(view) | Author: Benjamin Peterson (benjamin.peterson)*![]() | Date: 2014-04-02 17:39 | |
I don't care as long as it doesn't segfault. | |||
| msg254675 -(view) | Author: Serhiy Storchaka (serhiy.storchaka)*![]() | Date: 2015-11-14 23:59 | |
Do you have a patch Victor? | |||
| msg254695 -(view) | Author: STINNER Victor (vstinner)*![]() | Date: 2015-11-15 20:56 | |
> Do you have a patch Victor?Nope. | |||
| msg269421 -(view) | Author: Serhiy Storchaka (serhiy.storchaka)*![]() | Date: 2016-06-28 07:29 | |
An empty string is the result of str() on an instance created with __new__ for all standard exceptions except SyntaxError (str() returnns 'None' for the latter, and this looks as a bug). Since there was no complains on this issue, I think it can be closed. | |||
| msg269424 -(view) | Author: STINNER Victor (vstinner)*![]() | Date: 2016-06-28 07:59 | |
> Since there was no complains on this issue, I think it can be closed.I have a complain: we should not ignore bugs. IMO an exception must be raised. | |||
| msg269426 -(view) | Author: Serhiy Storchaka (serhiy.storchaka)*![]() | Date: 2016-06-28 08:32 | |
What is the bug here (except fixed segfault)? | |||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:58:01 | admin | set | github: 65333 |
| 2016-12-11 07:50:44 | serhiy.storchaka | set | status: pending -> closed resolution: fixed |
| 2016-11-28 23:31:48 | serhiy.storchaka | set | status: open -> pending |
| 2016-06-28 08:32:30 | serhiy.storchaka | set | messages: +msg269426 |
| 2016-06-28 07:59:24 | vstinner | set | status: pending -> open messages: +msg269424 |
| 2016-06-28 07:29:54 | serhiy.storchaka | set | status: open -> pending messages: +msg269421 |
| 2015-11-15 20:56:10 | vstinner | set | messages: +msg254695 |
| 2015-11-14 23:59:35 | serhiy.storchaka | set | nosy: +serhiy.storchaka messages: +msg254675 |
| 2014-04-02 17:39:26 | benjamin.peterson | set | nosy: +benjamin.peterson messages: +msg215391 |
| 2014-04-02 17:11:36 | vstinner | set | status: closed -> open resolution: fixed -> (no value) messages: +msg215390 |
| 2014-04-02 16:17:07 | python-dev | set | status: open -> closed nosy: +python-dev messages: +msg215389 resolution: fixed stage: resolved |
| 2014-04-02 14:44:38 | vstinner | set | messages: +msg215386 versions: + Python 3.4, Python 3.5, - Python 3.2 |
| 2014-04-02 14:10:37 | Marek.Kowalski | create | |