[LLVMbugs] [Bug 12495] New: PhysReg != NO_PHYS_REG && "Instruction uses unmapped VirtReg"

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Apr 8 02:38:57 PDT 2012


http://llvm.org/bugs/show_bug.cgi?id=12495

             Bug #: 12495
           Summary: PhysReg != NO_PHYS_REG && "Instruction uses unmapped
                    VirtReg"
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Common Code Generator Code
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: wendling at apple.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


When trying to build WebKit, I ran across this bug:

$ /Users/void/llvm/llvm-opt.obj/Release+Asserts/bin/clang -x c++ -arch x86_64
-fmessage-length=0 -fdiagnostics-print-source-range-info
-fdiagnostics-show-category=id -fdiagnostics-parseable-fixits -stdlib=libc++
-Wno-trigraphs -fno-exceptions -fno-rtti -fpascal-strings -O2 -Werror
-Wmissing-prototypes -Wno-return-type -Wnon-virtual-dtor -Wparentheses -Wswitch
-Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-shorten-64-to-32
-Wnewline-eof -Wno-c++0x-extensions -DNDEBUG -DENABLE_3D_RENDERING
-DENABLE_BLOB -DENABLE_CHANNEL_MESSAGING -DENABLE_CSS_FILTERS
-DENABLE_CSS_GRID_LAYOUT -DENABLE_DASHBOARD_SUPPORT -DENABLE_DETAILS
-DENABLE_FILTERS -DENABLE_FULLSCREEN_API -DENABLE_GEOLOCATION
-DENABLE_HIGH_DPI_CANVAS -DENABLE_ICONDATABASE -DENABLE_JAVASCRIPT_DEBUGGER
-DENABLE_LEGACY_NOTIFICATIONS -DENABLE_MATHML -DENABLE_METER_TAG
-DENABLE_MUTATION_OBSERVERS -DENABLE_NOTIFICATIONS -DENABLE_PROGRESS_TAG
-DENABLE_REQUEST_ANIMATION_FRAME -DENABLE_SHARED_WORKERS -DENABLE_SQL_DATABASE
-DENABLE_SVG -DENABLE_SVG_DOM_OBJC_BINDINGS -DENABLE_SVG_FONTS
-DENABLE_TEXT_NOTIFICATIONS_ONLY -DENABLE_VIDEO -DENABLE_VIDEO_TRACK
-DENABLE_WEBGL -DENABLE_WEB_AUDIO -DENABLE_WEB_SOCKETS -DENABLE_WORKERS
-DENABLE_XSLT -DWEBKIT_VERSION_MIN_REQUIRED=WEBKIT_VERSION_LATEST -fasm-blocks
-mmacosx-version-min=10.7 -gdwarf-2 -fvisibility-inlines-hidden
-fno-threadsafe-statics -Wno-sign-conversion
-I/Users/void/llvm/WebKit/llvm/WebKit/WebKitBuild/WebCore.build/Release/WebCore.build/WebCore.hmap
-I/Users/void/llvm/WebKit/llvm/WebKit/WebKitBuild/Release/include
-IForwardingHeaders -Iicu -I/usr/include/libxslt -I/usr/include/libxml2
-I/Users/void/llvm/WebKit/llvm/WebKit/WebKitBuild/Release/DerivedSources/WebCore
-I/Users/void/llvm/WebKit/llvm/WebKit/WebKitBuild/Release/usr/local/include
-I/Users/void/llvm/WebKit/llvm/WebKit/WebKitBuild/WebCore.build/Release/WebCore.build/DerivedSources/x86_64
-I/Users/void/llvm/WebKit/llvm/WebKit/WebKitBuild/WebCore.build/Release/WebCore.build/DerivedSources
-Wall -Wextra -Wcast-qual -Wchar-subscripts -Wextra-tokens -Wformat=2
-Winit-self -Wmissing-format-attribute -Wmissing-noreturn -Wpacked
-Wpointer-arith -Wredundant-decls -Wundef -Wwrite-strings -Wglobal-constructors
-Wexit-time-destructors -c /Users/void/llvm/WebKit/llvm/AnimationBase.ii

Assertion failed: (PhysReg != NO_PHYS_REG && "Instruction uses unmapped
VirtReg"), function rewrite, file
/Users/void/llvm/llvm-tot.src/lib/CodeGen/VirtRegMap.cpp, line 139.0  clang    
        0x0000000105899572 _ZL15PrintStackTracePv + 341  clang            
0x0000000105899b69 _ZL13SignalHandleri + 7772  libsystem_c.dylib
0x00007fff8ed48cfa _sigtramp + 26
3  libsystem_c.dylib 0x00007f91cb6b6af0 _sigtramp + 18446743602279669264
4  clang             0x00000001058997b6 abort + 22
5  clang             0x0000000105899777 __assert_rtn + 55
6  clang             0x00000001053b55d2
llvm::VirtRegMap::rewrite(llvm::SlotIndexes*) + 2226
7  clang             0x0000000105487faf (anonymous
namespace)::RAGreedy::runOnMachineFunction(llvm::MachineFunction&) + 1247
8  clang             0x000000010543b58c
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 60
9  clang             0x0000000105838d1d
llvm::FPPassManager::runOnFunction(llvm::Function&) + 317
10 clang             0x0000000105838fab
llvm::FPPassManager::runOnModule(llvm::Module&) + 75
11 clang             0x0000000105839104
llvm::MPPassManager::runOnModule(llvm::Module&) + 292
12 clang             0x0000000105839682
llvm::PassManagerImpl::run(llvm::Module&) + 242
13 clang             0x000000010583982d llvm::PassManager::run(llvm::Module&) +
13
14 clang             0x00000001044fe3ac
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*,
clang::BackendAction, llvm::raw_ostream*) + 4908
15 clang             0x00000001045e5022
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 594
16 clang             0x0000000104618706 clang::ParseAST(clang::Sema&, bool) +
390
17 clang             0x00000001045e40fb clang::CodeGenAction::ExecuteAction() +
1291
18 clang             0x00000001043de4d2
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 978
19 clang             0x00000001043c6033
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 3219
20 clang             0x00000001043bcf8d cc1_main(char const**, char const**,
char const*, void*) + 5453
21 clang             0x00000001043c21fa main + 682
22 clang             0x00000001043bba34 start + 52
Stack dump:

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list