Hi Frank,
Frank Liu wrote,

> Please see the attached sample code. 
> 
> If I  turn READERS and WRITERS to 0, the test works fine. 
> 
> Adding another thread in the process by setting a non-zero number to either 
> READERS or WRITER, the test program crashes due to the assertion at line 99. 

I think I found the reason for the problem.

Try attached patch,

best regards
 Waldemar
>From 650e6cbd0fccf8d20efc0844582934eae8da1f58 Mon Sep 17 00:00:00 2001
From: Waldemar Brodkorb <w...@openadk.org>
Date: Thu, 24 Nov 2016 04:14:20 +0100
Subject: [PATCH 1/2] arm: use common ret_ERRVAL

Signed-off-by: Waldemar Brodkorb <w...@openadk.org>
---
 libc/sysdeps/linux/arm/sysdep.h | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/libc/sysdeps/linux/arm/sysdep.h b/libc/sysdeps/linux/arm/sysdep.h
index 80bf9ec..8813f8e 100644
--- a/libc/sysdeps/linux/arm/sysdep.h
+++ b/libc/sysdeps/linux/arm/sysdep.h
@@ -137,9 +137,6 @@
 #define	PSEUDO_END_ERRVAL(name) \
   END (name)
 
-#undef ret_ERRVAL
-#define ret_ERRVAL PSEUDO_RET_NOERRNO
-
 #if defined NOT_IN_libc
 # define SYSCALL_ERROR __local_syscall_error
 #  define SYSCALL_ERROR_HANDLER					\
-- 
2.1.4

_______________________________________________
devel mailing list
devel@uclibc-ng.org
http://mailman.uclibc-ng.org/cgi-bin/mailman/listinfo/devel

Reply via email to