Hi,all<br><br>I ran my generated whole-program bitcode file which performs as a bodytrack tool, it can give me the right result but with a stack dump before it exsits<br><br>Update Error : Model observation failed for time : 1<br>
Error loading observation data<br>terminate called after throwing an instance of 'std::bad_cast'<br>  what():  std::bad_cast<br>0  lli            0x08b713d2<br>1  lli            0x08b71247<br>2                 0x00d0b400 __kernel_sigreturn + 0<br>
3                 0x00d0b424 __kernel_vsyscall + 16<br>4  libc.so.6      0x00a6d7c1 gsignal + 81<br>5  libc.so.6      0x00a6f092 abort + 386<br>6  libstdc++.so.6 0x020b944f __gnu_cxx::__verbose_terminate_handler() + 335<br>
7  libstdc++.so.6 0x020b7385<br>8  libstdc++.so.6 0x020b73c2<br>9  libstdc++.so.6 0x020b7501<br>10 libstdc++.so.6 0x020b5f05<br>11 libstdc++.so.6 0x0012c0d6<br>12 libstdc++.so.6 0x020e51e8 vtable for std::basic_filebuf<char, std::char_traits<char> > + 8<br>
Stack dump:<br>0.    Program arguments: lli -load=/usr/lib/libm.so bodytrack.bc ../../../inputs/sequenceB_1/ 4 260 3000 1 <br><br><br>I use Bugpoint to check it , Bugpoint gives me the following information:<br><br><br>Read input file      : 'bodytrack.bc'<br>
*** All input ok<br>Initializing execution environment: Found gcc: /usr/lib/ccache/gcc<br>Running the code generator to test for a crash: <cbe>*** Debugging code generator crash!<br><br>Error running tool:<br>  /usr/local/bin/llc -o bugpoint-test-program.bc.cbe.c -march=c -f bugpoint-test-program.bc<br>
llc: CBackend.cpp:487: llvm::raw_ostream&<unnamed>::CWriter::printSimpleType(llvm::formatted_raw_ostream&, const llvm::Type*, bool, const std::string&): Assertion `NumBits <= 128 && "Bit widths > 128 not implemented yet"' failed.<br>
0  llc       0x09017572<br>1  llc       0x090173e7<br>2            0x0044a400 __kernel_sigreturn + 0<br>3            0x0044a424 __kernel_vsyscall + 16<br>4  libc.so.6 0x00a6d7c1 gsignal + 81<br>5  libc.so.6 0x00a6f092 abort + 386<br>
6  libc.so.6 0x00a668ee __assert_fail + 238<br>7  llc       0x0854af1a<br>8  llc       0x0854b682<br>9  llc       0x0854be09<br>10 llc       0x0854d40b<br>11 llc       0x08555e45<br>12 llc       0x0855e860<br>13 llc       0x0855e4fe<br>
14 llc       0x0855dfb6<br>15 llc       0x0854fc0a<br>16 llc       0x0854fcb2<br>17 llc       0x0854fdc7<br>18 llc       0x0855cab3<br>19 llc       0x0855cbea<br>20 llc       0x0855e3ac<br>21 llc       0x0855de8b<br>22 llc       0x0854fc0a<br>
23 llc       0x085544bf<br>24 llc       0x085541fd<br>25 llc       0x085540ae<br>26 llc       0x08549d47<br>27 llc       0x08f93f86 llvm::FPPassManager::runOnFunction(llvm::Function&) + 290<br>28 llc       0x08f94128 llvm::FPPassManager::runOnModule(llvm::Module&) + 110<br>
29 llc       0x08f94407 llvm::MPPassManager::runOnModule(llvm::Module&) + 385<br>30 llc       0x08f948b4 llvm::PassManagerImpl::run(llvm::Module&) + 122<br>31 llc       0x08f94b99 llvm::PassManager::run(llvm::Module&) + 39<br>
32 llc       0x084c4ed1 main + 2180<br>33 libc.so.6 0x00a58a66 __libc_start_main + 230<br>34 llc       0x084c3d41<br>Stack dump:<br>0.    Program arguments: /usr/local/bin/llc -o bugpoint-test-program.bc.cbe.c -march=c -f bugpoint-test-program.bc <br>
1.    Running pass 'Function Pass Manager' on module 'bugpoint-test-program.bc'.<br>2.    Running pass 'C backend' on function '@_ZN12BodyGeometryC1Ev'<br><br>Checking to see if we can delete global inits: <cbe><crash><br>
<br><br>What does this information mean?<br><br>(the ELF executable can be run correctly and even I link the generated object files together one by one manually, the wrong is still there)<br><br><br>Is a bug in LLVM??<br>
<br><br>Nan<br>