Bug 16784 - crashes when there are insufficient fonts
: crashes when there are insufficient fonts
Status: CLOSED WONTFIX
: Sisyphus
(All bugs in Sisyphus/xmessage)
: unstable
: all Linux
: P2 critical
Assigned To:
:
:
:
:
:
  Show dependency tree
 
Reported: 2008-08-20 20:18 by
Modified: 2009-07-24 18:04 (History)


Attachments
xlsfonts.out (715.92 KB, text/plain)
2008-08-20 20:18, Ivan Zakharyaschev
no flags Details


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2008-08-20 20:18:22
Created an attachment (id=2799) [details]
xlsfonts.out

xmessage-1.0.2-alt1

$ xmessage Hello
Warning: Unable to load any usable ISO8859 font
Segmentation fault (core dumped)
$ locale
LANG=ru_RU.KOI8-R
LC_CTYPE="ru_RU.KOI8-R"
LC_NUMERIC="ru_RU.KOI8-R"
LC_TIME="ru_RU.KOI8-R"
LC_COLLATE="ru_RU.KOI8-R"
LC_MONETARY="ru_RU.KOI8-R"
LC_MESSAGES=POSIX
LC_PAPER="ru_RU.KOI8-R"
LC_NAME="ru_RU.KOI8-R"
LC_ADDRESS="ru_RU.KOI8-R"
LC_TELEPHONE="ru_RU.KOI8-R"
LC_MEASUREMENT="ru_RU.KOI8-R"
LC_IDENTIFICATION="ru_RU.KOI8-R"
LC_ALL=
$ 

The list of available fonts is attached (from "xlsfonts > xlsfonts.out").

apt> depends xmessage 
xmessage-1.0.2-alt1
  Depends: <libX11.so.6>
    libX11-3:1.1.4-alt6
  Depends: <libXaw.so.8>
    libXaw-1.0.4-alt1
  Depends: <libXt.so.6>
    libXt-1.0.5-alt1
  Depends: <libc.so.6(GLIBC_2.0)>
    glibc-core-6:2.5.1-alt5
  Depends: <libc.so.6(GLIBC_2.1)>
    glibc-core-6:2.5.1-alt5
  Depends: <libc.so.6(GLIBC_2.3.4)>
    glibc-core-6:2.5.1-alt5
  Depends: <rtld(GNU_HASH)>
    glibc-core-6:2.5.1-alt5
apt>
------- Comment #1 From 2008-08-20 20:20:46 -------
And I'm not sure that the fonts are indeed insufficient: other programs work.
------- Comment #2 From 2008-08-20 20:29:06 -------
ru_RU.UTF-8, все работает. KOI8-R и пр. зокопайте
------- Comment #3 From 2008-08-20 20:49:09 -------
(In reply to comment #2)
> ru_RU.UTF-8, все работает. KOI8-R и пр. зокопайте

Нет, скорее ей всё-таки как-то неподходит набор шрифтов (только с локалью POSIX
не падает):

$ bash
$ export LANG=ru_RU.UTF8
$ xmessage Hello
Warning: Unable to load any usable ISO8859 font
Segmentation fault (core dumped)
$ locale
LANG=ru_RU.UTF8
LC_CTYPE="ru_RU.UTF8"
LC_NUMERIC="ru_RU.UTF8"
LC_TIME="ru_RU.UTF8"
LC_COLLATE="ru_RU.UTF8"
LC_MONETARY="ru_RU.UTF8"
LC_MESSAGES=POSIX
LC_PAPER="ru_RU.UTF8"
LC_NAME="ru_RU.UTF8"
LC_ADDRESS="ru_RU.UTF8"
LC_TELEPHONE="ru_RU.UTF8"
LC_MEASUREMENT="ru_RU.UTF8"
LC_IDENTIFICATION="ru_RU.UTF8"
LC_ALL=
$ export LANG=ru_RU.UTF-8
$ locale
LANG=ru_RU.UTF-8
LC_CTYPE="ru_RU.UTF-8"
LC_NUMERIC="ru_RU.UTF-8"
LC_TIME="ru_RU.UTF-8"
LC_COLLATE="ru_RU.UTF-8"
LC_MONETARY="ru_RU.UTF-8"
LC_MESSAGES=POSIX
LC_PAPER="ru_RU.UTF-8"
LC_NAME="ru_RU.UTF-8"
LC_ADDRESS="ru_RU.UTF-8"
LC_TELEPHONE="ru_RU.UTF-8"
LC_MEASUREMENT="ru_RU.UTF-8"
LC_IDENTIFICATION="ru_RU.UTF-8"
LC_ALL=
$ xmessage Hello
Warning: Unable to load any usable ISO8859 font
Segmentation fault (core dumped)
$ export LC_ALL=ru_RU.UTF-8
$ locale
LANG=ru_RU.UTF-8
LC_CTYPE="ru_RU.UTF-8"
LC_NUMERIC="ru_RU.UTF-8"
LC_TIME="ru_RU.UTF-8"
LC_COLLATE="ru_RU.UTF-8"
LC_MONETARY="ru_RU.UTF-8"
LC_MESSAGES="ru_RU.UTF-8"
LC_PAPER="ru_RU.UTF-8"
LC_NAME="ru_RU.UTF-8"
LC_ADDRESS="ru_RU.UTF-8"
LC_TELEPHONE="ru_RU.UTF-8"
LC_MEASUREMENT="ru_RU.UTF-8"
LC_IDENTIFICATION="ru_RU.UTF-8"
LC_ALL=ru_RU.UTF-8
$ xmessage Hello
Warning: Unable to load any usable ISO8859 font
п·я┬п╦п╠п╨п╟ я│п╣пЁп╪п╣п╫я┌п╦я─п╬п╡п╟п╫п╦я▐ (core dumped)
$ export LC_ALL=POSIX
$ xmessage Hello
$ 


(И вообще, если происходит segmentation fault вместо сообщения об ошибке, то
она как-то криво написана.)
------- Comment #4 From 2008-08-20 20:49:52 -------
A workaround: use gxmessage.
------- Comment #5 From 2008-08-20 20:52:44 -------
перепиши
------- Comment #6 From 2009-07-21 09:50:07 -------
Вань, я тоже рекомендую использовать gxmessage и забыть про xmessage.  От
последнего в разумное время разумного результата добиться в последний раз (года
два-три тому) не удалось.