有史以來第一次在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%確定我使用了正確的型號,而且我的電腦可以支持升級。
任何幫助調試,解決這個將非常讚賞。謝謝!
糟糕的內存可能會導致段錯誤 - 但這個問題對於本站來說是非常不合適的。 – antlersoft
調查dmesg,運行memtest。 –
聽起來像不好的記憶。至於編程相關的建議:絕不能100%確定。 – aib