Skip to content

Segfault in dpotrf #352

Closed
Closed
@masuday

Description

@masuday

Hi all,
I met the segfault in dpotrf when the order of matrix was very large (50000 or more). The following is the message:

Program received signal SIGSEGV: Segmentation fault - invalid memory reference.

Backtrace for this error:

0 0x2B3D879F5E77

1 0x2B3D879F6444

2 0x2B3D883F191F

3 0x40EAB8 in dgemm_kernel at dgemm_kernel_4x8_sandy.S:416

The basic information is:

  • Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz (SandyBridge)
  • Linux x86_64; gcc/gfortran 4.7.2;
  • OpenBLAS 0.2.8 compiled with BINARY=64, DEBUG=1

The problem was not found when the OpenBLAS compiled with NO_LAPACK=1 and the reference LAPACK were used.

A sample program is:

program test
   implicit none
   integer,parameter :: m=50000
   real(8),allocatable :: A(:,:)
   integer :: i,j,info
   external DPOTRF,DPOTRI

   allocate(A(m,m))
   A = 0.0
   do j=1,m
      A(j,j) = 2.0
      do i=j+1,m
         A(i,j) = 1.0
      end do
   end do

   call DPOTRF('L',m,A,m,info) 
   call DPOTRI('L',m,A,m,info) 

   deallocate(A)
   stop
end program test

Thanks,
Masuday

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions