Previous Thread
Next Thread
Print Thread
ISAM-A PROTECTION VIOLATION #25486 30 Jul 08 07:23 AM
Joined: Nov 2007
Posts: 69
J
Jack Rupert Offline OP
Member
OP Offline
Member
J
Joined: Nov 2007
Posts: 69
On IBM AIX. Using ISAM-A, OPEN ISAMP'INDEXED eithout the 'wait'record'. Perform a GET'LOCKED again without the 'wait'record'. Leave the record locked on this job. Do the same on another job. I would expect the 'fstat' variable to be 'not available' (ISAM'NA) value on second job. Instead I receive an AlphaBasic error 23, 'protection violation'.

What's up with this? Confused?

Re: ISAM-A PROTECTION VIOLATION #25487 30 Jul 08 09:47 AM
Joined: Jun 2001
Posts: 11,945
J
Jack McGregor Online Content
Member
Online Content
Member
J
Joined: Jun 2001
Posts: 11,945
Sounds like an AIX-specific bug, caused by it returning an unexpected system errno value. I just checked A-Shell/Windows and A-Shell/Linux (both 5.1) and each returns FSTAT = -2 (ISAM_NA), as expected.

I'll take a look at the AIX implementation tonight and post a fix shortly.

Re: ISAM-A PROTECTION VIOLATION #25488 30 Jul 08 05:45 PM
Joined: Jun 2001
Posts: 11,945
J
Jack McGregor Online Content
Member
Online Content
Member
J
Joined: Jun 2001
Posts: 11,945
OK, problem resolved in A-Shell/AIX 5.0.999.9, which you can get from the Update Center, or from http://www.microsabio.net/dist/50rel/bin-aix/ash-5.0.999.9-aix-upd.tar.Z
The latest 5.0 notes are at http://www.microsabio.net/dist/50rel/ashdevnotes50.txt

As I suspected, the issue was a difference in the underlying system locking call fcntl() - under Linux it returns EAGAIN on a locking conflict, and under AIX it returns EACCES. I'm not sure when the problem was introduced, but it probably happened during the last general ISAM-A update several months ago.

I'll try to get the 5.1 version updated shortly. (There's a complication with 5.1 in that some other recent patches have not been finalized. If that's hanging you up, let me know and I'll make you a special interim version.)

Re: ISAM-A PROTECTION VIOLATION #25489 31 Jul 08 06:26 AM
A
Anonymous
Unregistered
Anonymous
Unregistered
A
Thanks for the fast fix.

We're using 5.0 and not 5.1

I'll download 5.0.999.9-aix today.

I'm told that for security none of our AIX boxes can see the internet, so I can't use the Update Center. So I download the BIN or the UPD files through windows and then move them across our intranet (192.xxx.xxx.xxx)

Re: ISAM-A PROTECTION VIOLATION #25490 31 Jul 08 07:05 AM
Joined: Nov 2007
Posts: 69
J
Jack Rupert Offline OP
Member
OP Offline
Member
J
Joined: Nov 2007
Posts: 69
Jack, you're the best. Thanks so much. I was worried about the 1.2 million $ project I have pledged to perform over the next year blowing up in my face. I am dependent on D-Isam (ISAM-A) being the tool.


Moderated by  Jack McGregor, Ty Griffin 

Powered by UBB.threads™ PHP Forum Software 7.7.3