[issue13697] python RLock implementation unsafe with signals

2015-01-28 Thread Lothsahn

Lothsahn added the comment:

I am using Python 2.6.5 (we will be upgrading to Python 2.7.9 soon) and I 
recently ran into this bug.

If I do any locking in a signal handler with RLocks, the entire system can 
deadlock.  I'm using this to serialize my IO so we don't have mismatched lines 
in our logs.  It looks like RLock was implemented in C in 3.2.  While I don't 
care about the performance benefits of that rewrite, having a non-deadlocking 
RLock implementation would be nice.

Not sure if this issue can be fixed in 2.7, but it would be nice.

C RLock implementation here:
http://bugs.python.org/issue3001

--
nosy: +Lothsahn

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13697
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16526] Python does not cross compile properly

2012-11-21 Thread Lothsahn

New submission from Lothsahn:

Python doesn't really support cross compilation.  I've created a patch for 
Python 2.7.3 which compiles nearly all of Python (except a couple modules).  
Patches for Python 3 are also included, but I didn't have anything to do with 
them.

My patch allows for cross compilation as well as the building of modules.

The only issue I'm aware of is that the ELFCLASS of the modules that are to be 
built must be the same.  This is because python uses sys.platform to determine 
which folder to generate the modules in, and so the sys.platform is always that 
of the host system.  When generating the modules, we should probably generate 
them twice, once for the host system (using sys.platform), and once for the 
cross-compiled system (using the cross-compiled system's sys.platform).

The patches can be found here:
http://randomsplat.com/id5-cross-compiling-python-for-embedded-linux.html

Given the rise of embedded systems, it's a big drawback that cross compiling 
Python is so difficult.

--
components: Build, Cross-Build
messages: 176080
nosy: Lothsahn
priority: normal
severity: normal
status: open
title: Python does not cross compile properly
type: compile error
versions: Python 2.7, Python 3.1, Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16526
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com