[lldb-dev] ninja check-lldb hangs on OSX

Todd Fiala tfiala at google.com
Thu Oct 2 08:57:05 PDT 2014


Separately, the check-lldb command uses the 'dosep.py' multicore test
runner --- which runs multiple tests at a time.

I've caught a few times where that test runner hits some unexpected lock-up
conditions on MacOSX.  Ideally we need to track down and fix those.  The
few times I've looked at it with sample graphs, it looks like some of the
connection logic is locking up.  It's been lower priority since nobody on
the cmake/configure build paths on MacOSX have been trying to run tests.
The two options from here would be (1) have somebody track down the
occasional lock-ups on multicore test runs on MacOSX, or (2) consider
having MacOSX check-lldb switch to run tests via dotest.py (sequential test
runs) instead of dosep.py (runs multiple test directories in parallel, one
worker process per core available).

-Todd

On Thu, Oct 2, 2014 at 7:40 AM, Todd Fiala <tfiala at google.com> wrote:

> (er 'loading all the *right* dynamic bits...)
>
> On Thu, Oct 2, 2014 at 7:39 AM, Todd Fiala <tfiala at google.com> wrote:
>
>> Hey Dawn,
>>
>> For what its worth, if you're attempting to test a cmake-based MacOSX
>> build, I have yet to get that to ever work.  There is a bunch of bundling
>> and code signing operations that occur that don't (AFAICT) happen in the
>> cmake build.  And so the tests can pick up the wrong frameworks and
>> whatnot.  If your line above does indeed look like it's working, it might
>> be worth taking a quick peek at one of the running tests to make sure it is
>> really loading all the write dynamic bits (i.e. ensure you're not getting
>> some kind of frankenstein test setup where you're using exes from your
>> build but system-wide/xcode frameworks or something).
>>
>> (And if you did find a way that works with ninja check-lldb, that's
>> awesome!)
>>
>> -Todd
>>
>> On Wed, Oct 1, 2014 at 9:49 PM, <dawn at burble.org> wrote:
>>
>>> Thanks Sean!  From this I was able to figure out that I could test
>>> the cmake+ninja build with:
>>>     ./dotest.py -v --executable <builddir>/bin/lldb
>>> Which I think tested things correctly, did it?  At least the failure
>>> counts were close when compared to the XCode built lldb results.
>>>
>>> Thanks!
>>> -Dawn
>>>
>>> On Wed, Oct 01, 2014 at 06:04:25PM -0700, Sean Callanan wrote:
>>> > Dawn,
>>> >
>>> > ninja check-lldb isn???t the way we typically run the test suite on
>>> Mac OS.
>>> > The way we do it is by running
>>> >
>>> > ./dotest.py -v
>>> >
>>> > in the test/ subdirectory.  The IDE ???Run Tests??? action does (as
>>> you surmised) nothing in our project.
>>> >
>>> > Sean
>>> _______________________________________________
>>> lldb-dev mailing list
>>> lldb-dev at cs.uiuc.edu
>>> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev
>>>
>>
>>
>>
>> --
>> Todd Fiala | Software Engineer | tfiala at google.com
>>
>>
>
>
> --
> Todd Fiala | Software Engineer | tfiala at google.com
>
>


-- 
Todd Fiala | Software Engineer | tfiala at google.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20141002/25f03a39/attachment.html>


More information about the lldb-dev mailing list