Openposix: pthread create, testcase 1-6
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 11 lines · Mike Frysinger
Quoted 9 lines · Patrick Kirsch
I have a question on testcase pthread_create/1-1.c :
there is shared variable "int *ctrl = (int *) arg;" in function "hp_func" which should be protected throughpthread_mutexor similar, right? As I understand this shared variable should always be protected? So is there a reason why there are no pthread synchronisation calls?As you can see in the suggested temporary patch below, is it possible to add volatile-statement to the shared variables?
Quoted 6 lines
Quoted 1 line
I'm asking, because sometimes this testcase fails on s390x.
perhaps look at the generated assembly code and see if gcc is incorrectly optimizing away memory loads ? adding volatile sounds like you're ignoring a deeper problem ...
-mike
Hi Mike
This test case is released with volatile variable usage in LTP january release. I tested it for MIPS target, it FAILS giving error :
volatile int *ctrl = (int *) arg;
Can you please point out whats could be the exact issue?
Looking forward to your reply.
Thanks,
Vaibhav
Quoted 8 lines
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
Quoted 5 lines
_______________________________________________
Ltp-list mailing list
Ltp-list@...
https://lists.sourceforge.net/lists/listinfo/ltp-list
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list