Segmentation fault using standard linux commands
For the first time ever, I am having trouble running standard Linux commands in Ubuntu. For instance, when I try to edit a file using VI (eg vi /path/to/file
) I get a segmentation fault error. Similarly for commands like curl -I http://some.domain.com
, etc. In the case of curl, I used gdb to read the core dump and got the following:
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 ?? ()
I recently put 4GB of memory into my computer and am wondering if this could be the problem. That said, I'm 100% sure I've used the right models AND that my computer can support the upgrade.
Any help in debugging, solving this would be VERY much appreciated. Thank you!
最有可能的是硬件 - 尝试bitwizard - Sig11的问题。
Couple things to try:
*) Check if you did a major upgrade. If you did, that might be causing it.
*) Remove and reinstall vim or any other simple utility. See if they fail. If they fail, look at what they have been linked to by using ldd. See if any of the libraries have a recent timestamp.
*) Look at the error stack from gdb. It tells you where it coredumped and in which library.
*) Reboot from the cd and see if the vi or any of the utilities fail.
One possibility might some environment variables you have set in your shell are badly affecting the programs your are trying to run. If you can reliably generate a core dump via a standard Linux command (eg, vi), then try running that command in a shell that has nothing defined. To create a shell that has a minimal set of variables defined, open a terminal as normal, and then enter:
env -i bash --norc
链接地址: http://www.djcxy.com/p/19070.html
上一篇: Ubuntu的
下一篇: 使用标准的linux命令进行分段错误