[New-bugs-announce] [issue43599] Setting long domain of locale.dgettext() crashes Python interpreter

Xinmeng Xia report at bugs.python.org
Mon Mar 22 21:54:58 EDT 2021


New submission from Xinmeng Xia <xiaxm at smail.nju.edu.cn>:

Setting the first argument of locale.dgettext() long string, Python interpreter crashes. 

======================================================
Python 3.10.0a6 (default, Mar 19 2021, 11:45:56) [GCC 7.5.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import locale;locale.dgettext('abs'*10000000,'')
Segmentation fault (core dumped)
======================================================

System: Ubuntu 16.04

BTW, the api of module locale seems to be inconsistent between Ubuntu and Mac OS.  E.g.  there is no dgettext() for Python on Mac OS.

----------
components: Library (Lib)
messages: 389363
nosy: xxm
priority: normal
severity: normal
status: open
title: Setting long domain of locale.dgettext() crashes Python interpreter
type: crash
versions: Python 3.10

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43599>
_______________________________________


More information about the New-bugs-announce mailing list