Tag Archives: About the

【error】Segmentation fault (core dumped)

Make, Make all, Make Runtest, make Pycaffe were all successfully installed in caffe
However, when making pytest, an error fault occurs (core Dumped) as follows

    [zs@gpu09 caffe]$ make pycaffemake: Nothing to be done for `pycaffe’.[zs@gpu09 caffe]$ make pytestcd python; Python-m unittest discover -s caffe/test/bin/sh: line 1: 10541 **Segmentation fault (core dumped)** pythonm unittest discover -s caffe/testmake: *** [pytest] Error 139

I have encountered Segmentation fault (Core Dumped) when I was writing my program, one dimension of the three tensors was too large, which caused the memory overflow.
But this time I was running the official program at Caffe, so I probably won’t use Pointers or illegal Pointers at will.
Explanation:
 
Core dump is also called a core dump.
When an exception occurs while a program is running and the program exits, the operating system stores the current memory status of the program in a core file called core dump.
While the program is running, errors like Segment faults are difficult because there is no stack and trace information output.
This type of error is often associated with pointer operations. Positioning can often be done in this way.

    [zsun@gpu09 caffe]$ulimit -a | grep ‘core file size’– dump core file size (blocks, -c) 0– 0 $ulimit -c unlimited- open dump core[zsun@gpu09 caffe]$ulimit -a | grep ‘core file size’core file size (blocks, -c) unlimited

 
Or – view all, as follows
 

    [zsun@gpu09 caffe]$ulimit-c unlimited[zsun@gpu09 caffe]$ulimit-acore file size (blocks, -c) unlimiteddata seg size (kbytes, -d) unlimited file size (blocks, -f) UnlimitedStack Size (KBytes, -s) 8192 Max User Processes (-U) 4096Virtual Memory (KBytes, -v) UnlimitedFile Locks (-x) Unlimited…

I’m going to make the core file again.
!!!!! Mine didn’t generate a core file!! There’s a blog post that goes something like this: “If there’s an error but there’s no Core dump, it’s because the system has banned the creation of core files.”  
 
 
And my current “Import Caffe” in Python code shows that there is no caffe module. Does this mean that caffe was not installed successfully?
 
 

【PTA:】 Error: class X is public should be declared in a file named X.java

(?: can not come out on the PTA error without looking at the _ (: з) <) _) I have been making this mistake in writing the topic on PTA today.
Error: class X is public should be declared in a file named X.java

Searched a lot of solutions, it is said that the class name and file name to change the same, obviously I changed is really the same duck. I also asked the strong brother big sister, how to change is reported this wrong (; ‘⌒ `)
.
Later, a classmate told me that it was the problem of PTA platform:

http://www.cnblogs.com/zhrb/p/6347738.html



The name of the class is the Main file names, at last it redone success.
a simple grinding by me so long, all want to broken head didn’t expect to be the problem (; ´ д `) ゞ
it is a good habit to look at the instructions