久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    <bdo id='lDnVJ'></bdo><ul id='lDnVJ'></ul>
    <i id='lDnVJ'><tr id='lDnVJ'><dt id='lDnVJ'><q id='lDnVJ'><span id='lDnVJ'><b id='lDnVJ'><form id='lDnVJ'><ins id='lDnVJ'></ins><ul id='lDnVJ'></ul><sub id='lDnVJ'></sub></form><legend id='lDnVJ'></legend><bdo id='lDnVJ'><pre id='lDnVJ'><center id='lDnVJ'></center></pre></bdo></b><th id='lDnVJ'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='lDnVJ'><tfoot id='lDnVJ'></tfoot><dl id='lDnVJ'><fieldset id='lDnVJ'></fieldset></dl></div>

    <small id='lDnVJ'></small><noframes id='lDnVJ'>

  • <tfoot id='lDnVJ'></tfoot>
  • <legend id='lDnVJ'><style id='lDnVJ'><dir id='lDnVJ'><q id='lDnVJ'></q></dir></style></legend>

      1. 是什么導致 Python 分段錯誤?

        What causes a Python segmentation fault?(是什么導致 Python 分段錯誤?)
        <i id='ESdrB'><tr id='ESdrB'><dt id='ESdrB'><q id='ESdrB'><span id='ESdrB'><b id='ESdrB'><form id='ESdrB'><ins id='ESdrB'></ins><ul id='ESdrB'></ul><sub id='ESdrB'></sub></form><legend id='ESdrB'></legend><bdo id='ESdrB'><pre id='ESdrB'><center id='ESdrB'></center></pre></bdo></b><th id='ESdrB'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='ESdrB'><tfoot id='ESdrB'></tfoot><dl id='ESdrB'><fieldset id='ESdrB'></fieldset></dl></div>
        <legend id='ESdrB'><style id='ESdrB'><dir id='ESdrB'><q id='ESdrB'></q></dir></style></legend>

                  <bdo id='ESdrB'></bdo><ul id='ESdrB'></ul>

                    <tbody id='ESdrB'></tbody>

                  <small id='ESdrB'></small><noframes id='ESdrB'>

                  <tfoot id='ESdrB'></tfoot>
                  本文介紹了是什么導致 Python 分段錯誤?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我正在 Python 中實現 Kosaraju 的強連通分量 (SCC) 圖搜索算法.

                  I am implementing Kosaraju's Strong Connected Component(SCC) graph search algorithm in Python.

                  該程序在小數據集上運行良好,但是當我在超大圖(超過 800,000 個節點)上運行它時,它顯示Segmentation Fault".

                  The program runs great on small data set, but when I run it on a super-large graph (more than 800,000 nodes), it says "Segmentation Fault".

                  這可能是什么原因?謝謝!

                  What might be the cause of it? Thank you!

                  附加信息:首先我在超大數據集上運行時遇到了這個錯誤:

                  Additional Info: First I got this Error when running on the super-large data set:

                  "RuntimeError: maximum recursion depth exceeded in cmp"
                  

                  然后我使用重置遞歸限制

                  Then I reset the recursion limit using

                  sys.setrecursionlimit(50000)
                  

                  但出現分段錯誤"

                  相信我,這不是一個無限循環,它在相對較小的數據上運行正確.可能是程序耗盡了資源?

                  Believe me it's not a infinite loop, it runs correct on relatively smaller data. It is possible the program exhausted the resources?

                  推薦答案

                  當 python extension(用 C 編寫)試圖訪問無法訪問的內存時會發生這種情況.

                  This happens when a python extension (written in C) tries to access a memory beyond reach.

                  您可以通過以下方式對其進行跟蹤.

                  You can trace it in following ways.

                  • 添加 sys.settrace 在代碼的第一行.
                  • 使用 Mark 在 this answer<中描述的 gdb/a>.. 在命令提示符下

                  • Add sys.settrace at the very first line of the code.
                  • Use gdb as described by Mark in this answer.. At the command prompt

                  gdb python
                  (gdb) run /path/to/script.py
                  ## wait for segfault ##
                  (gdb) backtrace
                  ## stack trace of the c code
                  

                  這篇關于是什么導致 Python 分段錯誤?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  How to bind a function to an Action from Qt menubar?(如何將函數綁定到 Qt 菜單欄中的操作?)
                  PyQt progress jumps to 100% after it starts(PyQt 啟動后進度躍升至 100%)
                  How to set yaxis tick label in a fixed position so that when i scroll left or right the yaxis tick label should be visible?(如何將 yaxis 刻度標簽設置在固定位置,以便當我向左或向右滾動時,yaxis 刻度標簽應該可見
                  `QImage` constructor has unknown keyword `data`(`QImage` 構造函數有未知關鍵字 `data`)
                  Change x-axis ticks to custom strings(將 x 軸刻度更改為自定義字符串)
                  How to show progress bar while saving file to excel in python?(如何在python中將文件保存為excel時顯示進度條?)

                      <legend id='0slCt'><style id='0slCt'><dir id='0slCt'><q id='0slCt'></q></dir></style></legend>
                    • <tfoot id='0slCt'></tfoot>

                    • <small id='0slCt'></small><noframes id='0slCt'>

                        <bdo id='0slCt'></bdo><ul id='0slCt'></ul>
                          • <i id='0slCt'><tr id='0slCt'><dt id='0slCt'><q id='0slCt'><span id='0slCt'><b id='0slCt'><form id='0slCt'><ins id='0slCt'></ins><ul id='0slCt'></ul><sub id='0slCt'></sub></form><legend id='0slCt'></legend><bdo id='0slCt'><pre id='0slCt'><center id='0slCt'></center></pre></bdo></b><th id='0slCt'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='0slCt'><tfoot id='0slCt'></tfoot><dl id='0slCt'><fieldset id='0slCt'></fieldset></dl></div>
                              <tbody id='0slCt'></tbody>
                            主站蜘蛛池模板: 久久不卡| 亚洲一区二区免费视频 | 久久国产精品一区二区 | 国产电影一区二区 | 免费99精品国产自在在线 | www.日韩 | 亚洲啪啪 | 99精品99| 精品三区| 一二三四在线视频观看社区 | 97国产一区二区精品久久呦 | 国产欧美日韩精品一区 | chengrenzaixian| 一区二区影院 | 日韩中文字幕第一页 | 亚洲区一| 国产亚洲一区二区在线观看 | 欧美日韩视频一区二区 | 精品欧美一区二区三区久久久 | 欧美在线视频a | av在线免费观看网站 | 国产精品久久久久久久免费观看 | xnxx 日本免费 | 黄色av网站在线观看 | www.日本精品 | 九九九久久国产免费 | 久久国| 一区二区视频在线观看 | 国产美女久久久 | 久久精品91久久久久久再现 | 久草网址| 欧美日韩亚| 韩日在线视频 | 亚洲欧美另类在线观看 | 色黄爽 | 国产精品视频在线观看 | 色综合色综合 | 国产www在线 | 精品麻豆剧传媒av国产九九九 | 亚洲伊人久久综合 | 国产精品亚洲精品 |