473,289 Members | 2,091 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,289 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 3357
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",
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

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.