gedit crashes when opening wget.info

Bug #463217 reported by Michael Terry
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
gedit (Ubuntu)
Fix Released
Medium
Ubuntu Desktop Bugs

Bug Description

Binary package hint: gedit

Opening a seemingly normal file makes gedit think it's a weird encoding, interpret the file all weird, and eventually crash.

The file is wget.info from the wget package (attached). Opening it in less looks like ascii with some occasional odd characters. gedit briefly shows it as a bunch of asian characters (chinese?). Then it crashes:

*** glibc detected *** gedit: free(): invalid next size (fast): 0x09d31df0 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6[0xb6e31ff1]
/lib/tls/i686/cmov/libc.so.6[0xb6e336f2]
/lib/tls/i686/cmov/libc.so.6(cfree+0x6d)[0xb6e3679d]
/lib/libglib-2.0.so.0(g_free+0x36)[0xb6f75186]
/usr/lib/libpango-1.0.so.0[0xb707dae8]
/usr/lib/libpango-1.0.so.0[0xb707df90]
/usr/lib/libpango-1.0.so.0[0xb707fcb6]
/usr/lib/libpango-1.0.so.0[0xb7080f54]
/usr/lib/libgtk-x11-2.0.so.0(gtk_text_layout_get_line_display+0x65e)[0xb74a611e]
/usr/lib/libgtk-x11-2.0.so.0[0xb74aa022]
/usr/lib/libgtk-x11-2.0.so.0(gtk_text_layout_wrap+0x1f)[0xb74a447f]
/usr/lib/libgtk-x11-2.0.so.0[0xb7487460]
/usr/lib/libgtk-x11-2.0.so.0[0xb748758f]
/usr/lib/libgtk-x11-2.0.so.0[0xb74877c5]
/usr/lib/libgtk-x11-2.0.so.0(gtk_text_layout_validate+0xed)[0xb74a8a5d]
/usr/lib/libgtk-x11-2.0.so.0[0xb74b555d]
/usr/lib/libgdk-x11-2.0.so.0[0xb7238f78]
/lib/libglib-2.0.so.0[0xb6f6b0f1]
/lib/libglib-2.0.so.0(g_main_context_dispatch+0x1f8)[0xb6f6ce78]
/lib/libglib-2.0.so.0[0xb6f70720]
/lib/libglib-2.0.so.0(g_main_loop_run+0x1bf)[0xb6f70b8f]
/usr/lib/libgtk-x11-2.0.so.0(gtk_main+0xb9)[0xb73ef419]
gedit(main+0x52a)[0x806ab8a]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6)[0xb6dddb56]
gedit[0x8069e61]
======= Memory map: ========
08048000-080df000 r-xp 00000000 08:01 3137867 /usr/bin/gedit
080df000-080e0000 r-xp 00097000 08:01 3137867 /usr/bin/gedit
080e0000-080e2000 rwxp 00098000 08:01 3137867 /usr/bin/gedit
096c9000-09f9b000 rwxp 00000000 00:00 0 [heap]
b340c000-b3428000 r-xp 00000000 08:01 1681619 /lib/libgcc_s.so.1
b3428000-b3429000 r-xp 0001b000 08:01 1681619 /lib/libgcc_s.so.1
b3429000-b342a000 rwxp 0001c000 08:01 1681619 /lib/libgcc_s.so.1
b3444000-b357d000 r-xp 00000000 08:01 3285127 /usr/share/fonts/truetype/freefont/FreeSerif.ttf
b357d000-b3926000 r-xp 00000000 08:01 3778737 /usr/share/fonts/truetype/vlgothic/VL-Gothic-Regular.ttf
b3926000-b3977000 r-xp 00000000 08:01 9388884 /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif.ttf
b3977000-b39c4000 r-xp 00000000 08:01 3285063 /usr/share/fonts/truetype/freefont/FreeMono.ttf
b39c4000-b39ca000 r-xp 00000000 08:01 3286965 /usr/share/fonts/truetype/ttf-indic-fonts-core/lohit_pa.ttf
b39ca000-b466d000 r-xp 00000000 08:01 3293260 /usr/share/fonts/truetype/wqy/wqy-zenhei.ttc
b466d000-b466f000 r-xp 00000000 08:01 3140194 /usr/lib/gconv/ISO8859-15.so
b466f000-b4670000 r-xp 00001000 08:01 3140194 /usr/lib/gconv/ISO8859-15.so
b4670000-b4671000 rwxp 00002000 08:01 3140194 /usr/lib/gconv/ISO8859-15.so
b4671000-b46d1000 rwxs 00000000 00:09 1867806 /SYSV00000000 (deleted)
b46d1000-b46d2000 r-xp 00000000 08:01 9388882 /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono-Bold.ttf
b46d2000-b46d4000 rwxp 00001000 08:01 9388882 /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono-Bold.ttf
b46d4000-b471b000 r-xp 00003000 08:01 9388882 /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono-Bold.ttf
b471b000-b47a7000 r-xp 00000000 08:01 9388813 /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf
b47a7000-b4807000 rwxs 00000000 00:09 1835037 /SYSV00000000 (deleted)
b4807000-b4838000 r-xp 00000000 08:01 3137772 /usr/lib/libcroco-0.6.so.3.0.1
b4838000-b483b000 rwxp 00030000 08:01 3137772 /usr/lib/libcroco-0.6.so.3.0.1
b483b000-b4874000 r-xp 00000000 08:01 8250218 /usr/lib/libgsf-1.so.114.0.15
b4874000-b4875000 ---p 00039000 08:01 8250218 /usr/lib/libgsf-1.so.114.0.15
b4875000-b4877000 r-xp 00039000 08:01 8250218 /usr/lib/libgsf-1.so.114.0.15
b4877000-b4878000 rwxp 0003b000 08:01 8250218 /usr/lib/libgsf-1.so.114.0.15
b4878000-b4879000 rwxp 00000000 00:00 0
b4879000-b48af000 r-xp 00000000 08:01 3138969 /usr/lib/librsvg-2.so.2.26.0
b48af000-b48b0000 r-xp 00035000 08:01 3138969 /usr/lib/librsvg-2.so.2.26.0
b48b0000-b48b1000 rwxp 00036000 08:01 3138969 /usr/lib/librsvg-2.so.2.26.0
b48b1000-b4900000 r-xp 00000000 08:01 9388814 /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf
b4900000-b4921000 rwxp 00000000 00:00 0
b4921000-b4a00000 ---p 00000000 00:00 0
b4a04000-b4a14000 r-xp 00000000 08:01 1680211 /lib/libbz2.so.1.0.4
b4a14000-b4a15000 r-xp 0000f000 08:01 1680211 /lib/libbz2.so.1.0.4
b4a15000-b4a16000 rwxp 00010000 08:01 1680211 /lib/libbz2.so.1.0.4
b4a16000-b4a17000 ---p 00000000 00:00 0
b4a17000-b5217000 rwxp 00000000 00:00 0
b5217000-b524d000 r-xp 00000000 08:01 3142105 /usr/lib/libibus.so.1.0.0
b524d000-b524e000 r-xp 00036000 08:01 3142105 /usr/lib/libibus.so.1.0.0
b524e000-b524f000 rwxp 00037000 08:01 3142105 /usr/lib/libibus.so.1.0.0
b5254000-b5259000 r-xp 00000000 08:01 3219879 /usr/lib/pango/1.6.0/modules/pango-indic-fc.so
b5259000-b525a000 r-xp 00005000 08:01 3219879 /usr/lib/pango/1.6.0/modules/pango-indic-fc.so
b525a000-b525b000 rwxp 00006000 08:01 3219879 /usr/lib/pango/1.6.0/modules/pango-indic-fc.so
b525b000-b525d000 r-xp 00000000 08:01 3219873 /usr/lib/pango/1.6.0/modules/pango-hangul-fc.so
b525d000-b525e000 r-xp 00002000 08:01 3219873 /usr/lib/pango/1.6.0/modules/pango-hangul-fc.so
b525e000-b525f000 rwxp 00003000 08:01 3219873 /usr/lib/pango/1.6.0/modules/pango-hangul-fc.so
b525f000-b5261000 r-xp 00000000 08:01 3140365 /usr/lib/gconv/UTF-16.so
b5261000-b5262000 r-xp 00001000 08:01 3140365 /usr/lib/gconv/UTF-16.so
b5262000-b5263000 rwxp 00002000 08:01 3140365 /usr/lib/gconv/UTF-16.so
b5263000-b5267000 r-xp 00000000 08:01 3163552 /usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-png.so
b5267000-b5268000 r-xp 00003000 08:01 3163552 /usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-png.so
b5268000-b5269000 rwxp 00004000 08:01 3163552 /usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-png.so
b5269000-b526e000 r-xp 00000000 08:01 3162186 /usr/lib/gtk-2.0/2.10.0/immodules/im-ibus.so
b526e000-b526f000 r-xp 00004000 08:01 3162186 /usr/lib/gtk-2.0/2.10.0/immodules/im-ibus.so
b526f000-b5270000 rwxp 00005000 08:01 3162186 /usr/lib/gtk-2.0/2.10.0/immodules/im-ibus.so
b5270000-b5275000 r-xp 00000000 08:01 3163115 /usr/lib/gedit-2/plugins/libmodelines.so
b5275000-b5276000 r-xp 00004000 08:01 3163115 /usr/lib/gedit-2/plugins/libmodelines.so
b5276000-b5277000 rwxp 00005000 08:01 3163115 /usr/lib/gedit-2/plugins/libmodelines.so
b5277000-b527b000 r-xp 00000000 08:01 3162569 /usr/lib/gedit-2/plugins/libdocinfo.soAborted

ProblemType: Bug
Architecture: i386
Date: Thu Oct 29 06:52:09 2009
DistroRelease: Ubuntu 9.10
Package: gedit 2.28.0-0ubuntu2
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
SourcePackage: gedit
Uname: Linux 2.6.31-14-generic i686

Revision history for this message
Michael Terry (mterry) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Please try to obtain a valgrind log following the instructions at https://wiki.ubuntu.com/Valgrind and attach the file to the bug report. This will greatly help us in tracking down your problem.

Changed in gedit (Ubuntu):
assignee: nobody → Ubuntu Desktop Bugs (desktop-bugs)
importance: Undecided → Medium
status: New → Incomplete
Revision history for this message
Michael Terry (mterry) wrote :
Changed in gedit (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Michal Parusinski (astenorh) wrote :

It looks like the error might come from deeper than gedit.

I notice that on a x86 machine it caused a segmenation fault, but on a x64 machine it caused many strange characters.

Revision history for this message
Tiago Silva (tiagosilva) wrote :

When you say that "gedit think it's a weird encoding" that is correct to assume.
From what I recall wget.info isn't a regular file; It's a GNU Info binary document originally formatted from a texinfo typeset text.
It should be read/interacted with info because it contains special formatting and hyper-links.

As of the latest releases [citation needed] gedit will not crash, but will "gracefully" refuse to open this or any other binary files [0].

[0] #75151 or http://img835.imageshack.us/img835/9408/errorwi.png

Revision history for this message
user (meta1729-deactivatedaccount) wrote :

Agree with Tiago Silva. The MIME type of wget.info is 'Application/Octet Stream'.

Revision history for this message
Denis LE FUR (dlefur) wrote :

Hello,
I have the same error.
This also happens with log files from LaTeX compilation including accents (I guess).

Revision history for this message
Vadim Rutkovsky (roignac) wrote :

Can't reproduce in gedit 3.3.3-0ubuntu1 - see comment #5

I suppose we can close this with Fix Released?
---
Ubuntu Bug Squad volunteer triager
http://wiki.ubuntu.com/BugSquad

Revision history for this message
Michael Terry (mterry) wrote :

Yup. In precise's gedit, it warns me about the odd characters, and even if I choose to continue editing, does not crash.

Changed in gedit (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.