diff options
author | Xianyi Zhang <xianyi@iscas.ac.cn> | 2012-05-07 16:38:44 +0800 |
---|---|---|
committer | Xianyi Zhang <xianyi@iscas.ac.cn> | 2012-05-07 16:41:22 +0800 |
commit | e7846547be05ad548e748e09403eeee5ca5e7a24 (patch) | |
tree | f7c4fc7dfb2c6357314ae1faa8c96b3744417c65 | |
parent | 7f89edee3efce16b3a6db1a4382b432770acee21 (diff) | |
download | openblas-e7846547be05ad548e748e09403eeee5ca5e7a24.tar.gz openblas-e7846547be05ad548e748e09403eeee5ca5e7a24.tar.bz2 openblas-e7846547be05ad548e748e09403eeee5ca5e7a24.zip |
Refs #85 #104. Disable my_bind to fix this segfault issue.
-rw-r--r-- | segfaults.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/segfaults.patch b/segfaults.patch index 9585fa04b..f68d0438d 100644 --- a/segfaults.patch +++ b/segfaults.patch @@ -11,14 +11,14 @@ diff --git a/common_linux.h b/common_linux.h index b0381d9..40a94cb 100644 --- a/common_linux.h +++ b/common_linux.h -@@ -76,8 +76,8 @@ static inline int my_mbind(void *addr, unsigned long len, int mode, +@@ -76,9 +76,8 @@ static inline int my_mbind(void *addr, unsigned long len, int mode, #endif #else //Fixed randomly SEGFAULT when nodemask==NULL with above Linux 2.6.34 -// unsigned long null_nodemask=0; - return syscall(SYS_mbind, addr, len, mode, nodemask, maxnode, flags); + unsigned long null_nodemask=0; -+ return syscall(SYS_mbind, addr, len, mode, &nodemask, maxnode, flags); ++ return 0; #endif } |