有史以来第一次在Ubuntu中运行标准Linux命令时遇到问题。例如,当我尝试使用VI编辑文件(例如vi /path/to/file)时,出现分段错误错误。同样,对于像curl -I http://some.domain.com等命令在卷曲的情况下,我用gdb读取核心转储,并得到如下:使用标准linux命令的分段错误
PROMPT>> gdb -c core-curl-11-0-0-4954-1351282891
GNU gdb (GDB) Red Hat Enterprise Linux (7.2-50.el6)
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
.
[New Thread 4954]
Core was generated by `/usr/bin/curl http://alfred.conviocloud.com'.
Program terminated with signal 11, Segmentation fault.
#0 0x00007feedbb74721 in ??()
我最近把4GB的内存进我的电脑,我想知道,如果这可能是问题。也就是说,我100%确定我使用了正确的型号,而且我的电脑可以支持升级。
任何帮助调试,解决这个将非常赞赏。谢谢!
2012-10-26
rberg
+3
糟糕的内存可能会导致段错误 - 但这个问题对于本站来说是非常不合适的。 –
+1
调查dmesg,运行memtest。 –
+0
听起来像不好的记忆。至于编程相关的建议:绝不能100%确定。 –