Re: libxml2 2.9.10 and Hang after Testing parser : 61 of 70 functions

Nick Wellnhofer via xml <[email protected]> Mon, 22 Mar 2021 11:10:04 +0100
Newsgroups gmane.comp.gnome.lib.xml.general
Message-ID <[email protected]>
On 22/03/2021 05:21, Jeffrey Walton via xml wrote:
> I'm working on my old PowerMac G5, powerpc-apple-darwin9.8.0. I'm
> trying to build an updated OpenSSH. libxml2 2.9.10 is a distant
> dependency.

First of all, it's great to hear that libxml2 compiled at all and that most of 
the tests seem to pass.

> libxml2's make check is hanging at:
> 
>      ...
>      Testing nanoftp : 14 of 22 functions ...
>      Testing nanohttp : 13 of 17 functions ...
>      Testing parser : 61 of 70 functions ...
>      <hang here>
> 
> Does anyone have an idea what may be going sideways?

That's the 'testapi' test which causes the same problem on Windows. The test 
should complete eventually. It's just incredibly slow. One possible 
explanation is that somewhere an array is reallocated every time an element is 
appended. Some Linux allocators can handle repeated reallocations in linear 
time, but in general, you have to expect quadratic behavior. I just haven't 
found the time to investigate the issue.

Nick