Apache OpenOffice (AOO) Bugzilla – Issue 1969
setup.bin crashing after fontreading
Last modified: 2003-09-08 16:53:51 UTC
I'm trying to install a 638C binary install on a suse 7.2 box. After untarring the tar and running ./setup in the install dir just "glibc version: 2.2.2" occurs and after some time the prompt appears again and nothing happens. Some investigation with strace shows that /tmp/sv001.tmp/setup.bin crashes with an segmentation fault shortly after reading the font list from the X server. 6395 execve("/tmp/sv001.tmp/setup.bin", ["/tmp/sv001.tmp/setup.bin"], [/* 67 vars */]) = 0 6395 uname({sys="Linux", node="averell", ...}) = 0 6395 brk(0) = 0 [...] 395 read(10, "[source]\npath=/home/andi/TMP/ins"..., 37) = 37 6395 access("/tmp/sv001.tmp/setup.ini", R_OK) = 0 6395 lstat64("/tmp/sv001.tmp/setup.ini", {st_mode=S_IFREG|0644, st_size=37, ...}) = 0 6395 close(10) = 0 6395 write(6, "\2\1\4\0\v\0 \3\0\10\0\0\177\200\353\0\2\0\4\0\f\0 \3\0"..., 68) = 68 6395 read(6, "\1\37I\0\0\0\0\0b\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0\0\0"..., 32) = 32 6395 write(6, "\20\1\t\0\31\0 \3XDCCC_LINEAR_RGB_MATRICE"..., 36) = 36 [... more read and writes...] 6395 brk(0x80d6000) = 0x80d6000 6395 writev(6, [{"\22\0\v\0\v\0 \3\343\0\0\0\343\0\0\0 \0\4\0\5\0\0\0\7\0"..., 120}, {"-*", 2} 6395 read(6, "\34\20\265\3\v\0 \3\343\0\0\0\r)g\254\0\366\377\277\335"..., 32) = 32 6395 read(6, "\1\366\271\3\277\362\0\0\332\17\313\10 9\255\10\0@\0\000"..., 32) = 32 6395 brk(0x80da000) = 0x80da000 6395 old_mmap(NULL, 249856, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x41c3d0 6395 readv(6, [{"\21-misc-st8x16-10-16-sgi-screen-b"..., 248572}, {"", 0}], 2) = 65342 6395 readv(6, [{"59-15J-adobe-new century schoolb"..., 183230}, {"", 0}], 2) = 65406 6395 readv(6, [{"bright-demibold-i-normal--8-80-7"..., 117824}, {"", 0}], 2) = 65406 6395 readv(6, [{"-m-70--ascii4-sgi-screen-bold-r-"..., 52418}, {"", 0}], 2) = 52418 Reads the font list. 6395 brk(0x80fa000) = 0x80fa000 6395 --- SIGSEGV (Segmentation fault) --- Crash. 6392 <... wait4 resumed> [WIFSIGNALED(s) && WTERMSIG(s) == SIGSEGV], 0, NULL) = 6395 6392 rt_sigaction(SIGINT, {SIG_DFL}, NULL, 8) = 0 6392 rt_sigaction(SIGQUIT, {SIG_DFL}, NULL, 8) = 0 6392 rt_sigprocmask(SIG_SETMASK, [RT_0], NULL, 8) = 0 6392 --- SIGCHLD (Child exited) --- 6392 ioctl(4, FIONREAD, [0]) = 0 [...] xserver is xfree86 4.0.3 on a matrox g200 on a 2.4.12 kernel. I have some nonstandard fonts installed including some ttf (xlsfonts|wc -l is 4429)
Hi Herbert, has this issue anything to do with issue 1792?
In issue 1792 it wasn't reading the fontlist yet, so I don't suspect the bugs are related. For this bug I think a bad font file might be the problem. Can you try to isolate which font files might cause the crash? E.g. make only the first 1000 fonts visible to OO, then fonts 1000-2000, ...
The setup crash is caused by the attached font file.
Created attachment 615 [details] Font that makes setup segfault
HDU->CP: See the sys2.pcf font file which contains a non-conforming XLFD name. The bad XLFD seems to cause a crash in xfont.cxx. The autogenerated fonts.dir has this line: sys2.pcf -misc-st8x16-10-1 Here is the stacktrace: #0 0x40cb3c27 in memcpy () from /lib/libc.so.6 #1 0x4034c16f in Attribute::SetName () at /mx3/CTL/SRC641/vcl/unx/source/gdi/xfont.cxx:686 #2 0x4034cbfd in AttributeStorage::Insert () at /mx3/CTL/SRC641/vcl/unx/source/gdi/xfont.cxx:686 #3 0x4034f3a0 in Xlfd::FromString () at /mx3/CTL/SRC641/vcl/unx/source/gdi/xfont.cxx:686 #4 0x40350110 in SalDisplay::GetXlfdList (this=0x8093db0) at /mx3/CTL/SRC641/vcl/unx/source/gdi/salgdi3.cxx:554 #5 0x40352743 in SalGraphics::GetDevFontList (this=0x80e8338, pList=0x80cb0d8) at /mx3/CTL/SRC641/vcl/unx/source/gdi/salgdi3.cxx:1820
fixed, hope to make it into OOo641
closing fixed issue