PERFORCE change 152332 for review

Peter Wemm peter at FreeBSD.org
Sat Nov 1 15:58:48 PDT 2008


http://perforce.freebsd.org/chv.cgi?CH=152332

Change 152332 by peter at peter_overcee on 2008/11/01 22:58:20

	AARGH!!!!
	Fix the value of SIG_SETMASK in sigprocmask syscall.  (It is 2 on linux,
	3 on FreeBSD.)  This was duplicated rather than using #includes.
	
	This is responsible for the assertion failures on non-trivial code due to
	signals getting unblocked when they should have remained blocked for the
	interpreter-driven periodic polling to find them.

Affected files ...

.. //depot/projects/valgrind/coregrind/m_syswrap/syscall-amd64-freebsd.S#3 edit
.. //depot/projects/valgrind/coregrind/m_syswrap/syscall-x86-freebsd.S#6 edit

Differences ...

==== //depot/projects/valgrind/coregrind/m_syswrap/syscall-amd64-freebsd.S#3 (text+ko) ====

@@ -71,7 +71,7 @@
 */
 
 /* from vki_arch.h */	
-#define VKI_SIG_SETMASK	2
+#define VKI_SIG_SETMASK	3
 	
 .globl ML_(do_syscall_for_client_WRK)
 ML_(do_syscall_for_client_WRK):

==== //depot/projects/valgrind/coregrind/m_syswrap/syscall-x86-freebsd.S#6 (text+ko) ====

@@ -84,7 +84,7 @@
 */
 
 /* from vki_arch.h */	
-#define VKI_SIG_SETMASK	2
+#define VKI_SIG_SETMASK	3
 	
 /* QQQ translate syscall abi conventions */
 .globl ML_(do_syscall_for_client_WRK)


More information about the p4-projects mailing list