[petsc-users] Odd errors on MatCreate call
    John-Michael Fischer 
    fischej at umich.edu
       
    Thu Jul 29 14:34:55 CDT 2010
    
    
  
Hi, when I call MatCreate() in my program I get 
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000028
0x00000001003866a0 in PetscCookieRegister () 
which backtraces to (I've censored some of the filenames)
(gdb) backtrace
#0  0x00000001003866a0 in PetscCookieRegister () at XXXXXX
#1  0x00000001002c3a1e in MatMFFDInitializePackage () at XXXXXX
#2  0x00000001001443d9 in MatInitializePackage () at XXXXXX
#3  0x00000001002caff6 in MatCreate () at XXXXXX
My matcreate call is very standard, nothing fancy. 
If I create a test program (completely separate from this codebase) that only includes petscmat.h I can create, insert, and read from MATMPIDENSE matricies just fine.  Based on this test, I would assume PETSC is installed properly.  Any thoughts on why I would be getting errors creating a Mat in this program?  What is PetscCookieRegister about?
Thanks!
John-Michael Fischer
University of Michigan
Nuclear Engineering and Radiological Sciences
    
    
More information about the petsc-users
mailing list