3
調試器:DDD。爲什麼在嘗試使用DDD打開文件時出現此錯誤?
64位Ubuntu精準穿山甲系統。
每當我試着在DDD打開一個非常簡單的C程序中,我得到以下錯誤:
Warning: This program is an suid-root program or is being run by the root user.
The full text of the error or warning message cannot be safely formatted
in this environment. You may get a more descriptive message by running the
program as a non-root user or by removing the suid bit on the executable.
Warning: Cannot convert string "%s" to type %s
Warning: Could not load font "-*-lucidatypewriter-medium-*-*-*-*-120-*-*-*-*-iso8859-*", using font "fixed" instead
Warning: Could not load font "-*-lucidatypewriter-medium-r-*-*-*-120-*-*-*-*-iso8859-*", using font "fixed" instead
Warning: Could not load font "-*-lucidatypewriter-bold-*-*-*-*-120-*-*-*-*-iso8859-*", using font "fixed" instead
Warning: XmStringGetNextComponent: unknown type 26933216
Warning: XmStringGetNextComponent: unknown type 26664160
Warning: XmStringGetNextComponent: unknown type 26721536
Warning: XmStringGetNextComponent: unknown type 27713552
Warning: XmStringGetNextComponent: unknown type 26719456
Warning: XmStringGetNextComponent: unknown type 26994752
Warning: XmStringGetNextComponent: unknown type 27761616
此外,國內開闢了罰款獲得在終端上顯示所有這些錯誤後,但沒有源我想調試的文件。我找不到這個在線的解決方案!謝謝。
編輯:
以root用戶身份運行時出現上述錯誤。以普通用戶身份運行時,我會得到以下內容:
Warning: Cannot convert string "-*-helvetica-medium-r-*-*-*-100-*-*-*-*-iso8859-*" to type FontStruct
Warning: Cannot convert string "-*-lucidatypewriter-medium-r-*-*-*-120-*-*-*-*-iso8859-*" to type FontStruct
Warning: Cannot convert string "-*-lucidatypewriter-bold-r-*-*-*-120-*-*-*-*-iso8859-*" to type FontStruct
Warning: Cannot convert string "-*-helvetica-bold-r-*-*-*-120-*-*-*-*-iso8859-*" to type FontStruct
Warning: Cannot convert string "-*-helvetica-medium-*-*-*-*-120-*-*-*-*-iso8859-*" to type FontStruct
Warning: Cannot convert string "-*-helvetica-bold-*-*-*-*-120-*-*-*-*-iso8859-*" to type FontStruct
Warning: Cannot convert string "-*-helvetica-bold-r-*-*-*-180-*-*-*-*-iso8859-*" to type FontStruct
Warning: Cannot convert string "-*-symbol-*-*-*-*-*-120-*-*-*-*-adobe-*" to type FontStruct
Warning: Could not load font "-*-lucidatypewriter-medium-*-*-*-*-120-*-*-*-*-iso8859-*", using font "fixed" instead
Warning: Could not load font "-*-lucidatypewriter-medium-r-*-*-*-120-*-*-*-*-iso8859-*", using font "fixed" instead
Warning: Could not load font "-*-lucidatypewriter-bold-*-*-*-*-120-*-*-*-*-iso8859-*", using font "fixed" instead
Warning: XmStringGetNextComponent: unknown type 27122480
Warning: XmStringGetNextComponent: unknown type 27125120
Warning: XmStringGetNextComponent: unknown type 27119296
Warning: XmStringGetNextComponent: unknown type 27109856
Warning: XmStringGetNextComponent: unknown type 27150160
Warning: XmStringGetNextComponent: unknown type 27132208
你用什麼命令啓動DDD? – slugonamission
我使用以下內容:'ddd prac1.c&'。 – amorimluc
...和「whoami」的輸出? (因爲它看起來像你試圖以root身份運行ddd,這可能不是你想要的) –