Skip to content

Commit

Permalink
Refs #85 #104. Disable my_bind to fix this segfault issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
xianyi committed May 7, 2012
1 parent 7f89ede commit e784654
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions segfaults.patch
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit e784654

Please sign in to comment.