473,394 Members | 1,875 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

"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 3361
On Oct 25, 12:56 pm, robert <no-s...@not-existing.invalidwrote:
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.invalidwrote:
>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.invalidwrote:
Jonathan Gardner wrote:
On Oct 25, 12:56 pm, robert <no-s...@not-existing.invalidwrote:
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.invalidwrote:
>Jonathan Gardner wrote:
>>On Oct 25, 12:56 pm, robert <no-s...@not-existing.invalidwrote:
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_release_lock(PyThread_type_lock lock)
{
sem_t *thelock = (sem_t *)lock;
int status, error = 0;

dprintf(("PyThread_release_lock(%p) called\n", lock));

status = sem_post(thelock);
CHECK_STATUS("sem_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
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
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...
5
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...
1
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:...
0
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...
3
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...
1
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...
1
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...
9
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
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
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
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...
0
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...

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.