[LLVMbugs] [Bug 14264] New: cc1as regression (165787:167287): "Expected to find -main-file-name" on valid input when -gdwarf-2 is used

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Nov 5 11:51:25 PST 2012


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

             Bug #: 14264
           Summary: cc1as regression (165787:167287): "Expected to find
                    -main-file-name" on valid input when -gdwarf-2 is used
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: LLVM Codegen
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: nicolasweber at gmx.de
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


This is happening while compiling a .S file in chromium. Reduced:

hummer:delta thakis$ cat foo.S
.macro switcher
        ljmp *0x38(%ecx)
.endmacro
        switcher NaClSwitchNoSSE, 0
hummer:delta thakis$
/Users/thakis/src/chrome-git/src/third_party/llvm-build/Release+Asserts/bin/clang
-c foo.S -gdwarf-2
0  clang             0x00000001016cb955 PrintStackTrace(void*) + 37
1  clang             0x00000001016cbd64 SignalHandler(int) + 564
2  libSystem.B.dylib 0x00007fff886681ba _sigtramp + 26
3  clang             0x00000001017d1b65
clang::StringLiteral::outputString(llvm::raw_ostream&)::Hex + 468133
4  clang             0x00000001011b008b (anonymous
namespace)::AsmParser::ParseStatement((anonymous
namespace)::ParseStatementInfo&) + 5355
5  clang             0x00000001011ab9b3 (anonymous
namespace)::AsmParser::Run(bool, bool) + 451
6  clang             0x0000000100055552 cc1as_main(char const**, char const**,
char const*, void*) + 8674
7  clang             0x0000000100056a35 main + 2261
8  clang             0x00000001000527c4 start + 52
Stack dump:
0.    Program arguments:
/Volumes/MacintoshHD2/src/chrome-git/src/third_party/llvm-build/Release+Asserts/bin/clang
-cc1as -triple x86_64-apple-macosx10.6.0 -filetype obj -g -o foo.o
/var/folders/++/++1Gyk++6+0++4RjPqRgNE++ojg/-Tmp-/foo-6Xf2NG.s 
1.    Program arguments: -triple x86_64-apple-macosx10.6.0 -filetype obj -g -o
foo.o /var/folders/++/++1Gyk++6+0++4RjPqRgNE++ojg/-Tmp-/foo-6Xf2NG.s 
0  clang             0x00000001016cb955 PrintStackTrace(void*) + 37
1  clang             0x00000001016cbd64 SignalHandler(int) + 564
2  libSystem.B.dylib 0x00007fff886681ba _sigtramp + 26
3  clang             0x00000001017d1b65
clang::StringLiteral::outputString(llvm::raw_ostream&)::Hex + 468133
4  clang             0x00000001011b008b (anonymous
namespace)::AsmParser::ParseStatement((anonymous
namespace)::ParseStatementInfo&) + 5355
5  clang             0x00000001011ab9b3 (anonymous
namespace)::AsmParser::Run(bool, bool) + 451
6  clang             0x0000000100055552 cc1as_main(char const**, char const**,
char const*, void*) + 8674
7  clang             0x0000000100056a35 main + 2261
8  clang             0x00000001000527c4 start + 52
clang: error: unable to execute command: Segmentation fault
clang: error: clang integrated assembler command failed due to signal (use -v
to see invocation)
clang version 3.2 (trunk 167287)
Target: x86_64-apple-darwin10.8.0
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang: note: diagnostic msg: 

This is a somewhat recent regresion.

-- 
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