我的Ubuntu11.04服务器在互联网上有一些奇怪的行为,从几天以来。它在一些Java应用程序中运行得非常好。然后,突然它不再接受连接了。当我尝试ssh或http-连接我的服务器时,我不会得到响应,直到我得到超时。但平工作得很好。nmap还起作用:
Starting Nmap 5.21 ( http://nmap.org ) at 2011-08-29 10:52 CEST
Nmap scan report for ...
Host is up (0.020s latency).
Not shown: 994 closed ports
PORT STATE SERVICE
22/tc
我编写了一个非常简单的程序,它返回这样的错误:
C:\Program Files (x86)\Dev-Cpp\MinGW64\x86_64-w64-mingw32\lib\crt2.o In function `__tmainCRTStartup':
254 C:\crossdev\src\mingw-w64-v3-git\mingw-w64-crt\crt\crtexe.c (.text+0x1fe): relocation truncated to fit: R_X86_64_PC32 against symbol `__imp_Sleep' defined
当我在一段代码上运行valgrind时,它告诉我我的错误存在于这行代码中,但我似乎找不到它(如果类型为int,则为vector_size): float *rotations = (float *) calloc(vector_size*vector_size, sizeof(float)); 下面是valgrind的输出: Invalid write of size 4
==5488== at 0x109272: main (rotate_vector.c:20)
==5488== Address 0x4a47164 is 0 bytes after a block