[petsc-users] SlepcInitialize Segmentation Fault
Matthew Knepley
knepley at gmail.com
Tue Oct 8 13:53:37 CDT 2013
On Tue, Oct 8, 2013 at 1:39 PM, Sonya Blade <sonyablade2010 at hotmail.com>wrote:
> DEar All,
>
> I'm receiving the segmentation fault during the program run and this
> happens exactly at the
> SlepcInitialize function and I've no idea on what can be wrong, the error
> messages produced
> from compiler is as shown below. Any clue on what is wrong?
>
Somehow the first argument is bogus instead of being the program name. Is
this a C or Fortran
program?
Matt
> ORIGINAL CODE SNIPPET
>
> int main( int argc, char **argv )
> {
> Vec v0,vec,vec1,*evec,gamma,vec_test,result_vec;
> /* initial vector */
> Mat B, C, K, M, eigen_mat; /* operator matrix */
> EPS eps; /* eigenproblem solver context */
> const EPSType type;
> PetscInt N,m=15,nev,max_size,row,column,test_int,g_row,g_col;
> PetscErrorCode ierr;
> PetscScalar eigen_r,eigen_i,test_scalar, *vector_array,*vec1arr;
> PetscReal norm;
> double value,test;
> int i,j, counter, counter2;
> FILE *myfile;
>
> SlepcInitialize(&argc,&argv,NULL,NULL);
>
>
>
> ERROR MESSAGES
>
> At D:\TEST_FOLDER_asus\PROJECTS\CBFortran\Slepc_C\Slepc_Subspace\main.c:24
> Program received signal SIGSEGV, Segmentation fault.
> In strncat () (C:\Windows\SysWOW64\msvcrt.dll)
> 217
> /cygdrive/d/TEST_FOLDER_asus/petsc-3.4.2/src/sys/objects/options.c: No such
> file or directory.
> #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
> Debugger finished with status 0
--
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20131008/e3144874/attachment.html>
More information about the petsc-users
mailing list