[llvm-bugs] [Bug 43521] New: Assertion in Lexer.cpp:1120 ( Loc >= BufferStart && Loc <= BufferEnd && "Location out of range for this buffer!" )

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Oct 1 03:06:49 PDT 2019


https://bugs.llvm.org/show_bug.cgi?id=43521

            Bug ID: 43521
           Summary: Assertion in Lexer.cpp:1120 ( Loc >= BufferStart &&
                    Loc <= BufferEnd && "Location out of range for this
                    buffer!" )
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: jif at google.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org,
                    neeilans at live.com, richard-llvm at metafoo.co.uk

Created attachment 22612
  --> https://bugs.llvm.org/attachment.cgi?id=22612&action=edit
run script

While building c++ for fuchsia I hit the following assertion:

../../src/ledger/bin/tests/integration/ledger_app_instance_factory_integration.cc:225:74:
error: member reference type 'ledger::Environment *' is a pointer; did you mean
to use '->'?
            std::move(overnet), std::move(user_id_provider),
environment_.random());
                                                             ~~~~~~~~~~~~^
                                                                         ->
clang++: /b/s/w/ir/k/llvm-project/clang/lib/Lex/Lexer.cpp:1120:
clang::SourceLocation clang::Lexer::getSourceLocation(const char *, unsigned
int) const: Assertion `Loc >= BufferStart && Loc <= BufferEnd && "Location out
of range for this buffer!"' failed.
clang++: error: unable to execute command: Aborted
clang++: error: clang frontend command failed due to signal (use -v to see
invocation)
Fuchsia clang version 10.0.0
(https://fuchsia.googlesource.com/a/third_party/llvm-project
47712383c9c72bd3d62291f1a5306b60e92c9921) (based on LLVM 10.0.0svn)
Target: x86_64-unknown-fuchsia
Thread model: posix
InstalledDir: ../../prebuilt/third_party/clang/linux-x64/bin
clang++: note: diagnostic msg: PLEASE submit a bug report to
https://bugs.llvm.org/ and include the crash backtrace, preprocessed source,
and associated run script.
clang++: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang++: note: diagnostic msg:
clang-crashreports/ledger_app_instance_factory_integration-5c30e8.cpp
clang++: note: diagnostic msg:
clang-crashreports/ledger_app_instance_factory_integration-5c30e8.sh
clang++: note: diagnostic msg:

********************

I couldn't attach the ledger_app_instance_factory_integration-5c30e8.cpp
because it's 15MB, so here's a link to it:
https://drive.google.com/file/d/1-hFu1699Fk99VfasYNUzBE6rfOtEKUZZ/view?usp=sharing

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20191001/3b42ed96/attachment.html>


More information about the llvm-bugs mailing list