I\'m designing a protocol (in C) to implement the layered OSI network structure, using cnet (http://www.csse.uwa.edu.au/cnet/). I\'m getting a SIGSEGV error at runtime, however cnet compiles my source
For this code: int i=0; char **mainp; for(i=0;i<2;++i) { mainp[i]=malloc(sizeof(char)*200); if(!scanf(\"%[^#],#\",mainp[i]))
int num_arrays; char *p[20]; char tempc; int i=0; do { p[i]=malloc(sizeof(int)); scanf(\"%s\",p[i]); tempc=*p[i];
It seems at least weird to me... The program runs normally.But after I call the enter() function for the 4th time,there is a segmentation fault!I would appreciate any help.
I have a qApp that generates a segmentation fault only when a breakpoint is inserted in the code (I can put it at different places) and only after 4-5 breakpoint stops.Do I have a problem with my code
I\'ve a php script that\'s started each minute from cron. It almos开发者_开发问答t always runs without any problem, except for about 10 times within 24h.
I\'m making a thread class to use as a wrapper for pthreads. I have a Queue class to use as a开发者_JAVA技巧 queue, but I\'m having trouble with it. It seems to allocate and fill the queue struct fine
I j开发者_如何学Cust finished a project for my cryptography class and it all seems to go well (mostly). Because the key is generated randomly, I wanted to ensure it would work for all keys. Anyway, I
I am just starting开发者_JAVA百科 out, but this piece of code is giving me a \'segmentation fault\' and I can\'t find out what\'s wrong with it:
While developing a SWIG wrapped C++ library for Ruby, we came across an unexplained crash during exception handling inside the C++ code.