Re: [Python-Dev] Handling linker scripts reached when dynamically loading a module

2011-09-10 Thread Ben Wolfson
On Sat, Sep 10, 2011 at 4:35 PM, Howard B. Golden wrote: > > So, in Python, this is likely to only affect users calling packages > using ctypes. (This corresponds to GHCi loading an unversioned library, > e.g., "ghci -lm" which would load the current version of the math > library into the GHC inte

Re: [Python-Dev] Handling linker scripts reached when dynamically loading a module

2011-09-10 Thread Howard B. Golden
On Sun, 2011-09-11 at 00:39 +0200, Nadeem Vawda wrote: > I can confirm that libpthread.so (/usr/lib/x86_64-linux-gnu/libpthread.so) > is a linker script on my Ubuntu 11.04 install. This hasn't ever caused me > any problems, though. > > As for why distributions do this, here are the contents of the

Re: [Python-Dev] Handling linker scripts reached when dynamically loading a module

2011-09-10 Thread Nadeem Vawda
I can confirm that libpthread.so (/usr/lib/x86_64-linux-gnu/libpthread.so) is a linker script on my Ubuntu 11.04 install. This hasn't ever caused me any problems, though. As for why distributions do this, here are the contents of the script: /* GNU ld script Use the shared library, but

Re: [Python-Dev] Handling linker scripts reached when dynamically loading a module

2011-09-10 Thread Guido van Rossum
Odd. Let's see what other core devs say. On Sat, Sep 10, 2011 at 2:50 PM, Howard B. Golden wrote: > I don't know why, but some Linux distributions place scripts into .so > files instead of the actual binaries. This takes advantage of a feature > of GNU ld that it will process the script (which po

Re: [Python-Dev] Handling linker scripts reached when dynamically loading a module

2011-09-10 Thread Howard B. Golden
I don't know why, but some Linux distributions place scripts into .so files instead of the actual binaries. This takes advantage of a feature of GNU ld that it will process the script (which points to the actual binary) when it links the .so file. This feature works fine when you are linking a bin

Re: [Python-Dev] Handling linker scripts reached when dynamically loading a module

2011-09-10 Thread Guido van Rossum
Excuse me for asking a newbie question, but what are linker scripts and why are they important? I don't recall anyone ever having requested this feature before. --Guido On Wed, Sep 7, 2011 at 12:33 PM, Howard B. Golden wrote: > Hi, > > In Haskell I experienced a situation where dynamically loade

[Python-Dev] Handling linker scripts reached when dynamically loading a module

2011-09-10 Thread Howard B. Golden
Hi, In Haskell I experienced a situation where dynamically loaded modules were experiencing "invalid ELF header" errors. This was caused by the module names actually referring to linker scripts rather than ELF binaries. I patched the GHC runtime system to deal with these scripts. I noticed that t

Re: [Python-Dev] Multigigabyte memory usage in the OpenIndiana Buildbot

2011-09-10 Thread Antoine Pitrou
Le Sat, 10 Sep 2011 05:02:09 +0200, Jesus Cea a écrit : > > I have committed a few patches in the last hours to get my buildbots > "green", back again. The memory used was <500MB, compared with >4GB > before the "-j". > > Could you reconfigure my buildbots to be able to run all the six (2.7, > 3