473,485 Members | 1,397 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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

Oct 18 '05 #1
1 4287
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

Oct 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
599
by: Hudson | last post by:
Hi, I have just recently build python 2.3.3 on an AIX 5.2 version using gcc v3.3.2 (i built python as root and installed gcc from a rpm file). When we run any python script as root they work. ...
3
19111
by: Yitzhak | last post by:
I am having "Permission denied" error while calling LogEvent method of WScript.Shell component. Basically, ASP page calls Windows Script Host Shell component to log events to the OS Application...
1
4440
by: Elie Grouchko | last post by:
Hi I am trying to shutdown a COM+ application from an ASP page implemented using VBScript. I get: Err.Number=0x46 Err.Source=Microsoft VBScript runtime error Err.Description=Permission...
12
2941
by: Vlad de Mille IV | last post by:
Well, as the subject says.... Briefly, when I try to run *any* wizard, I get a simple dialog, stating "Permission Denied", to which I can only click "OK". I suspect this is a windows (XP)...
6
4122
by: ASP.Confused | last post by:
I have an ASP.NET page writtein in VB that uses ADODB. I just had to force-install MDAC 2.8 after I tried to rollback to 2.6 (my web host uses this, and I wanted to be compatible with them.) I...
0
3517
by: ASP.Confused | last post by:
The old message looked a little stale, so I am re-posting it here. Anybody have any ideas of what I could do?!? The previous responses to this question are below. If you want to look at the...
1
7147
by: Jake Barnes | last post by:
I can not figure out the meaning of this error: Error: " nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "JS frame :: http://www.bluecasts.com/pdsIncludes/pdsAjax.js ::...
4
9723
by: Russell Warren | last post by:
I've been having a hard time tracking down a very intermittent problem where I get a "permission denied" error when trying to rename a file to something that has just been deleted (on win32). ...
4
7117
by: British | last post by:
This file is suppose to display "Welcome to the Zone!" and also write it to a text file instead i get an runtime error 0x800A0046 Permission Denied The Script: <html> <title>File Object</title>...
0
1689
by: shriyer | last post by:
Hey.. , when i try single stepping through the code, after a long time, it abruptly gives the error message .." permission denied ".. ??? what is it for? If i run it without singlestep, it gives...
0
7090
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6960
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7116
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7161
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7275
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
3058
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3063
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1376
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
595
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.