Bug#930038: gedit crash in very long lines after searching for words (failed to allocate X bytes)

Davide Prina davide.prina at gmail.com
Wed Jun 5 20:26:16 BST 2019

Package: gedit
Version: 3.30.2-2
Severity: normal

Dear Maintainer,

click on gedit after searching word in very long lines generate a gedit 

To reproduce the bug do the following steps:

$ mkdir /tmp/2
$ cd /tmp/2
$ for (( i=0; i<3000; i++)); do \
   echo -n "Questa è una riga di prova. " >> test.txt; done; echo -n " \
   cercami " >> test.txt; for (( i=0; i<3000; i++)); do \
   echo -n "Questa è una riga di prova. " >> test.txt; done

# Note I have used LANG=C to get messages in English language
$ LANG=C gedit test.txt &

Now press Ctrl-F (to search), insert the word: "cercami", search the 
word, and click with the mouse cursor near the selected word cercami

gedit crash with the following message:
gedit:10017): GLib-ERROR **: 21:09:07.421: ../../../glib/gmem.c:105: 
failed to allocate 18446744073709470614 bytes

[1]+  Rilevato trace/breakpoint LANG=C gedit test.txt


-- Package-specific info:
Active plugins:
   - 'filebrowser'
   -  'modelines'
   -  'time'
   -  'docinfo'
   -  'spell'

No plugin installed in $HOME.

Module versions:
   - glib                  2.58.3
   - gtk+
   - gtksourceview
   - pygobject
   - enchant
   - iso-codes             4.2

-- System Information:
Debian Release: 10.0
   APT prefers testing-debug
   APT policy: (500, 'testing-debug'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.37-dp-20190517 (SMP w/4 CPU cores; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE
Locale: LANG=it_IT.utf8, LC_CTYPE=it_IT.utf8 (charmap=UTF-8), 
LANGUAGE=it_IT.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages gedit depends on:
ii  gedit-common               3.30.2-2
ii  gir1.2-glib-2.0            1.58.3-2
ii  gir1.2-gtk-3.0             3.24.5-1
ii  gir1.2-gtksource-3.0       3.24.9-2
ii  gir1.2-pango-1.0           1.42.4-6
ii  gir1.2-peas-1.0            1.22.0-4
ii  gsettings-desktop-schemas  3.28.1-1
ii  iso-codes                  4.2-1
ii  libatk1.0-0                2.30.0-2
ii  libc6                      2.28-10
ii  libcairo-gobject2          1.16.0-4
ii  libcairo2                  1.16.0-4
ii  libenchant1c2a             1.6.0-11.1+b1
ii  libgdk-pixbuf2.0-0         2.38.1+dfsg-1
ii  libgirepository-1.0-1      1.58.3-2
ii  libglib2.0-0               2.58.3-1
ii  libgspell-1-1              1.6.1-2
ii  libgtk-3-0                 3.24.5-1
ii  libgtksourceview-3.0-1     3.24.9-2
ii  libpango-1.0-0             1.42.4-6
ii  libpangocairo-1.0-0        1.42.4-6
ii  libpeas-1.0-0              1.22.0-4
ii  libx11-6                   2:1.6.7-1
ii  libxml2                    2.9.4+dfsg1-7+b3
ii  python3                    3.7.3-1
ii  python3-gi                 3.30.4-1
ii  python3-gi-cairo           3.30.4-1
ii  python3.7                  3.7.3-2

Versions of packages gedit recommends:
ii  yelp    3.31.90-1
ii  zenity  3.30.0-2

Versions of packages gedit suggests:
ii  gedit-plugins  3.30.1-3

-- no debconf information

More information about the pkg-gnome-maintainers mailing list