segmentation-fault

    0热度

    1回答

    在我的android模拟器的数据库上运行sqlite3时,我试图运行select * from mytable where id = 4,但我得到了database is locked。 我今天早些时候能够访问它。我确定这是我的模拟器当前正在运行的数据库。

    -1热度

    1回答

    我该如何将它移植到Python 3? import random class Markov(object): def __init__(self, open_file): self.cache = {} self.open_file = open_file self.words = self.file_to_words() self.

    0热度

    1回答

    我的扩展使用Ruby库通过接口发送和接收命令和遥测包,并将它们提供给C文件传输库进行处理。 收到大量数据包后,我会得到这个段错误。这是GDB的回溯。 #0 search_method (defined_class_ptr=<synthetic pointer>, id=6177, klass=<optimized out>) at vm_method.c:567 #1 rb_me

    0热度

    2回答

    我试图在C中实现读者和作者问题的变体,变体是作者可以是增量或减量,他们应该保持运行计数。下面是我试图实现的代码,我得到错误“Segmentation Fault(核心转储)。我试图调试,并收到来自gdb - #0 0x0000000000400d84在main()中的反馈。 我会感激如果有人能解释这个给我/给我如何解决这个故障提示 感谢 #include <stdio.h> #include <

    0热度

    1回答

    我正在使用Eigen进行一些仿真。无论何时我甚至包括最小的过载特征运算(即使我有x=y其中x,y是Eigen::VectorXd具有相同尺寸),我都会得到分段错误错误(更准确地说Segmentation fault (core dumped),没有其他细节)。这很奇怪的是,只有在某些函数中有矩阵运算时才会发生这种情况。 让我告诉你: //main.cu #include <Eigen/Dense

    -2热度

    2回答

    #include <stdio.h> int main(void) { /* an array with 5 rows and 2 columns*/ char* a[5][2]; int y, p; for(y = 0; y < 5; y++) { for(p = 0; p < 2; p++) {

    0热度

    1回答

    这是问题陈述:codechef problem 我的代码是: #include<stdio.h> #include<string.h> char p[100]; char n[100][100]; int main() { int a,c=0; int x,y,z=0; scanf("%d",&a);

    -6热度

    2回答

    我没有得到什么不对这个 #include <cs50.h> #include <stdio.h> #include <ctype.h> int main() { // prints the initials of a name printf("Enter the name: "); string s = get_string(); int n= 0;

    -3热度

    1回答

    在使用它时尝试删除阵列时,我简化了以下功能,出现段错误。 float * MyService::innerFunction(MyClass& feature) { float* target = new float[1]; target[0] = feature.getValue(); target[1] = 1; return target; } f

    0热度

    1回答

    我在SO上发现了类似的问题,但解决方案表示删除了一组额外的括号。我这样做了,但它给了我一个新的错误 - “查询表达式中的”语法错误(缺少运算符)“。我没有看到另外一组括号,除了我在下面用星号标出的那一组外,我可能会删除。 (我关注的事实是解决方案设置了括号中的)。现在我只是删除了越来越多的括号,希望我偶然发现哪一组导致了问题。有任何想法吗? 编辑整个错误消息是“Microsoft Access不能