美文网首页实用操作整理
Python 脚本运行时Segmentation fault (

Python 脚本运行时Segmentation fault (

作者: sexy_cyber | 来源:发表于2018-07-18 09:45 被阅读20次

    问题如题描述,python 运行过程中直接导致python 解释器崩溃(不是异常,直接崩溃),下面简叙一下
    运行:

    ulimit -a
    

    core file size (blocks, -c) 0
    data seg size (kbytes, -d) unlimited
    scheduling priority (-e) 0
    file size (blocks, -f) unlimited
    pending signals (-i) 62876
    max locked memory (kbytes, -l) 64
    max memory size (kbytes, -m) unlimited
    open files (-n) 1024
    pipe size (512 bytes, -p) 8
    POSIX message queues (bytes, -q) 819200
    real-time priority (-r) 0
    stack size (kbytes, -s) 8192
    cpu time (seconds, -t) unlimited
    max user processes (-u) 62876
    virtual memory (kbytes, -v) unlimited
    file locks (-x) unlimited

    stack size果然有限制,改成没有限制

    ulimit -S -s unlimited
    
    改完以后
    
    

    stack size (kbytes, -s) unlimited

    OK, 至此问题解决

    相关文章

      网友评论

        本文标题:Python 脚本运行时Segmentation fault (

        本文链接:https://www.haomeiwen.com/subject/jtmppftx.html