Skip to content

Segmentation fault when built with CMake: alloc_mmap #1734

Closed
@xsacha

Description

@xsacha

When built via CMake, I seem to get segmentation faults in alloc_mmap

Linux Core i7 Haswell

Backtrace

#0  0x0000555555560448 in alloc_mmap ()
#1  0x0000555555560681 in blas_memory_alloc ()
#2  0x0000555555556dc3 in gotoblas_init ()

Test app:

#include <cblas.h>
#include <stdio.h>

int main()
{
  int i=0;
  double A[6] = {1.0,2.0,1.0,-3.0,4.0,-1.0};
  double B[6] = {1.0,2.0,1.0,-3.0,4.0,-1.0};
  double C[9] = {.5,.5,.5,.5,.5,.5,.5,.5,.5};
  cblas_dgemm(CblasColMajor, CblasNoTrans, CblasTrans,3,3,2,1,A, 3, B, 3,2,C,3);

  for(i=0; i<9; i++)
    printf("%lf ", C[i]);
  printf("\n");
}

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