当我尝试使用DDD打开文件时,为什么会出现这个错误?

3

调试器:DDD。

64位Ubuntu Precise Pangolin系统。

每当我尝试在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

此外,在所有这些错误在终端上显示后,ddd可以正常打开,但是没有我想要调试的源文件。我找不到在线解决方案!谢谢。
编辑:
当以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

1
你正在使用什么命令来启动DDD? - slugonamission
我正在使用以下命令:ddd prac1.c & - amorimluc
你能提供一下 whoami 命令的输出吗?(因为看起来你试图以 root 用户身份运行 ddd,这可能不是你想要的) - Fredrik Pihl
我正在以root身份运行。我尝试以普通用户身份运行,但是我遇到了相同的问题,尽管不涉及suid位部分。 - amorimluc
请查看http://savannah.gnu.org/bugs/?30270(是的,我得到了相同的输出)。 - Fredrik Pihl
显示剩余4条评论
1个回答

3

在@Fredrik的帮助下,我想我已经弄清楚了。

UTF-8不兼容性似乎是ddd中长期存在的一个bug。许多人报告了这个问题,但似乎还没有人解决它。

我的代码在ddd中未显示的原因是我在编译时没有使用-g选项。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接