On 6 December 2017 at 01:54, Jason Molenda <jmole...@apple.com> wrote:
> It looks like the macos testsuite on the bot is broken with this -
>
> http://lab.llvm.org:8080/green/view/LLDB/job/lldb/3086/
>
> On my desktop with a recent clang, it works fine.  But it seems like every 
> test? most tests? are failing with
>
> error: parsing line table prologue at 0x00000000 (parsing ended around 
> 0x00000000
>
> messages now.
>
> When I run one test by hand on my system, I have the -fno-limit-debug-info 
> flag:
>
> ./dotest.py -t -v -v  
> ../packages//Python/lldbsuite/test/functionalities/breakpoint/auto_continue/
>
>
>
> stdout: 
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
>  -g -O0 -fno-builtin -arch x86_64  
> -I/Volumes/newwork/svn/lldb/packages/Python/lldbsuite/test/make/../../../../../include
>  -include 
> /Volumes/newwork/svn/lldb/packages/Python/lldbsuite/test/make/test_common.h 
> -I/Volumes/newwork/svn/lldb/packages/Python/lldbsuite/test/make/  
> -fno-limit-debug-info  -std=c99   -c -o main.o main.c
>
>
>
> I'm not sure if the bots are building against too new or too new a compiler - 
> if we're looking at a bug or it just does something weird when given 
> -fno-limit-debug-info?

I was able to reproduce this by running the tests against the
top-of-tree clang (which is what that bot does). It's not all tests
that break, just the ones using dSYM debug info.

While this patch is a reasonable first guess, it is actually *not* the
source of the breakage. The culprit is
<https://reviews.llvm.org/D38002>, which was present in the same
patchset. It seems this change makes clang emit different line table
headers. After that, dsymutil fails to process the files because it
detects a header mismatch (and lldb breaks because it cannot find the
line table or it is corrupt). I've cc'ed Paul in case he has any
insight.

Maybe dsymutil needs to be updated to handle the new line tables?

pl
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to