[cfe-dev] clang driver crashes on windows/mingw
Ronald Pijnacker
pijnacker at dse.nl
Sun Jul 12 22:20:18 PDT 2009
>> Hi all,
>> When I try to run clang on windows/mingw it crashes:
>
> Hi Ronald,
> Can you get a backtrace ("bt") from gdb at the failure point?
> -Chris
Hi Chris,
Sure:
$ gdb /d/Programs/llvm-d/bin/clang
This GDB was configured as "i686-pc-mingw32"...
(gdb) run -I. -c Test.m -o Test.o
Starting program: d:/Programs/llvm-d/bin/clang -I. -c Test.m -o Test.o
[New thread 1404.0x8bc]
Program received signal SIGSEGV, Segmentation fault.
0x0040ef2c in clang::driver::OptTable::ParseOneArg (this=0x3d4fe0, Args=@0x3d2e20, Index=@0x22f7e8)
at d:/data/llvm/llvm-svn/tools/clang/lib/Driver/OptTable.cpp:255
255 if (Arg *A = getOption(id)->accept(Args, Index))
(gdb) bt
#0 0x0040ef2c in clang::driver::OptTable::ParseOneArg (this=0x3d4fe0, Args=@0x3d2e20, Index=@0x22f7e8)
at d:/data/llvm/llvm-svn/tools/clang/lib/Driver/OptTable.cpp:255
#1 0x004036da in clang::driver::Driver::ParseArgStrings (this=0x22f950, ArgBegin=0x3d4ee4, ArgEnd=0x3d4ef8)
at d:/data/llvm/llvm-svn/tools/clang/lib/Driver/Driver.cpp:83
#2 0x00403c7d in clang::driver::Driver::BuildCompilation (this=0x22f950, argc=6, argv=0x3d4ee0)
at d:/data/llvm/llvm-svn/tools/clang/lib/Driver/Driver.cpp:185
#3 0x00402136 in main (argc=6, argv=0x3d4ee0) at d:/data/llvm/llvm-svn/tools/clang/tools/driver/driver.cpp:218
(gdb) list
250 if (Start == End)
251 break;
252
253 // See if this option matches.
254 options::ID id = (options::ID) (Start - OptionInfos + 1);
255 if (Arg *A = getOption(id)->accept(Args, Index))
256 return A;
257
258 // Otherwise, see if this argument was missing values.
259 if (Prev != Index)
Thanks,
Ronald
More information about the cfe-dev
mailing list