安裝CLUSTER碰到 Assertion failed offset fFileSize錯誤

yangtingkun發表於2009-08-16

每次安裝RAC環境總會碰到意外,這次又碰到一個以前沒有碰到過的錯誤。

 

 

在嘗試安裝CLUSTER軟體執行runInstaller時,出現了這個錯誤,詳細的錯誤資訊為:

bash-3.00$ ./runInstaller
Starting Oracle Universal Installer...

Checking installer requirements...

Checking operating system version: must be 5.8, 5.9 or 5.10.    Actual 5.10
                                      Passed

Checking Temp space: must be greater than 250 MB.   Actual 59095 MB    Passed
Checking swap space: must be greater than 500 MB.   Actual 59729 MB    Passed
Checking monitor: must be configured to display at least 256 colors.    Actual 65536    Passed

All installer requirements met.

Preparing to launch Oracle Universal Installer from /tmp/OraInstall2009-08-12_09-04-59PM. Please wait ...bash-3.00$ Oracle Universal Installer, Version 10.2.0.1.0 Production
Copyright (C) 1999, 2005, Oracle. All rights reserved.

Assertion failed: offset < fFileSize, file ../../../src/share/native/sun/awt/font/fontmanager/fontobjects/fontObject.cpp, line 418

開始以為是安裝程式在網路傳輸時出現了錯誤,檢查確認是二進位制傳輸過來的。嘗試重新ftp檔案,問題依舊。從另一臺伺服器上找到一個.gz壓縮檔案,ftp後解壓,cpio展開,嘗試安裝,問題仍然出現。

感覺問題應該不是出在安裝檔案上,難道是作業系統的字型檔案出了問題。

metalink上查詢了一下,居然找到了對應的問題描述:Doc ID:  265428.1,看來確實是作業系統字型檔案損壞造成的。

利用Oracle給出的方法嘗試跟蹤錯誤:

bash-3.00$ export JAVA2D_DEBUGFONTS=1
bash-3.00$ ./runInstaller
Starting Oracle Universal Installer...

Checking installer requirements...

Checking operating system version: must be 5.8, 5.9 or 5.10.    Actual 5.10
                                      Passed

Checking Temp space: must be greater than 250 MB.   Actual 58766 MB    Passed
Checking swap space: must be greater than 500 MB.   Actual 59720 MB    Passed
Checking monitor: must be configured to display at least 256 colors.    Actual 65536    Passed

All installer requirements met.

Preparing to launch Oracle Universal Installer from /tmp/OraInstall2009-08-12_09-44-46PM. Please wait ...bash-3.00$ Oracle Universal Installer, Version 10.2.0.1.0 Production
Copyright (C) 1999, 2005, Oracle. All rights reserved.

opened font file /tmp/OraInstall2009-08-12_09-44-46PM/jre/1.4.2/lib/fonts/LucidaTypewriterRegular.ttf fd=11
/tmp/OraInstall2009-08-12_09-44-46PM/jre/1.4.2/lib/fonts/LucidaTypewriterRegular.ttf - CMAP 3,1 found at offset 282.
opened font file /tmp/OraInstall2009-08-12_09-44-46PM/jre/1.4.2/lib/fonts/LucidaTypewriterBold.ttf fd=12
/tmp/OraInstall2009-08-12_09-44-46PM/jre/1.4.2/lib/fonts/LucidaTypewriterBold.ttf - CMAP 3,1 found at offset 282.
opened font file /tmp/OraInstall2009-08-12_09-44-46PM/jre/1.4.2/lib/fonts/LucidaBrightRegular.ttf fd=13
/tmp/OraInstall2009-08-12_09-44-46PM/jre/1.4.2/lib/fonts/LucidaBrightRegular.ttf - CMAP 3,1 found at offset 282.
opened font file /tmp/OraInstall2009-08-12_09-44-46PM/jre/1.4.2/lib/fonts/LucidaBrightDemiBold.ttf fd=14
/tmp/OraInstall2009-08-12_09-44-46PM/jre/1.4.2/lib/fonts/LucidaBrightDemiBold.ttf - CMAP 3,1 found at offset 282.
opened font file /tmp/OraInstall2009-08-12_09-44-46PM/jre/1.4.2/lib/fonts/LucidaBrightItalic.ttf fd=15
/tmp/OraInstall2009-08-12_09-44-46PM/jre/1.4.2/lib/fonts/LucidaBrightItalic.ttf - CMAP 3,1 found at offset 282.
opened font file /tmp/OraInstall2009-08-12_09-44-46PM/jre/1.4.2/lib/fonts/LucidaBrightDemiItalic.ttf fd=16
/tmp/OraInstall2009-08-12_09-44-46PM/jre/1.4.2/lib/fonts/LucidaBrightDemiItalic.ttf - CMAP 3,1 found at offset 282.
opened font file /tmp/OraInstall2009-08-12_09-44-46PM/jre/1.4.2/lib/fonts/LucidaSansRegular.ttf fd=17
/tmp/OraInstall2009-08-12_09-44-46PM/jre/1.4.2/lib/fonts/LucidaSansRegular.ttf - CMAP 3,1 found at offset 282.
opened font file /tmp/OraInstall2009-08-12_09-44-46PM/jre/1.4.2/lib/fonts/LucidaSansDemiBold.ttf fd=18
/tmp/OraInstall2009-08-12_09-44-46PM/jre/1.4.2/lib/fonts/LucidaSansDemiBold.ttf - CMAP 3,1 found at offset 282.
opened font file /usr/openwin/lib/locale/zh_TW.BIG5/X11/fonts/TT/ming.ttf fd=48
/usr/openwin/lib/locale/zh_TW.BIG5/X11/fonts/TT/ming.ttf - CMAP 3,1 found at offset 290.
/usr/openwin/lib/locale/zh_TW.BIG5/X11/fonts/TT/ming.ttf - CMAP 3,10 found at offset 8868.
opened font file /usr/openwin/lib/locale/zh_CN.GB18030/X11/fonts/TrueType/songti.ttf fd=49
/usr/openwin/lib/locale/zh_CN.GB18030/X11/fonts/TrueType/songti.ttf - CMAP 3,1 found at offset 282.
opened font file /usr/openwin/lib/locale/zh_CN.GB18030/X11/fonts/TrueType/fangsongti.ttf fd=50
closing font descriptor 11
/usr/openwin/lib/locale/zh_CN.GB18030/X11/fonts/TrueType/fangsongti.ttf - CMAP 3,1 found at offset 282.
opened font file /usr/openwin/lib/locale/zh_CN.GB18030/X11/fonts/TrueType/heiti.ttf fd=11
closing font descriptor 12
/usr/openwin/lib/locale/zh_CN.GB18030/X11/fonts/TrueType/heiti.ttf - CMAP 3,1 found at offset 282.
opened font file /usr/openwin/lib/locale/zh_CN.GB18030/X11/fonts/TrueType/kaiti.ttf fd=12
closing font descriptor 13
Assertion failed: offset < fFileSize, file ../../../src/share/native/sun/awt/font/fontmanager/fontobjects/fontObject.cpp, line 418

顯然檔案/usr/openwin/lib/locale/zh_CN.GB18030/X11/fonts/TrueType/kaiti.ttf出現了問題。

進入對應的目錄,檢查這個檔案:

root@ser1 # pwd
/usr/openwin/lib/locale/zh_CN.GB18030/X11/fonts/TrueType
root@ser1 # ls -l kaiti.ttf
-rw-r--r--   1 root     other    11452416 Aug 10 12:00 kaiti.ttf

而其他伺服器上,這個檔案的資訊為:

root@ser2 # pwd
/usr/openwin/lib/locale/zh_CN.GB18030/X11/fonts/TrueType
root@ser2 # ls -l kaiti.ttf
-rw-r--r--   1 root     bin      19180084 Dec  9  2003 kaiti.ttf

二者大小都不一致,而且顯然這個檔案在安裝時被修改過。

利用ftp複製檔案後,問題解決:

bash-3.00$ ./runInstaller
Starting Oracle Universal Installer...

Checking installer requirements...

Checking operating system version: must be 5.8, 5.9 or 5.10.    Actual 5.10
                                      Passed

Checking Temp space: must be greater than 250 MB.   Actual 58660 MB    Passed
Checking swap space: must be greater than 500 MB.   Actual 59720 MB    Passed
Checking monitor: must be configured to display at least 256 colors.    Actual 65536    Passed

All installer requirements met.

Preparing to launch Oracle Universal Installer from /tmp/OraInstall2009-08-12_09-56-02PM. Please wait ...bash-3.00$ Oracle Universal Installer, Version 10.2.0.1.0 Production
Copyright (C) 1999, 2005, Oracle. All rights reserved.

Warning: Cannot convert string "-monotype-arial-regular-r-normal--*-140-*-*-p-*-iso8859-1" to type FontStruct

 

 

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/4227/viewspace-612461/,如需轉載,請註明出處,否則將追究法律責任。

相關文章