[Python-apps-team] Bug#952871: itstool: Segmentation Fault when Merging French Translation

Francois Mazen francois at mzf.fr
Sun Mar 1 13:34:56 GMT 2020


Package: itstool
Version: 2.0.6-1
Severity: important


When merging the attached "fr.mo" file with itstool then it crashes with
Segmentation Fault.

Using other translation file like "de.mo" does not trigger crash.

To reproduce, use the attached files:
itstool -m fr.mo -o output.xml solfege.xml

GDB session:

gdb -ex r --args python3 /usr/bin/itstool -m fr.mo -o output.xml solfege.xml
GNU gdb (Debian 9.1-1) 9.1
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from python3...
Reading symbols from /usr/lib/debug/.build-
id/a2/ceb523e7453820704c27b704a85d72ff567d04.debug...
Starting program: /usr/bin/python3 /usr/bin/itstool -m fr.mo -o output.xml
solfege.xml
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0x00000000005cd73b in function_code_fastcall (globals=<optimized out>, nargs=2,
args=0x7ffff7474c50,
    co=0x7ffff77e4030) at ../Objects/frameobject.c:779
779     ../Objects/frameobject.c: Aucun fichier ou dossier de ce type.
(gdb) py-bt
Traceback (most recent call first):
  <built-in method xmlParseDocument of module object at remote 0x7ffff7575e30>
  File "/usr/lib/python3/dist-packages/libxml2.py", line 5108, in parseDocument
    ret = libxml2mod.xmlParseDocument(self._o)
  File "/usr/bin/itstool", line 1071, in get_translated
    ctxt.parseDocument()
  File "/usr/bin/itstool", line 980, in merge_translations
    newnode = self.get_translated(node, translations, strict=strict,
lang=language)
  File "/usr/bin/itstool", line 978, in merge_translations
    self.merge_translations(translations, language, node=child, strict=strict)
  File "/usr/bin/itstool", line 978, in merge_translations
    self.merge_translations(translations, language, node=child, strict=strict)
  File "/usr/bin/itstool", line 978, in merge_translations
    self.merge_translations(translations, language, node=child, strict=strict)
  File "/usr/bin/itstool", line 1614, in <module>
    doc.merge_translations(translations, opts.lang, strict=opts.strict)


Thanks,
François




-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.4.0-4-amd64 (SMP w/16 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages itstool depends on:
ii  python3          3.7.5-3
ii  python3-libxml2  2.9.10+dfsg-4

itstool recommends no packages.

itstool suggests no packages.

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: itstool_crash.zip
Type: application/zip
Size: 49856 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/python-apps-team/attachments/20200301/3a02f825/attachment-0001.zip>


More information about the Python-apps-team mailing list