Skip to content

Commit e784654

Browse files
committed
Refs #85 #104. Disable my_bind to fix this segfault issue.
1 parent 7f89ede commit e784654

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

segfaults.patch

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ diff --git a/common_linux.h b/common_linux.h
1111
index b0381d9..40a94cb 100644
1212
--- a/common_linux.h
1313
+++ b/common_linux.h
14-
@@ -76,8 +76,8 @@ static inline int my_mbind(void *addr, unsigned long len, int mode,
14+
@@ -76,9 +76,8 @@ static inline int my_mbind(void *addr, unsigned long len, int mode,
1515
#endif
1616
#else
1717
//Fixed randomly SEGFAULT when nodemask==NULL with above Linux 2.6.34
1818
-// unsigned long null_nodemask=0;
1919
- return syscall(SYS_mbind, addr, len, mode, nodemask, maxnode, flags);
2020
+ unsigned long null_nodemask=0;
21-
+ return syscall(SYS_mbind, addr, len, mode, &nodemask, maxnode, flags);
21+
+ return 0;
2222
#endif
2323
}
2424

0 commit comments

Comments
 (0)