<div dir="ltr">On Tue, Oct 8, 2013 at 1:39 PM, Sonya Blade <span dir="ltr"><<a href="mailto:sonyablade2010@hotmail.com" target="_blank">sonyablade2010@hotmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">DEar All,<br>
<br>
I'm receiving the segmentation fault during the program run and this happens exactly at the <br>
SlepcInitialize function and I've no idea on what can be wrong, the error messages produced <br>
from compiler is as shown below. Any clue on what is wrong?<br></blockquote><div><br></div><div>Somehow the first argument is bogus instead of being the program name. Is this a C or Fortran</div><div>program?</div><div><br>
</div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
ORIGINAL CODE SNIPPET <br>
<br>
int main( int argc, char **argv )<br>
{<br>
Vec v0,vec,vec1,*evec,gamma,vec_test,result_vec; /* initial vector */<br>
Mat B, C, K, M, eigen_mat; /* operator matrix */<br>
EPS eps; /* eigenproblem solver context */<br>
const EPSType type;<br>
PetscInt N,m=15,nev,max_size,row,column,test_int,g_row,g_col;<br>
PetscErrorCode ierr;<br>
PetscScalar eigen_r,eigen_i,test_scalar, *vector_array,*vec1arr;<br>
PetscReal norm;<br>
double value,test;<br>
int i,j, counter, counter2;<br>
FILE *myfile;<br>
<br>
SlepcInitialize(&argc,&argv,NULL,NULL);<br>
<br>
<br>
<br>
ERROR MESSAGES <br>
<br>
At D:\TEST_FOLDER_asus\PROJECTS\CBFortran\Slepc_C\Slepc_Subspace\main.c:24<br>
Program received signal SIGSEGV, Segmentation fault.<br>
In strncat () (C:\Windows\SysWOW64\msvcrt.dll)<br>
217 /cygdrive/d/TEST_FOLDER_asus/petsc-3.4.2/src/sys/objects/options.c: No such file or directory.<br>
#2 0x0065f761 in PetscSetProgramName (name=0x7370652d <Address 0x7370652d out of bounds>) at /cygdrive/d/TEST_FOLDER_asus/petsc-3.4.2/src/sys/objects/options.c:217<br>
Debugger finished with status 0 </blockquote></div><br><br clear="all"><div><br></div>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>
-- Norbert Wiener
</div></div>