[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#554218: perl: FTBFS on hppa: Thread creation failed



On Thu, Nov 05, 2009 at 06:01:00PM +0100, Domenico Andreoli wrote:
> On Thu, Nov 5, 2009 at 5:33 PM, Domenico Andreoli <cavokz@gmail.com> wrote:
> > On Tue, Nov 3, 2009 at 8:36 PM, Niko Tyni <ntyni@debian.org> wrote:
> >> Package: perl
> >> Version: 5.10.1-6
> >> Severity: serious
> >>
> >> perl/5.10.1-6 failed to build on paer, see
> >
> > it has just been successfully built on my hppa box. should i upload it?
> 
> not sure any more. the package is built but the success of t/stress.t is
> subject to the number of threads it makes.
> 
> trying with 500 threads the virtual memory goes up to 3Gb (i have 4Gb of RAM
> and a 32bit kernel, which gives ~3.6Gb of usable memory) then it fails to
> create new ones returning ENOMEM, which looks benign. with 350 threads the
> test goes nicely sucking almost 3Gb of virtual memory.
> 
> while 350 threads performing a simple sum consume al that virtual memory is
> not that clear to me as well as how the standard 50 threads of this test left
> paer out of memory.

Thanks for looking at this. Carlos already pointed me to the right
direction off-list (see the bug log), and upstream has made the test
more robust in newer versions.

The errno in the build failure is EAGAIN; it seems the NPTL implementation
returns that in case of resource starvation while LinuxThreads didn't.
No idea what resource it's running out of, apparently it's not memory.
In any case it should not make the test fail.

I'll try to get a new version uploaded this weekend with the improved
test, but in the meantime uploading a manual build is fine by me.
Possibly just retrying it on the buildds would do.
-- 
Niko Tyni   ntyni@debian.org


Reply to: