Re: [PATCH RFC] fork: reduce chances for "address space is already occupied" errors

2019-04-26 Thread Corinna Vinschen
On Apr 24 17:09, Michael Haubenwallner wrote: > On 4/12/19 7:40 PM, Corinna Vinschen wrote: > > Hi Michael, > > > Nick Clifton, one of the binutils maintainers, made the following > > suggestion in PM: > > > > Allow the ld flag --enable-auto-image-base to take a filename as > > argument.> > >

Re: [PATCH RFC] fork: reduce chances for "address space is already occupied" errors

2019-04-24 Thread Michael Haubenwallner
On 4/12/19 7:40 PM, Corinna Vinschen wrote: > Hi Michael, > Nick Clifton, one of the binutils maintainers, made the following > suggestion in PM: > > Allow the ld flag --enable-auto-image-base to take a filename as > argument.> > The idea: The file is used by ld to generate the start address >

Re: [PATCH RFC] fork: reduce chances for "address space is already occupied" errors

2019-04-13 Thread Corinna Vinschen
On Apr 13 09:46, Achim Gratz wrote: > Corinna Vinschen writes: > > Nick Clifton, one of the binutils maintainers, made the following > > suggestion in PM: > > > > Allow the ld flag --enable-auto-image-base to take a filename as > > argument. > > > > The idea: The file is used by ld to generate the

Re: [PATCH RFC] fork: reduce chances for "address space is already occupied" errors

2019-04-13 Thread Achim Gratz
Corinna Vinschen writes: > Nick Clifton, one of the binutils maintainers, made the following > suggestion in PM: > > Allow the ld flag --enable-auto-image-base to take a filename as > argument. > > The idea: The file is used by ld to generate the start address > for the next built DLL. Mechanism:

Re: [PATCH RFC] fork: reduce chances for "address space is already occupied" errors

2019-04-12 Thread Corinna Vinschen
Hi Michael, On Apr 3 14:22, Corinna Vinschen wrote: > On Apr 3 11:18, Michael Haubenwallner wrote: > > On 4/1/19 5:56 PM, Corinna Vinschen wrote: > > > On Apr 1 16:56, Corinna Vinschen wrote: > > >> On Apr 1 16:28, Michael Haubenwallner wrote: > > >>> On 3/28/19 9:30 PM, Corinna Vinschen

Re: [PATCH RFC] fork: reduce chances for "address space is already occupied" errors

2019-04-09 Thread Michael Haubenwallner
On 4/8/19 7:09 PM, Achim Gratz wrote: > Michael Haubenwallner writes: >> Well... once installed, a dll may get in use quickly, because I can not >> require >> to shut down all Cygwin processes. So I need to rebase and register the dll >> in >> some staging directory before it is installed into

Re: [PATCH RFC] fork: reduce chances for "address space is already occupied" errors

2019-04-08 Thread Achim Gratz
Michael Haubenwallner writes: > Well... once installed, a dll may get in use quickly, because I can not > require > to shut down all Cygwin processes. So I need to rebase and register the dll > in > some staging directory before it is installed into it's final directory, hence > I'm about to

Re: [PATCH RFC] fork: reduce chances for "address space is already occupied" errors

2019-04-08 Thread Brian Inglis
On 2019-04-08 06:38, Michael Haubenwallner wrote: > On 4/3/19 2:26 PM, Corinna Vinschen wrote: >> On Apr 3 12:38, Michael Haubenwallner wrote: >>> Furthermore, with so called "Stacked Prefix", it is possible to have a >>> second >>> level of Gentoo Prefix, so what I'm after is some option to

Re: [PATCH RFC] fork: reduce chances for "address space is already occupied" errors

2019-04-08 Thread Michael Haubenwallner
On 4/3/19 2:28 PM, Achim Gratz wrote: > Michael Haubenwallner writes: >> Before I really can tell what I need regarding the rebase, I need to learn >> what >> exactly is recorded into the rebase database, and probably how the recorded >> data >> does influence the rebase procedure right now. >

Re: [PATCH RFC] fork: reduce chances for "address space is already occupied" errors

2019-04-08 Thread Michael Haubenwallner
On 4/3/19 2:26 PM, Corinna Vinschen wrote: > On Apr 3 12:38, Michael Haubenwallner wrote: >> Furthermore, with so called "Stacked Prefix", it is possible to have a second >> level of Gentoo Prefix, so what I'm after is some option to tell the rebase >> utility which database to record dll base

Re: [PATCH RFC] fork: reduce chances for "address space is already occupied" errors

2019-04-05 Thread Achim Gratz
E. Madison Bray writes: > However, I can see how this could be inconvenient for some Python > builds where you might have something within the setup.py script > (which, when building Python extension modules, is still usually used) > like (in pseudo-code): > > run_build_ext_command() >

Re: [PATCH RFC] fork: reduce chances for "address space is already occupied" errors

2019-04-05 Thread E. Madison Bray
On Thu, Mar 28, 2019 at 6:50 PM Achim Gratz wrote: > > Michael Haubenwallner writes: > > It will not help for conflicts between dlls within a single package while > > this > > package is built. I'm thinking of python modules built within the python > > package > > itself, where the just built

Re: [PATCH RFC] fork: reduce chances for "address space is already occupied" errors

2019-04-03 Thread Achim Gratz
Michael Haubenwallner writes: > Before I really can tell what I need regarding the rebase, I need to learn > what > exactly is recorded into the rebase database, and probably how the recorded > data > does influence the rebase procedure right now. Just where the DLL resides in the filesystem,

Re: [PATCH RFC] fork: reduce chances for "address space is already occupied" errors

2019-04-03 Thread Corinna Vinschen
On Apr 3 12:38, Michael Haubenwallner wrote: > Furthermore, with so called "Stacked Prefix", it is possible to have a second > level of Gentoo Prefix, so what I'm after is some option to tell the rebase > utility which database to record dll base addresses into, and which > multiple(!) >

Re: [PATCH RFC] fork: reduce chances for "address space is already occupied" errors

2019-04-03 Thread Corinna Vinschen
On Apr 3 11:18, Michael Haubenwallner wrote: > On 4/1/19 5:56 PM, Corinna Vinschen wrote: > > On Apr 1 16:56, Corinna Vinschen wrote: > >> On Apr 1 16:28, Michael Haubenwallner wrote: > >>> On 3/28/19 9:30 PM, Corinna Vinschen wrote: > can you please collect the base addresses of all DLLs

Re: [PATCH RFC] fork: reduce chances for "address space is already occupied" errors

2019-04-03 Thread Michael Haubenwallner
Hi Brian, hi Achim, Thanks a lot for your input! On 3/30/19 5:09 PM, Brian Inglis wrote: > On 2019-03-30 02:22, Achim Gratz wrote: >> Brian Inglis writes: >>> On 2019-03-29 14:23, Achim Gratz wrote: Brian Inglis writes: >> If you are packaging your own exes and dlls with your own local

Re: [PATCH RFC] fork: reduce chances for "address space is already occupied" errors

2019-04-03 Thread Michael Haubenwallner
On 4/1/19 5:56 PM, Corinna Vinschen wrote: > On Apr 1 16:56, Corinna Vinschen wrote: >> On Apr 1 16:28, Michael Haubenwallner wrote: >>> On 3/28/19 9:30 PM, Corinna Vinschen wrote: can you please collect the base addresses of all DLLs generated during the build, plus their size and

Re: [PATCH RFC] fork: reduce chances for "address space is already occupied" errors

2019-04-01 Thread Brian Inglis
On 2019-04-01 10:31, Michael Haubenwallner wrote: > > On 4/1/19 5:56 PM, Corinna Vinschen wrote: >> On Apr 1 16:56, Corinna Vinschen wrote: >>> On Apr 1 16:28, Michael Haubenwallner wrote: On 3/28/19 9:30 PM, Corinna Vinschen wrote: > can you please collect the base addresses of all

Re: [PATCH RFC] fork: reduce chances for "address space is already occupied" errors

2019-04-01 Thread Michael Haubenwallner
On 4/1/19 5:56 PM, Corinna Vinschen wrote: > On Apr 1 16:56, Corinna Vinschen wrote: >> On Apr 1 16:28, Michael Haubenwallner wrote: >>> On 3/28/19 9:30 PM, Corinna Vinschen wrote: can you please collect the base addresses of all DLLs generated during the build, plus their size and

Re: [PATCH RFC] fork: reduce chances for "address space is already occupied" errors

2019-04-01 Thread Corinna Vinschen
On Apr 1 16:56, Corinna Vinschen wrote: > On Apr 1 16:28, Michael Haubenwallner wrote: > > Hi Corinna, > > > > On 3/28/19 9:30 PM, Corinna Vinschen wrote: > > > can you please collect the base addresses of all DLLs generated during > > > the build, plus their size and make a sorted list? It

Re: [PATCH RFC] fork: reduce chances for "address space is already occupied" errors

2019-04-01 Thread Corinna Vinschen
On Apr 1 16:28, Michael Haubenwallner wrote: > Hi Corinna, > > On 3/28/19 9:30 PM, Corinna Vinschen wrote: > > can you please collect the base addresses of all DLLs generated during > > the build, plus their size and make a sorted list? It would be > > interesting to know if the hash algorithm

Re: [PATCH RFC] fork: reduce chances for "address space is already occupied" errors

2019-04-01 Thread Michael Haubenwallner
Hi Corinna, On 3/28/19 9:30 PM, Corinna Vinschen wrote: > On Mar 28 12:48, Michael Haubenwallner wrote: >> On 3/28/19 10:58 AM, Corinna Vinschen wrote: >>> On Mar 28 10:17, Michael Haubenwallner wrote: As it is not some other dll being loaded at the colliding adress: any idea how to

Re: [PATCH RFC] fork: reduce chances for "address space is already occupied" errors

2019-03-30 Thread Brian Inglis
On 2019-03-30 02:22, Achim Gratz wrote: > Brian Inglis writes: >> On 2019-03-29 14:23, Achim Gratz wrote: >>> Brian Inglis writes: > If you are packaging your own exes and dlls with your own local Cygwin > distro, > you should point to your local utility directory with a path in a

Re: [PATCH RFC] fork: reduce chances for "address space is already occupied" errors

2019-03-30 Thread Achim Gratz
Brian Inglis writes: > On 2019-03-29 14:23, Achim Gratz wrote: >> Brian Inglis writes: If you are packaging your own exes and dlls with your own local Cygwin distro, you should point to your local utility directory with a path in a file under /var/lib/rebase/user.d/$USER

Re: [PATCH RFC] fork: reduce chances for "address space is already occupied" errors

2019-03-29 Thread Brian Inglis
On 2019-03-29 14:23, Achim Gratz wrote: > Brian Inglis writes: >>> If you are packaging your own exes and dlls with your own local Cygwin >>> distro, >>> you should point to your local utility directory with a path in a file under >>> /var/lib/rebase/user.d/$USER for each Cygwin userid on each

Re: [PATCH RFC] fork: reduce chances for "address space is already occupied" errors

2019-03-29 Thread Achim Gratz
Brian Inglis writes: > Achim, thanks for the clarifications; could you please comment on the > suggested > approach for handling local production dlls and exes, or explain the best > approach for migrating from test to prod and handling rebase on target > systems? I'm not quite sure what you

Re: [PATCH RFC] fork: reduce chances for "address space is already occupied" errors

2019-03-29 Thread Brian Inglis
On 2019-03-29 01:15, Achim Gratz wrote: > Brian Inglis writes: >> File list my-dlls.txt is your local test rebase db listing all your >> test dlls. > > I think Michael got confused by your usage of "db" here. This is in > fact just a listing of all the DLL to operate on, not the rebase >

Re: [PATCH RFC] fork: reduce chances for "address space is already occupied" errors

2019-03-29 Thread Achim Gratz
Brian Inglis writes: > File list my-dlls.txt is your local test rebase db listing all your > test dlls. I think Michael got confused by your usage of "db" here. This is in fact just a listing of all the DLL to operate on, not the rebase database (which won't be changed at all by an oblivious

Re: [PATCH RFC] fork: reduce chances for "address space is already occupied" errors

2019-03-28 Thread Brian Inglis
On 2019-03-28 10:48, Michael Haubenwallner wrote: > On 3/28/19 4:19 PM, Brian Inglis wrote: >> On 2019-03-28 08:59, Michael Haubenwallner wrote: >>> On 3/27/19 8:59 PM, Achim Gratz wrote: Michael Haubenwallner writes: > As far as I understand, rebasing is about touching already installed

Re: [PATCH RFC] fork: reduce chances for "address space is already occupied" errors

2019-03-28 Thread Corinna Vinschen
Michael, On Mar 28 12:48, Michael Haubenwallner wrote: > On 3/28/19 10:58 AM, Corinna Vinschen wrote: > > On Mar 28 10:17, Michael Haubenwallner wrote: > >> As it is not some other dll being loaded at the colliding adress: any > >> idea how to find out _what_ is allocated there (in the forked

Re: [PATCH RFC] fork: reduce chances for "address space is already occupied" errors

2019-03-28 Thread Achim Gratz
Michael Haubenwallner writes: > It will not help for conflicts between dlls within a single package while this > package is built. I'm thinking of python modules built within the python > package > itself, where the just built modules are used within the very build process. > Not > sure if

Re: [PATCH RFC] fork: reduce chances for "address space is already occupied" errors

2019-03-28 Thread Michael Haubenwallner
On 3/28/19 4:19 PM, Brian Inglis wrote: > On 2019-03-28 08:59, Michael Haubenwallner wrote: >> On 3/27/19 8:59 PM, Achim Gratz wrote: >>> Michael Haubenwallner writes: As far as I understand, rebasing is about touching already installed dlls as well, which would require to restart all

Re: [PATCH RFC] fork: reduce chances for "address space is already occupied" errors

2019-03-28 Thread Corinna Vinschen
On Mar 28 16:02, Michael Haubenwallner wrote: > On 3/28/19 10:15 AM, Corinna Vinschen wrote: > > On Mar 28 09:34, Michael Haubenwallner wrote: > >> Hi Corinna, > >> > >> On 3/27/19 10:16 AM, Corinna Vinschen wrote: > >>> On Mar 27 09:26, Michael Haubenwallner wrote: > On 3/26/19 7:28 PM,

Re: [PATCH RFC] fork: reduce chances for "address space is already occupied" errors

2019-03-28 Thread Brian Inglis
On 2019-03-28 08:59, Michael Haubenwallner wrote: > Hi Achim, > > On 3/27/19 8:59 PM, Achim Gratz wrote: >> Michael Haubenwallner writes: >>> As far as I understand, rebasing is about touching already installed >>> dlls as well, which would require to restart all Cygwin processes. >>> As the

Re: [PATCH RFC] fork: reduce chances for "address space is already occupied" errors

2019-03-28 Thread Michael Haubenwallner
On 3/28/19 10:15 AM, Corinna Vinschen wrote: > On Mar 28 09:34, Michael Haubenwallner wrote: >> Hi Corinna, >> >> On 3/27/19 10:16 AM, Corinna Vinschen wrote: >>> On Mar 27 09:26, Michael Haubenwallner wrote: On 3/26/19 7:28 PM, Corinna Vinschen wrote: >>> Wait, let me understand what's going

Re: [PATCH RFC] fork: reduce chances for "address space is already occupied" errors

2019-03-28 Thread Michael Haubenwallner
Hi Achim, On 3/27/19 8:59 PM, Achim Gratz wrote: > Michael Haubenwallner writes: >> As far as I understand, rebasing is about touching already installed >> dlls as well, which would require to restart all Cygwin processes. >> As the problem is about some dll built during a larger build job, >>

Re: [PATCH RFC] fork: reduce chances for "address space is already occupied" errors

2019-03-28 Thread Corinna Vinschen
On Mar 28 12:48, Michael Haubenwallner wrote: > On 3/28/19 10:58 AM, Corinna Vinschen wrote: > > On Mar 28 10:17, Michael Haubenwallner wrote: > >> As it is not some other dll being loaded at the colliding adress: any > >> idea how to find out _what_ is allocated there (in the forked child), > >>

Re: [PATCH RFC] fork: reduce chances for "address space is already occupied" errors

2019-03-28 Thread Michael Haubenwallner
On 3/28/19 10:58 AM, Corinna Vinschen wrote: > On Mar 28 10:17, Michael Haubenwallner wrote: >> As it is not some other dll being loaded at the colliding adress: any >> idea how to find out _what_ is allocated there (in the forked child), >> to find out whether we can reserve these areas even more

Re: [PATCH RFC] fork: reduce chances for "address space is already occupied" errors

2019-03-28 Thread Corinna Vinschen
On Mar 28 10:17, Michael Haubenwallner wrote: > As it is not some other dll being loaded at the colliding adress: any > idea how to find out _what_ is allocated there (in the forked child), > to find out whether we can reserve these areas even more early? I'm not sure what addresses you're

Re: [PATCH RFC] fork: reduce chances for "address space is already occupied" errors

2019-03-28 Thread Michael Haubenwallner
On 3/28/19 9:34 AM, Michael Haubenwallner wrote: > On 3/27/19 10:16 AM, Corinna Vinschen wrote: >> On Mar 27 09:26, Michael Haubenwallner wrote: >>> On 3/26/19 7:28 PM, Corinna Vinschen wrote: On Mar 26 19:25, Corinna Vinschen wrote: > On Mar 26 18:10, Michael Haubenwallner wrote:

Re: [PATCH RFC] fork: reduce chances for "address space is already occupied" errors

2019-03-28 Thread Michael Haubenwallner
Hi Corinna, On 3/27/19 10:16 AM, Corinna Vinschen wrote: > On Mar 27 09:26, Michael Haubenwallner wrote: >> On 3/26/19 7:28 PM, Corinna Vinschen wrote: >>> On Mar 26 19:25, Corinna Vinschen wrote: On Mar 26 18:10, Michael Haubenwallner wrote: > Hi Corinna, > > as I do still

Re: [PATCH RFC] fork: reduce chances for "address space is already occupied" errors

2019-03-27 Thread Achim Gratz
Michael Haubenwallner writes: > As far as I understand, rebasing is about touching already installed > dlls as well, which would require to restart all Cygwin processes. > As the problem is about some dll built during a larger build job, > this is not something that feels useful to me. That's

Re: [PATCH RFC] fork: reduce chances for "address space is already occupied" errors

2019-03-27 Thread Corinna Vinschen
Hi Michael, On Mar 27 09:26, Michael Haubenwallner wrote: > Hi Corinna, > > On 3/26/19 7:28 PM, Corinna Vinschen wrote: > > On Mar 26 19:25, Corinna Vinschen wrote: > >> Hi Michael, > >> > >> > >> Redirected to cygwin-patches... > >> > >> > >> On Mar 26 18:10, Michael Haubenwallner wrote: > >>>

Re: [PATCH RFC] fork: reduce chances for "address space is already occupied" errors

2019-03-27 Thread Michael Haubenwallner
Hi Corinna, On 3/26/19 7:28 PM, Corinna Vinschen wrote: > On Mar 26 19:25, Corinna Vinschen wrote: >> Hi Michael, >> >> >> Redirected to cygwin-patches... >> >> >> On Mar 26 18:10, Michael Haubenwallner wrote: >>> Hi Corinna, >>> >>> as I do still encounter fork errors (address space needed by

Re: [PATCH RFC] fork: reduce chances for "address space is already occupied" errors

2019-03-26 Thread Corinna Vinschen
On Mar 26 19:25, Corinna Vinschen wrote: > Hi Michael, > > > Redirected to cygwin-patches... > > > On Mar 26 18:10, Michael Haubenwallner wrote: > > Hi Corinna, > > > > as I do still encounter fork errors (address space needed by is > > already occupied) with dynamically loaded dlls (but

Re: [PATCH RFC] fork: reduce chances for "address space is already occupied" errors

2019-03-26 Thread Corinna Vinschen
Hi Michael, Redirected to cygwin-patches... On Mar 26 18:10, Michael Haubenwallner wrote: > Hi Corinna, > > as I do still encounter fork errors (address space needed by is > already occupied) with dynamically loaded dlls (but unrelated to > replaced dlls), one of them repeating even upon