[petsc-users] Error when using PCDestroy

Barry Smith bsmith at mcs.anl.gov
Wed Sep 26 16:04:57 CDT 2012


On Sep 26, 2012, at 4:03 PM, TAY wee-beng <zonexo at gmail.com> wrote:

> Hi,
> 
> When I run a code in debug mode with -log_summary, there is no problem. However, in optimized mode, I encounter error "Caught signal number 11 SEGV: Segmentation Violation, probably memory access out of range"
> 
> It happens at :
> 
> call PCDestroy(pc_semi_x,ierr)
> 
> Is there any reason why it works well in debug mode but not in optimized mode?

   Memory corruption. Run first debug then optimized version under valgrind.

> 
> -- 
> Yours sincerely,
> 
> TAY wee-beng
> 



More information about the petsc-users mailing list