[LLVMbugs] [Bug 7320] New: #pragma GCC dependency crashes FE without the optional trailing text

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jun 8 14:24:29 PDT 2010


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

           Summary: #pragma GCC dependency crashes FE without the optional
                    trailing text
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: nomura at netapp.com
                CC: llvmbugs at cs.uiuc.edu


r105599

[cyclsvl02]$ cat a.c
#pragma GCC dependency "error.h"

error.h is just an empty file.


[cyclsvl02]$ /x/eng/build2/scratch/nomura/clang-LATEST/bin/clang a.c
terminate called after throwing an instance of 'std::length_error'
  what():  basic_string::_S_create
0  clang           0x0000000001550c9f
1  clang           0x0000000001551877
2  libpthread.so.0 0x000000381100e7c0
3  libc.so.6       0x0000003810430265 gsignal + 53
4  libc.so.6       0x0000003810431d10 abort + 272
5  libstdc++.so.6  0x00000038148bec44 __gnu_cxx::__verbose_terminate_handler()
+ 276
6  libstdc++.so.6  0x00000038148bcdb6
7  libstdc++.so.6  0x00000038148bcde3
8  libstdc++.so.6  0x00000038148bceca
9  libstdc++.so.6  0x0000003814859b87 std::__throw_length_error(char const*) +
103
10 libstdc++.so.6  0x000000381489b859 std::string::_Rep::_S_create(unsigned
long, unsigned long, std::allocator<char> const&) + 121
11 libstdc++.so.6  0x000000381489d0b1 std::string::_M_mutate(unsigned long,
unsigned long, unsigned long) + 113
12 clang           0x0000000000afd97d
13 clang           0x0000000000affaed
14 clang           0x0000000000affaed
15 clang           0x0000000000afb789
16 clang           0x0000000000aeea57
17 clang           0x0000000000adc776
18 clang           0x0000000000adcbec
19 clang           0x0000000000a87d34
20 clang           0x0000000000a9975e
21 clang           0x0000000000aa2d69
22 clang           0x0000000000aacca8
23 clang           0x0000000000aace14
24 clang           0x0000000000a9c3ed
25 clang           0x0000000000a9c6aa
26 clang           0x000000000069b61e
27 clang           0x000000000043bb74
28 clang           0x000000000043eb92
29 clang           0x000000000042d2d0
30 clang           0x0000000000432e04 main + 2724
31 libc.so.6       0x000000381041d994 __libc_start_main + 244
32 clang           0x000000000042b469
Stack dump:
0.      Program arguments:
/x/eng/build_scratch2/nomura/clang-llvm_100608_0000/root/bin/clang -cc1 -triple
x86_64-unknown-linux-gnu -S -disable-free -main-file-name a.c
-mrelocation-model static -mdisable-fp-elim -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -resource-dir
/x/eng/build_scratch2/nomura/clang-llvm_100608_0000/root/lib/clang/2.0
-U__linux__ -U__linux -Ulinux -U__gnu_linux__ -D__FreeBSD__=7 -D__amd64__
-ferror-limit 19 -fmessage-length 80 -fgnu-runtime -fdiagnostics-show-option
-fcolor-diagnostics -o /tmp/cc-Dq82Or.s -x c a.c 
1.      a.c:1:2: current parser token 'pragma'
clang: error: clang frontend command failed due to signal 6 (use -v to see
invocation)
[cyclsvl02]$

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