Go Back   Velocity Reviews > Newsgroups > Python
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

Python - Python script produces "sem_trywait: Permission denied"

 
Thread Tools Search this Thread
Old 10-18-2005, 08:29 PM   #1
Default Python script produces "sem_trywait: Permission denied"


Sorry, I probably should have re-stated the problem:

We're using Python 2.3.5 on AIX 5.2, and get the follow error messages
from some of our code. I haven't yet tracked down exactly where it's
coming from:

sem_trywait: Permission denied
sem_wait: Permission denied
sem_post: Permission denied

We don't run these scripts as root, so I can't say whether they work as
root. I suspect they would, though, since root has permissions to do
anything.

--
----------------
Mark E. Hamilton
Orion International Technologies, Inc.
Sandia National Laboratory, NM.
505-844-7666



Mark E. Hamilton
  Reply With Quote
Old 10-19-2005, 05:33 AM   #2
Neal Norwitz
 
Posts: n/a
Default Re: Python script produces "sem_trywait: Permission denied"
Mark E. Hamilton wrote:
> Sorry, I probably should have re-stated the problem:
>
> We're using Python 2.3.5 on AIX 5.2, and get the follow error messages
> from some of our code. I haven't yet tracked down exactly where it's
> coming from:
>
> sem_trywait: Permission denied
> sem_wait: Permission denied
> sem_post: Permission denied


I'm I would be very concerned about these. Permission denied is
somewhat baffling to me. man sem_wait on Linux doesn't show EPERM as a
possible error condition.

The code that likely generates these messages is in
Python/thread_pthread.h near line 319.

Do you have lots of threads? Do you make heavy use of semaphores?
Maybe they are running out or something. Do you know if your locking
is really working?

> We don't run these scripts as root, so I can't say whether they work as
> root. I suspect they would, though, since root has permissions to do
> anything.


I'm not sure. I don't know what the Permission denied really means.

I wonder if there some weird compiler optimization thing going on. Not
that I'm blaming the compiler, it could well be a python problem. I
just don't know.

Do you have any memory debugging tools that you can run python under to
see if there's something weird python is doing? Valgrind should work
on PPC now, but you may need to apply a patch, I'm not sure PPC support
is mainline in v3. Other possibilities include purify if that works on
AIX or sentinel.

n



Neal Norwitz
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46