ba34 [Solved] python27 with SEM option (p1003b) in jail and FreeBSD 8.2 -> 9.0 - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Development > Userland Programming & Scripting

Userland Programming & Scripting C, Shell, Perl, Sed & Awk

Reply
 
Thread Tools Display Modes
  #1  
Old May 7th, 2012, 17:46
lahondes lahondes is offline
Junior Member
 
Join Date: May 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default python27 with SEM option (p1003b) in jail and FreeBSD 8.2 -> 9.0

Hi,

When we upgraded our Freebsd FreeBSD 8.2 to 9.0, we broke one of our python programs which use Pyro and depend on posix semaphores.

Now when building python2.7.3 through ports, choosing the SEM option in make config and building, semaphores do not work although they worked on 8.2 with the same settings.

In a jail:
Code:
# python
Python 2.7.3 (default, May  7 2012, 18:16:58) 
[GCC 4.2.1 20070719  [FreeBSD]] on freebsd9
Type "help", "copyright", "credits" or "license" for more information.
>>> from multiprocessing.queues import SimpleQueue
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/multiprocessing/queues.py", line 48, in <module>
    from multiprocessing.synchronize import Lock, BoundedSemaphore, Semaphore, Condition
  File "/usr/local/lib/python2.7/multiprocessing/synchronize.py", line 59, in <module>
    " function, see issue 3770.")
ImportError: This platform lacks a functioning sem_open implementation, therefore, the required
 synchronization primitives needed will not function, see issue 3770.
I have in sysctl:
Code:
security.jail.sysvipc_allowed=1
It works out of jails. I have tried to tweak another jail security parameter:
Code:
security.jail.param.allow.sysvipc=1
but it does not help.

I am also worried by the fact that some of my related sysctl settings do not seem to be taken into account:

/etc/sysctl.conf:
Code:
p1003_1b.sem_nsems_max=1000
# sysctl p1003_1b.sem_nsems_max
Code:
p1003_1b.sem_nsems_max: 0
and:

# sysctl p1003_1b.sem_nsems_max=1000
Code:
p1003_1b.sem_nsems_max: 0 -> 0
(the-w option gives the same result).

Last edited by DutchDaemon; May 7th, 2012 at 23:52. Reason: Thanks for ZERO effort. READ THE RULES -> http://forums.freebsd.org/showthread.php?t=11799
Reply With Quote
  #2  
Old May 8th, 2012, 08:02
lahondes lahondes is offline
Junior Member
 
Join Date: May 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default About the rules

I am really sorry about all the rules I have broken, I did not come across these posts you refer to in the signature at the end of my post. As for the different grammar errors, I do not write often in English and I focused on technical details. I have really tried to remember in the forum registration procedure where I missed these important rules and I could not find them out. I find that a great correction job was done and I am really sorry to have cause all this work. However, as a FreeBSD Forum newbie, I find the form of the remark a little rude.

I have been carefully repeating this issue about python, semaphore and jail, which I find quite challenging, at least for me, and I am slightly upset about the 'zero effort' at the end of my own post. Once again, however, I apologize for all the broken rules and I appreciate the seriousness and quality of the forum and will do my best to be up to it.

Raynald

Last edited by DutchDaemon; May 8th, 2012 at 23:11. Reason: The rules are in the signup email you received straight after registering. Ignore at your peril .. ;)
Reply With Quote
  #3  
Old May 8th, 2012, 09:31
lahondes lahondes is offline
Junior Member
 
Join Date: May 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default [solved] thanks to ezjail-admin but be carefull with update -U

So much for my pride: I have carefully checked my jail again and discovered that the base jail had not been updated using :

ezjail-admin update -u

The -U would not work. I re-read the man page and discovered that -U only works before installing and rebooting. To correct the base jail, I ran:

ezjail-admin install

Which installed a 9.0-RELEASE base jail. The compilation of python with SEM option did work then.

However, the message given by

ezjaiil-admin update -u

which says "no update necessary" is quite confusing in fact.

Apart from that, jails are very satisfying in general and ezjail-admin is a very simple and great system to maintain them.

Last edited by DutchDaemon; May 8th, 2012 at 23:10. Reason: Re-read: Proper formatting: http://forums.freebsd.org/showthread.php?t=8816
Reply With Quote
Reply

Tags
python sem jail 9.0

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Solved] Python27 failed to compile after upgrade to 9.0-RELEASE-i386 beafool Installation and Maintenance of FreeBSD Ports or Packages 11 February 17th, 2012 09:09
[Solved] Python27 checksum mismatch Grama Installation and Maintenance of FreeBSD Ports or Packages 4 July 24th, 2011 21:47
Why python27-2.7.2_1 does not compile ? guillaume Installation and Maintenance of FreeBSD Ports or Packages 3 July 12th, 2011 07:23
Ports constantly tries to rebuild/reinstall lang/python27 Grell Installation and Maintenance of FreeBSD Ports or Packages 2 May 18th, 2011 19:25
Upgrade from python26 to python27 didn't go well. How do I tell if it worked? bigtoque Installation and Maintenance of FreeBSD Ports or Packages 1 April 25th, 2011 02:56


All times are GMT +1. The time now is 12:20.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0