[petsc-users] Segmentation fault when using matlab interface

De Groof, Vincent Vincent.De-Groof at uibk.ac.at
Fri Aug 17 10:25:47 CDT 2012


Well, basically the simplest program I have the problem with is initializing and finalizing petsc.

% Set environment variables.
setenv('PETSC_DIR', '/usr/local/petsc-3.3-p2/')
setenv('PETSC_ARCH','arch-linux2-c-debug')

% Call PETSc.
PetscInitialize();
PetscFinalize();


thanks.
________________________________
Von: De Groof, Vincent
Gesendet: Freitag, 17. August 2012 10:25
An: petsc-users at mcs.anl.gov
Betreff: Segmentation fault when using matlab interface

Hello,

I'm trying to use the Petsc objects directly from Matlab. However, when testing the examples in the /bin/matlab/classes/examples/tutorials-directory, I get a segmentation fault (core dump) error. Unfortunately, I don't get more information then this. After running some different situations, I know the following:
I ran matlab both with and without desktop. The only error message I get is the segmentation fault. Sometimes it doesn't give the segmentation error after running the example. If so, it will cause a segmentation fault upon entering the next command in the matlab shell. If I quit matlab immediately after running an example without segmentation fault, my unix shell will hang.


I know it's kind of vague, but this is all I know now. Any suggestions to look at to solve this problem?


thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120817/7c0f7b80/attachment.html>


More information about the petsc-users mailing list