- Code: Select all
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff125f700 (LWP 10323)]
0x00007ffff5f5c583 in sgglse_ () from /usr/lib64/liblapack.so.3
Here is how I'm calling it:
- Code: Select all
float A[8]={1,1,1,1, 1,3,-1,1, 1,1,1,1};
float c[4]={1,2,3,4};
float B[2]={1,1, 1,1, 1,-1};
float d[1]={7,4};
float x[3];
int lwork, info;
lwork=9;
real work[lwork];
F77_FUNC(sgglse, SGGLSE) (4,
3, 2, &A, 2, &B, 1,
&c, &d, &x, &work, lwork, &info);
This is based on a test case I found in http://www.netlib.org/utk/people/JackDo ... K-2005.pdf
The F77_FUNC is a macro that works without problems in other parts of the GROMACS code to call LAPACK functions.
The LAPACK version I'm using is lapack-devel 3.4.1-4.1.2-x86_64 from the OpenSuse 12.2 repository.
I even tried to build LAPACK from source with the debug flag (-g), but couldn't get cmake from the GROMACS code I'm working with to find it as no .so file was produced.
Any help tracing down this segmentation fault would be greatly appreciated.

