今天突然想到, 之前 moto 兄都要人用 strace 來看看某個程式的問題, 於是乎拿來試試, 出乎意料的居然找到 firebird 無法啟動的問題, 真是乖乖, 看來以後要常常想到 moto 才對。;-)
strace mozilla-firebird
.
.
.
.
open("/home/louie/.Xdefaults", O_RDONLY) = -1 ENOENT (No such file or directory)
uname({sys="Linux", node="xxx.xxx.org.tw", ...}) = 0
open("/home/louie/.Xdefaults-xxx.xxx.org.tw", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/mozilla-firebird/res/fonts/fontEncoding.properties", {st_mode=S_IFREG|0644, st_size=7448, ...}) = 0
open("/usr/lib/mozilla-firebird/res/fonts/fontEncoding.properties", O_RDONLY|O_LARGEFILE) = 18
lseek(18, 0, SEEK_CUR) = 0
lseek(18, 0, SEEK_END) = 7448
lseek(18, 0, SEEK_SET) = 0
read(18, "##\n## The contents of this file "..., 8192) = 7448
read(18, "", 8192) = 0
close(18) = 0
open("/usr/share/fonts/truetype/mingliu/times.ttf", O_RDONLY) = -1 EACCES (Permission denied)
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
unlink("/home/louie/.phoenix/default/on194i67.slt/lock") = 0
_exit(11) = ?
原來當初在放這些字型的時候, 權限並沒有開給其他人, 權限是 400, 真是該打, 也沒想到用 root 去開 firebird 看看, 不過, 總算可以用就是了, 特此報告一下。