segmentation-fault

    -1熱度

    1回答

    我有簡單的C++程序來遍歷鏈表。 它在ideone中完美運行。 當我在我的mac終端中運行它時,它會引發分段錯誤。 當我從traverse函數中取消註釋//printf("Node");時,它完美運行。我無法理解這種行爲。 #include <iostream> #include <bits/stdc++.h> using namespace std; typedef struct node

    7熱度

    2回答

    我正試圖重新安裝我以前能夠安裝和使用的程序包。在我的電腦意外重新啓動後,我正在構建我自己的軟件包,然後我開始在加載rpgraph軟件包時遇到問題。所以我決定卸載它並重新安裝它。當我這樣做,我得到了以下錯誤: library(devtools) library(rJava) install_github("Albluca/rpgraph") Downloading GitHub repo

    3熱度

    3回答

    我已經爲過去的幾個小時試圖安裝RMongo包以下的輸出: > install.packages("RMongo") Installing package into ‘/usr/local/lib/R/site-library’ (as ‘lib’ is unspecified) --- Please select a CRAN mirror for use in this session -

    -6熱度

    3回答

    #include"iostream" using namespace std; class xxx { public: char **a; xxx(); ~xxx(); }; xxx :: xxx() { a=new char*; *a="10"; cout<<endl<<*a; // works fine

    -1熱度

    1回答

    在以下代碼中,當我取消註釋push指令時,我在運行可執行文件時收到錯誤Segmentation fault (core dumped)。我試圖找出錯誤原因,但找不到原因。 section .data ; Message contains app purpose msg db 'This app calculates 2^3+5^2',0x0a mlen equ $-msg msg1 db

    0熱度

    1回答

    我的代碼用於工作,但現在它開始給出seg故障錯誤。註釋掉input.push_back(Atom(temp [1],stod(temp [2]),stod(temp [3]),stod(temp [4]),stod(temp [8])))將停止它。我在Windows 10的bash上運行它,並將乙醇mol2文件作爲輸入。 #include <iostream> #include <fstream

    2熱度

    2回答

    我有一個非常基本的C++程序: - #include <iostream> #include <stdexcept> int main(int argc, const char * argv[]) { std::cout <<"Welcome .. "<<std::endl; try { throw std::runtime_error(std::string

    0熱度

    2回答

    我有一個形狀爲csr_matrix(40000000,1600000)。我用下面的方法來洗牌這個矩陣: index = np.arange(np.shape(csr_matrix)[0]) np.random.shuffle(index) csr_matrix_new = csr_matrix[index, :] 但得到的錯誤「段錯誤」。 我已經在小型csr_matrix上測試過這種洗牌方法,它工

    0熱度

    1回答

    如果我們將輸出作爲分段錯誤核心轉儲出來。它描述了一些入侵者的行爲。分段錯誤發生後會有什麼後果?

    -1熱度

    3回答

    我在C編程新手,這裏有非常簡單的代碼。 它編譯但不會運行,並出現分段錯誤。我正在尋找幾個小時,可能是錯誤的。現在我有一個不錯的主意段錯誤是什麼意思,但不是爲什麼它在我的一小段代碼顯示出來: 它應該打印出給定參數的USER_ID和GROUP_ID。 #include <unistd.h> #include <sys/types.h> #include <stdio.h> #include <p