473,779 Members | 2,062 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

"sem_post: Invalid argument"

On a server the binary (red hat) installed python2.4 and also a
fresh compiled python2.5 spits "sem_post: Invalid argument".
What is this and how can this solved?

Robert

==============

server [~]# python2.4
sem_post: Invalid argument
sem_post: Invalid argument
sem_post: Invalid argument
sem_post: Invalid argument
sem_post: Invalid argument
sem_post: Invalid argument
sem_post: Invalid argument
sem_post: Invalid argument
sem_post: Invalid argument
sem_post: Invalid argument
sem_post: Invalid argument
sem_post: Invalid argument
sem_post: Invalid argument
sem_post: Invalid argument
sem_post: Invalid argument
Python 2.4.3 (#1, Jun 6 2006, 21:10:41)
[GCC 3.2.3 20030502 (Red Hat Linux 3.2.3-54)] on linux2
Type "help", "copyright" , "credits" or "license" for more information.
sem_post: Invalid argument
sem_post: Invalid argument
>>sem_post: Invalid argument
sem_post: Invalid argument
sem_post: Invalid argument
sem_post: Invalid argument
sem_post: Invalid argument
server [~]# uname -a
Linux server 2.4.34.1-p4-smp-bigmem-JWH #1 SMP Mon Mar 19 03:26:57
JST 2007 i686 i686 i386 GNU/Linux
server [~]#
Oct 25 '07 #1
4 3381
On Oct 25, 12:56 pm, robert <no-s...@not-existing.invali dwrote:
On a server the binary (red hat) installed python2.4 and also a
fresh compiled python2.5 spits "sem_post: Invalid argument".
What is this and how can this solved?
...
Python 2.4.3 (#1, Jun 6 2006, 21:10:41)
[GCC 3.2.3 20030502 (Red Hat Linux 3.2.3-54)] on linux2
...
server [~]# uname -a
Linux server 2.4.34.1-p4-smp-bigmem-JWH #1 SMP Mon Mar 19 03:26:57
JST 2007 i686 i686 i386 GNU/Linux
Are you sure you have compatible binaries? Or did you install a random
RPM without checking for dependencies?

Oct 25 '07 #2
Jonathan Gardner wrote:
On Oct 25, 12:56 pm, robert <no-s...@not-existing.invali dwrote:
>On a server the binary (red hat) installed python2.4 and also a
fresh compiled python2.5 spits "sem_post: Invalid argument".
What is this and how can this solved?
...
Python 2.4.3 (#1, Jun 6 2006, 21:10:41)
[GCC 3.2.3 20030502 (Red Hat Linux 3.2.3-54)] on linux2
...
server [~]# uname -a
Linux server 2.4.34.1-p4-smp-bigmem-JWH #1 SMP Mon Mar 19 03:26:57
JST 2007 i686 i686 i386 GNU/Linux

Are you sure you have compatible binaries? Or did you install a random
RPM without checking for dependencies?
Should be compatible - but I am not sure if the kernel was
recompiled on this machine. And at least the fresh ./configure'ed
and compiled py2.5, which yields the same problem, should be
maximum compatible. Maybe because this machine is a "smp-bigmem" ..

Robert
Oct 25 '07 #3
On Oct 25, 2:19 pm, robert <no-s...@not-existing.invali dwrote:
Jonathan Gardner wrote:
On Oct 25, 12:56 pm, robert <no-s...@not-existing.invali dwrote:
On a server the binary (red hat) installed python2.4 and also a
fresh compiled python2.5 spits "sem_post: Invalid argument".
What is this and how can this solved?
...
Python 2.4.3 (#1, Jun 6 2006, 21:10:41)
[GCC 3.2.3 20030502 (Red Hat Linux 3.2.3-54)] on linux2
...
server [~]# uname -a
Linux server 2.4.34.1-p4-smp-bigmem-JWH #1 SMP Mon Mar 19 03:26:57
JST 2007 i686 i686 i386 GNU/Linux
Are you sure you have compatible binaries? Or did you install a random
RPM without checking for dependencies?

Should be compatible - but I am not sure if the kernel was
recompiled on this machine. And at least the fresh ./configure'ed
and compiled py2.5, which yields the same problem, should be
maximum compatible. Maybe because this machine is a "smp-bigmem" ..
At this point, I would start digging into the error messages
themselves. Maybe a shout out to the developers of whatever code is
generating that error message. When you understand under what
conditions that error message is thrown, perhaps it will yield some
insight into what python is doing differently than everything else.

Oct 26 '07 #4
Jonathan Gardner wrote:
On Oct 25, 2:19 pm, robert <no-s...@not-existing.invali dwrote:
>Jonathan Gardner wrote:
>>On Oct 25, 12:56 pm, robert <no-s...@not-existing.invali dwrote:
On a server the binary (red hat) installed python2.4 and also a
fresh compiled python2.5 spits "sem_post: Invalid argument".
What is this and how can this solved?
...
Python 2.4.3 (#1, Jun 6 2006, 21:10:41)
[GCC 3.2.3 20030502 (Red Hat Linux 3.2.3-54)] on linux2
...
server [~]# uname -a
Linux server 2.4.34.1-p4-smp-bigmem-JWH #1 SMP Mon Mar 19 03:26:57
JST 2007 i686 i686 i386 GNU/Linux
Are you sure you have compatible binaries? Or did you install a random
RPM without checking for dependencies?
Should be compatible - but I am not sure if the kernel was
recompiled on this machine. And at least the fresh ./configure'ed
and compiled py2.5, which yields the same problem, should be
maximum compatible. Maybe because this machine is a "smp-bigmem" ..

At this point, I would start digging into the error messages
themselves. Maybe a shout out to the developers of whatever code is
generating that error message. When you understand under what
conditions that error message is thrown, perhaps it will yield some
insight into what python is doing differently than everything else.
In the Python2.4 sources just this piece causes the sem_post error
message:

void
PyThread_releas e_lock(PyThread _type_lock lock)
{
sem_t *thelock = (sem_t *)lock;
int status, error = 0;

dprintf(("PyThr ead_release_loc k(%p) called\n", lock));

status = sem_post(theloc k);
CHECK_STATUS("s em_post");
}

=======
ERRORS

The sem_post() function will fail if:

[EINVAL]
The sem does not refer to a valid semaphore.
=======
with EINVAL - to me the only remaining reason is somehow a wrong
sem_t memory layout - in the C compiler header file on this rented
server - though the lock was established ok!?? ...
Oct 27 '07 #5

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

Similar topics

12
7184
by: Yarco | last post by:
when doing fork in a loop: while(1) { tmp_sd = accept(sd, (struct sockaddr*)&tmp_sin, &len); if (tmp_sd == -1) { perror("accept"); exit(0); } //check client ip
3
7426
by: Martin | last post by:
Hi, I have an aspx page with two dropdownlist controls. I update the options in the second ddl based on selection made in the first. I do this with the ICallbackEventHandler interface, as per "Implementing Client Callbacks Without Postbacks in ASP.NET Web Pages" (http://msdn2.microsoft.com/en-us/library/ms178208.aspx) This works.
5
6289
by: jdircksen | last post by:
I have a table that keeps crashing. The only error message I get is "Invalid Argument". Each time, a single record will turn into "#Error". Each field says this in the row. When this happens, Access won't let me delete just that row, so I end up having to copy and paste all records into Excel (it won't let me export), deleting the #Error row, then importing it back into Access. It is a pain because I lose the data from that row and I have to...
1
8031
by: Java Guy | last post by:
I'm trying to view a web page. IE tells me there are (Java?) errors on the page. Here they are: Line: 15 Char: 7 Error: Wrong number of arguments or invalid propert assignment Code: 0 URL: http://(address.of.my.webcam):port/LiveView.html and
0
1638
by: AparnaKulkarni | last post by:
Hello, I m working with Templates in MS Word. I have established the user Template locations in Word with ".dot" file But after that I m getting error as "Invalid procedure call or argument (Error 5)" while opening any Word Document. Can anyone tell me about why it is coming like? I think that the problem is with the code in Project to be coming after Alt+F11,but still I can't trace that error. Thanks in advance
3
6195
by: Don M | last post by:
The code below works fine in IE7 and Firefox2 but gets an "Invalid Argument" error in IE7. I've tried quotes around "ShowContent" ( I've used double " and single ' ) but it doesn't work at all with quotes. Anyone know what's happening. Thanks. <body onload="javascript:setTimeout(ShowContent('success'),1000)"> function ShowContent(d) { document.getElementById(d).style.display = "block"; }
1
2149
by: jjelswick | last post by:
my daughter was sending pics of my grandaughters, i right clicked on them and saved them as a screensaver to look at daily(1st twin grandchildren) now i keep getting invalid argument error and can't do it anymore can someone tell me what to do please........
1
2814
by: eBob.com | last post by:
I have some code which is trying to determine where text will wrap in a custom text box (which Inherits from Control). It determines the number of characters which will fit in the first line, but then encounters an exception when it calls MeasureCharacterRanges to see if the next character, i.e. the one destined to become the first character of the second line, will fit. The message says only "Invalid parameter" - it does not say which...
9
4565
by: 200dogz | last post by:
Hi guys, I want to have a button which opens up a new window when pressed. <asp:Button ID="Button1" runat="server" Text="Open new window" /> ... Button1.Attributes.Add("OnClick",
0
9474
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10306
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10138
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10074
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8961
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5373
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5503
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4037
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 we have to send another system
3
2869
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.