Segmentation Fault,怎么办???

自从某次运行了pacman -Syu更新了一次系统后,很多以前正常的程序就开始出现Segmentation Fault,我都快疯了。今天Yaourt也出现了,妈呀,我可怎么升级。

怎么办怎么办….

This entry was posted in Linux, 更新 and tagged , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

2 Comments

  1. .问号鱼
    Posted October 16, 2008 at 1:44 pm | Permalink

    Back to Ubuntu? :)

    [Reply]

  2. delphi1000
    Posted October 16, 2008 at 2:21 pm | Permalink

    Segmentation fault can also occur under following circumstances:
    a) A buggy program / command, which can be only fixed by applying patch.
    b) It can also appear when you try to access an array beyond the end of an array under C programming.
    c) Inside a chrooted jail this can occur when critical shared libs, config file or /dev/ entry missing.
    d) Sometime hardware or faulty memory or driver can also create problem.
    e) Maintain suggested environment for all computer equipment (overheating can also generate this problem).

    o debug this kind of error try one or all of the following techniques :
    Use gdb to track exact source of problem.
    Make sure correct hardware installed and configured.
    Always apply all patches and use updated system.
    Make sure all dependencies installed inside jail.
    Turn on core dumping for supported services such as Apache.
    Use strace which is a useful diagnostic, instructional, and debugging tool.
    Google and find out if there is a solution to problem.
    Fix your C program for logical errors such as pointer, null pointer, arrays and so on.
    Analyze core dump file generated by your system using gdb

    实际上就是用gdb去跟踪错误的原因….我觉得如此大范围的问题….可能就是出现在core dump上面….而且是应该某个通用库的问题….用gdb基本可以过滤出Segmentation fault的基本原因

    [Reply]

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*