Terminal + shift_jis + less == crashing
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| Gnome Virtual Terminal Emulator |
Fix Released
|
Critical
|
||
| vte (Ubuntu) |
Medium
|
Ubuntu Desktop Bugs |
Bug Description
Binary package hint: gnome-terminal
Be sure to save any open work before attempting this.
1) Open two Terminal windows.
2) Set the character encoding of one of them to SHIFT_JIS.
3) On that Terminal, type
perl -e 'print "\xec\x98\x8c";' > /tmp/bug; less /tmp/bug
All Terminal windows, and any program started by a Terminal window, will now crash.
The bug only seems to appear when running less from a file; if output of the program is piped directly to less, the bug won't manifest.
Ubuntu 8.04.1
ProblemType: Bug
Architecture: i386
Date: Wed Jan 7 13:36:29 2009
DistroRelease: Ubuntu 8.04
ExecutablePath: /usr/bin/
NonfreeKernelMo
Package: gnome-terminal 2.22.1-0ubuntu2
PackageArchitec
ProcEnviron:
PATH=/
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: gnome-terminal
Uname: Linux 2.6.24-22-386 i686
ralphmerridew (ralphmerridew) wrote : | #1 |
Pedro Villavicencio (pedro) wrote : | #2 |
Changed in gnome-terminal: | |
assignee: | nobody → desktop-bugs |
importance: | Undecided → Medium |
status: | New → Incomplete |
Pedro Villavicencio (pedro) wrote : | #3 |
We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to New. Thanks again!.
Changed in gnome-terminal: | |
status: | Incomplete → Invalid |
ralphmerridew (ralphmerridew) wrote : | #4 |
Did you actually try following my instructions? They're pretty straightforward.
Changed in gnome-terminal (Ubuntu): | |
status: | Invalid → New |
Pedro Villavicencio (pedro) wrote : | #5 |
yes and it doesn't crash, please report the bug as said before.
Changed in gnome-terminal (Ubuntu): | |
status: | New → Invalid |
ralphmerridew (ralphmerridew) wrote : | #6 |
Why didn't you say so?
Weird. I installed some of the debug symbols and it crashed normally. After I'd installed all the debugging symbols, it didn't crash, though the output to 'less' was funny. I dug through the last output of gdb to send that, then reran the command, and it crashed again.
Changed in gnome-terminal (Ubuntu): | |
status: | Invalid → New |
ralphmerridew (ralphmerridew) wrote : | #7 |
bump
Robert Ancell (robert-ancell) wrote : | #8 |
I can confirm the crash:
(gdb) bt#0 0xb75af896 in memcpy () from /lib/tls/
#1 0xfffff7c0 in ?? ()
#2 0xb7f6c7d7 in _vte_conv (converter=
outbuf=
#3 0xb7f6c949 in _vte_conv_cu (converter=
outbuf=
#4 0xb7f3d2cc in process_block (state=0x97bcd08,
input=0x98a3408 "\r\n�230\
#5 0xb7f3e11a in _vte_iso2022_
input=0x98a3408 "\r\n�230\
#6 0xb7f62041 in vte_terminal_
#7 0xb7f62c2a in time_process_
#8 0xb7f632f8 in process_timeout (data=0x0) at vte.c:13951
#9 0xb76ff2b6 in ?? () from /usr/lib/
#10 0xb76feb88 in g_main_
#11 0xb77020eb in ?? () from /usr/lib/
#12 0xb77025ba in g_main_loop_run () from /usr/lib/
#13 0xb7c7d7d9 in gtk_main () from /usr/lib/
#14 0x08059e35 in main (argc=Cannot access memory at address 0x1e
) at terminal.c:486
affects: | gnome-terminal (Ubuntu) → vte (Ubuntu) |
Changed in vte (Ubuntu): | |
status: | New → Confirmed |
Robert Ancell (robert-ancell) wrote : | #9 |
Backtrace without optimisation in libvte:
#0 0xb7f90430 in __kernel_vsyscall ()
#1 0xb74f36d0 in raise () from /lib/tls/
#2 0xb74f5098 in abort () from /lib/tls/
#3 0xb753124d in ?? () from /lib/tls/
#4 0xb753a276 in ?? () from /lib/tls/
#5 0xb753b9c5 in malloc () from /lib/tls/
#6 0xb7699284 in g_malloc () from /usr/lib/
#7 0xb7ecda21 in _vte_buffer_
#8 0xb7f0413f in _vte_conv () from /home/bob/
#9 0xb7f04350 in _vte_conv_cu () from /home/bob/
#10 0xb7ecf3dc in process_block (state=0x89afd08, input=0x8a96408 "\r\n�230\
block=
#11 0xb7ed022a in _vte_iso2022_
length=93, gunichars=
#12 0xb7ee513d in vte_terminal_
#13 0xb7efd869 in time_process_
#14 0xb7efda4f in process_timeout () from /home/bob/
#15 0xb76912b6 in ?? () from /usr/lib/
#16 0xb7690b88 in g_main_
#17 0xb76940eb in ?? () from /usr/lib/
#18 0xb76945ba in g_main_loop_run () from /usr/lib/
#19 0xb7c0f7d9 in gtk_main () from /usr/lib/
#20 0x08059e35 in main (argc=Cannot access memory at address 0x1e
) at terminal.c:486
Changed in vte (Ubuntu): | |
status: | Confirmed → In Progress |
Changed in vte: | |
status: | Unknown → Confirmed |
Sebastien Bacher (seb128) wrote : | #10 |
the bug has been fixed to GNOME git
Changed in vte (Ubuntu): | |
status: | In Progress → Fix Committed |
Sebastien Bacher (seb128) wrote : | #11 |
unsubscribing the sponsors that will go in the next karmic update
Changed in vte: | |
status: | Confirmed → Fix Released |
Launchpad Janitor (janitor) wrote : | #12 |
This bug was fixed in the package vte - 1:0.20.5-1ubuntu1
---------------
vte (1:0.20.5-1ubuntu1) karmic; urgency=low
* Merge from debian unstable (LP: #388046), remaining changes:
- debian/
+ Build-depend on python-all-dbg.
+ Build-depend on libgtk-
correct a wrong dependency in libvte9-udeb.
+ Add Vcs-Bzr info.
+ Add python-vte-dbg package.
- debian/
+ Make it build against python 2.6 new FS layout
- debian/rules:
+ Build a python-vte-dbg package.
+ Clean .a and .la files from package to keep .install file easy
to read.
- debian/
+ Keep file descriptors open on vte_fork_pty().
- debian/
+ Handle scrolling differently when using alternate screen
or scrolling is restricted.
* Closes LP: #314826 and LP: #369440.
vte (1:0.20.5-1) unstable; urgency=low
* New upstream bugfix release, undoing the unintended
soname bump (Closes: #532552):
+ debian/control.in,
debian/
- Undo package rename.
+ debian/
- Updated for the new version.
vte (1:0.20.4-1) unstable; urgency=low
[ Josselin Mouette ]
* Add libglib2.0-doc, libgtk2.0-doc and libatk1.0-doc to b-d-i to
ensure proper xrefs.
* 01_bashisms.patch: fix bashims in provided scripts. Closes: #530123.
[ Sebastian Dröge ]
* New upstream bugfix releases:
+ debian/rules:
- Update shlibs version to >= 0.20.4 for API additions.
+ debian/control.in,
debian/
- Update for the new soname.
+ debian/
- Regenerated for the new version.
-- Chris Coulson <email address hidden> Tue, 16 Jun 2009 19:47:00 +0100
Changed in vte (Ubuntu): | |
status: | Fix Committed → Fix Released |
Changed in vte: | |
importance: | Unknown → Critical |
Thanks for your bug report. Please try to obtain a backtrace http:// wiki.ubuntu. com/DebuggingPr ogramCrash and attach the file to the bug report. This will greatly help us in tracking down your problem.