Package: xterm Version: 225-1 Severity: normal While playing around trying to understand how uxterm works, I discovered the "selection" item in the "font" menu, and played with it before realizing it was a generic xterm feature documented in the man manpage.
When selecting random latin characters (eg. from the prompt, either in plain xterm or uxterm), sometimes I get the selection apparently turned to "black on black" (I am using "white on black" for nomal text), but sometimes it just segfaults, gdb reporting: (gdb) bt #0 0xb7d0736c in XDrawImageString () from /usr/lib/libX11.so.6 #1 0x08076de0 in ?? () #2 0x0809a358 in ?? () #3 0x01a00013 in ?? () #4 0x00000000 in ?? () With uxterm it gets better when selecting CJK characters pasted from another app (precisely, from firefox browsing http://fr.wikipedia.org/wiki/Sh%C5%8Dgi, any string I tried, eg. \u738b\u5c06): I get the following crash backtrace from xterm itself (also note the final "Aborted\n" trunkating the output). [EMAIL PROTECTED]:~$ LC_CTYPE=fr_FR uxterm *** glibc detected *** xterm: munmap_chunk(): invalid pointer: 0x08081d0e *** ======= Backtrace: ========= /lib/libc.so.6(__libc_free+0x1b9)[0xb7ba9209] xterm[0x805477e] /usr/lib/libXt.so.6[0xb7dfcb43] /usr/lib/libXt.so.6[0xb7dfe41d] /usr/lib/libXt.so.6(XtGetSelectionValue+0xfe)[0xb7dfeabe] xterm[0x80545fe] xterm[0x8061d3a] xterm[0x8067f99] /usr/lib/libXt.so.6(XtCallCallbacks+0x117)[0xb7ddba17] /usr/lib/libXaw.so.7[0xb7e6eca2] /usr/lib/libXaw.so.7[0xb7e6d442] /usr/lib/libXt.so.6[0xb7e1161a] /usr/lib/libXt.so.6[0xb7e119cc] /usr/lib/libXt.so.6(_XtTranslateEvent+0x5d8)[0xb7e11fb8] /usr/lib/libXt.so.6(XtDispatchEventToWidget+0x458)[0xb7de96d8] /usr/lib/libXt.so.6[0xb7de9efd] /usr/lib/libXt.so.6(XtDispatchEvent+0xc8)[0xb7de8e08] xterm[0x806d438] xterm[0x805bbcc] xterm[0x805bf7f] xterm[0x80674e5] /lib/libc.so.6(__libc_start_main+0xd8)[0xb7b53878] xterm[0x804d3d1] ======= Memory map: ======== 08048000-0808f000 r-xp 00000000 fe:08 151460 /usr/bin/xterm 0808f000-08094000 rw-p 00046000 fe:08 151460 /usr/bin/xterm 08094000-08157000 rw-p 08094000 00:00 0 [heap] b76db000-b781a000 rw-p b76db000 00:00 0 b7849000-b7853000 r-xp 00000000 03:01 20584 /lib/libgcc_s.so.1 b7853000-b7854000 rw-p 00009000 03:01 20584 /lib/libgcc_s.so.1 b7854000-b7858000 r-xp 00000000 fe:08 541330 /usr/lib/libXfixes.so.3.1.0 b7858000-b7859000 rw-p 00003000 fe:08 541330 /usr/lib/libXfixes.so.3.1.0 b7859000-b7861000 r-xp 00000000 fe:08 543807 /usr/lib/libXcursor.so.1.0.2 b7861000-b7862000 rw-p 00007000 fe:08 543807 /usr/lib/libXcursor.so.1.0.2 b7862000-b7a62000 r--p 00000000 fe:08 507996 /usr/lib/locale/locale-archive b7a62000-b7a64000 rw-p b7a62000 00:00 0 b7a64000-b7a76000 r-xp 00000000 03:01 20657 /lib/libpthread-2.5.so b7a76000-b7a78000 rw-p 00011000 03:01 20657 /lib/libpthread-2.5.so b7a78000-b7a7a000 rw-p b7a78000 00:00 0 b7a7a000-b7a7c000 r-xp 00000000 03:01 20635 /lib/libdl-2.5.so b7a7c000-b7a7e000 rw-p 00001000 03:01 20635 /lib/libdl-2.5.so b7a7e000-b7a82000 r-xp 00000000 fe:08 542249 /usr/lib/libXdmcp.so.6.0.0 b7a82000-b7a83000 rw-p 00003000 fe:08 542249 /usr/lib/libXdmcp.so.6.0.0 b7a83000-b7a84000 rw-p b7a83000 00:00 0 b7a84000-b7a86000 r-xp 00000000 fe:08 541478 /usr/lib/libXau.so.6.0.0 b7a86000-b7a87000 rw-p 00001000 fe:08 541478 /usr/lib/libXau.so.6.0.0 b7a87000-b7a96000 r-xp 00000000 fe:08 543817 /usr/lib/libXpm.so.4.11.0 b7a96000-b7a97000 rw-p 0000e000 fe:08 543817 /usr/lib/libXpm.so.4.11.0 b7a97000-b7ab5000 r-xp 00000000 fe:08 541724 /usr/lib/libexpat.so.1.0.0 b7ab5000-b7ab7000 rw-p 0001d000 fe:08 541724 /usr/lib/libexpat.so.1.0.0 b7ab7000-b7abe000 r-xp 00000000 fe:08 543627 /usr/lib/libXrender.so.1.3.0 b7abe000-b7abf000 rw-p 00006000 fe:08 543627 /usr/lib/libXrender.so.1.3.0 b7abf000-b7ad2000 r-xp 00000000 fe:08 541082 /usr/lib/libz.so.1.2.3 b7ad2000-b7ad3000 rw-p 00012000 fe:08 541082 /usr/lib/libz.so.1.2.3 b7ad3000-b7ad4000 rw-p b7ad3000 00:00 0 b7ad4000-b7b3b000 r-xp 00000000 fe:08 541133 /usr/lib/libfreetype.so.6.3.10 b7b3b000-b7b3e000 rw-p 00067000 fe:08 541133 /usr/lib/libfreetype.so.6.3.10 b7b3e000-b7c7a000 r-xp 00000000 03:01 20597 /lib/libc-2.5.so b7c7a000-b7c7b000 r--p 0013c000 03:01 20597 /lib/libc-2.5.so b7c7b000-b7c7d000 rw-p 0013d000 03:01 20597 /lib/libc-2.5.so b7c7d000-b7c80000 rw-p b7c7d000 00:00 0 b7c80000-b7cb8000 r-xp 00000000 03:01 20549 /lib/libncurses.so.5.5 b7cb8000-b7cc0000 rw-p 00038000 03:01 20549 /lib/libncurses.so.5.5 b7cc0000-b7cc1000 rw-p b7cc0000 00:00 0 b7cc1000-b7da9000 r-xp 00000000 fe:08 540847 /usr/lib/libX11.so.6.2.0 b7da9000-b7dad000 rw-p 000e8000 fe:08 540847 /usr/lib/libX11.so.6.2.0 b7dad000-b7dc2000 r-xp 00000000 fe:08 541005 /usr/lib/libICE.so.6.3.0 b7dc2000-b7dc3000 rw-p 00014000 fe:08 541005 /usr/lib/libICE.so.6.3.0 b7dc3000-b7dc5000 rw-p b7dc3000 00:00 0 b7dc5000-b7dcd000 r-xp 00000000 fe:08 540820 /usr/lib/libSM.so.6.0.0 b7dcd000-b7dce000 rw-p 00007000 fe:08 540820 /usr/lib/libSM.so.6.0.0 b7dce000-b7dcf000 rw-p b7dce000 00:00 0 b7dcf000-b7e1a000 r-xp 00000000 fe:08 543840 /usr/lib/libXt.so.6.0.0 b7e1a000-b7e1d000 rw-p 0004b000 fe:08 543840 /usr/lib/libXt.so.6.0.0 b7e1d000-b7e1e000 rw-p b7e1d000 00:00 0 b7e1e000-b7e2b000 r-xp 00000000 fe:08 1147692 /usr/lib/libXext.so.6.4.0 b7e2b000-b7e2c000 rw-p 0000c000 fe:08 1147692 /usr/lib/libXAborted $ echo $? 134 -- System Information: Debian Release: lenny/sid APT prefers testing APT policy: (990, 'testing'), (500, 'unstable'), (90, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.19.1-smp (SMP w/2 CPU cores) Locale: LANG=C, LC_CTYPE=french (charmap=ISO-8859-1) Shell: /bin/sh linked to /bin/bash Versions of packages xterm depends on: ii libc6 2.5-4 GNU C Library: Shared libraries ii libfontconfig1 2.4.2-1.2 generic font configuration library ii libice6 1:1.0.3-2 X11 Inter-Client Exchange library ii libncurses5 5.5-5 Shared libraries for terminal hand ii libsm6 1:1.0.2-2 X11 Session Management library ii libx11-6 2:1.0.3-7 X11 client-side library ii libxaw7 1:1.0.2-4 X11 Athena Widget library ii libxext6 1:1.0.1-2 X11 miscellaneous extension librar ii libxft2 2.1.12-2 FreeType-based font drawing librar ii libxmu6 1:1.0.2-2 X11 miscellaneous utility library ii libxt6 1:1.0.5-2 X11 toolkit intrinsics library ii xbitmaps 1.0.1-2 Base X bitmaps Versions of packages xterm recommends: ii xutils 1:7.1.ds.3-1 X Window System utility programs -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]