Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 328672 - One issue related to privatedata in threads
Summary: One issue related to privatedata in threads
Status: CLOSED FIXED
Alias: None
Product: PTP
Classification: Tools
Component: SCI (show other bugs)
Version: unspecified   Edit
Hardware: Other Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Tu Hong Jun CLA
QA Contact:
URL:
Whiteboard:
Keywords: usability
Depends on:
Blocks:
 
Reported: 2010-10-26 01:24 EDT by rong li CLA
Modified: 2010-11-04 22:33 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.