Ticket #11 (defect)

Opened 1 year ago

Last modified 1 year ago

addrfield test is invalid

Status: closed (fixed)

Reported by: bonachea@cs.berkeley.edu Assigned to: apokayi
Priority: major Milestone:
Component: component1 Version: 1.0
Keywords: Cc:

The addrfield test includes code such as:

p = (int *) upc_addrfield(&A[SIZE*MYTHREAD]);

for(i=0; i<5; i++) {

if(p[i] != MYTHREAD)

This is an invalid use of upc_addrfield - the spec does not guarantee that it returns a value which is convertible to a valid pointer-to-local, and in many implementations (eg BUPC with pthreads) it does not.

Change History

09/06/07 16:32:08: Modified by sbahra

  • owner changed from somebody to apokayi.

09/20/07 05:05:48: Modified by apokayi

  • status changed from new to closed.
  • resolution set to fixed.

test case is dropped, according to spec return value of upc_addrfield is not defined