Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 328672

Summary: One issue related to privatedata in threads
Product: [Tools] PTP Reporter: rong li <ronglli>
Component: SCIAssignee: Tu Hong Jun <tuhongj>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: ronglli
Version: unspecifiedKeywords: usability
Target Milestone: ---   
Hardware: Other   
OS: Linux   
Whiteboard:

Description rong li CLA 2010-10-26 01:24:03 EDT
Build Identifier: 1.0

The latest version of SCI includes new code libsci/privatedata.{cpp,hpp}. This appears to be an attempt at allowing each thread to have its own 'private' data supported through the pthread library. The big problem that this forces a severe constraint on SCIs API. When SCI_Initialize() is called, the private data of the calling thread will be initialized. When the same thread then calls the API, say SCI_Bcast(), it works fine. However, if any other user thread makes the call its private data will not have been initialized. The SCI will then operate on a NULL pointer.

Reproducible: Always
Comment 1 Tu Hong Jun CLA 2010-10-26 12:42:13 EDT
The fix has been checked in, Steve Cooper found this issue and provided most of the patch, thanks to him.
Comment 2 Greg Watson CLA 2010-11-04 15:19:40 EDT
Please close the bug if this issue is resolved.