Topic
No replies
SystemAdmin
SystemAdmin
228 Posts
ACCEPTED ANSWER

Pinned topic XBSA function failed to attach shared memory

‏2008-09-30T04:35:20Z |
I am testing an xbsa library with onbar to backup IDS 10.00.FC6W3. Running the test on 64-bit PPC machine with AIX 5.2. The call sequence went thro' BSAQueryApiVersion, BSAInit, BSABeginTxn and BSACreateObject without any problems. However, BSASendData fails since I am unable to attach shared memory identifier obtained from onbar.
Following is the log from my XBSA-library function BSASendData. (struct DataBlock32* obtained from OnBar=pstcData)-

Inside BSASendData..
DataBlock32::NumBytes..65543
DataBlock32::Buflen..4026593280
DataBlock32::HeaderBytes..117440512
DataBlock32::BufPointer..27
DataBlock32::ShareId..7791616
DataBlock32::ShareOffset..0
Failed to attach shared memory char* szBuff = (char*)shmat(pstcData->shareId, (void*)0, SHM_RDONLY);
Error No<22> EINVAL
returning BSA_RC_ABORT_SYSTEM_ERROR

Please help. Thanks in advance.