[LLVMbugs] [Bug 1588] New: Freelist Broken Assertion (JITEmitter.cpp:111) -- llvm 2. 1cvs

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Jul 31 14:35:33 PDT 2007


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

           Summary: Freelist Broken Assertion (JITEmitter.cpp:111) -- llvm
                    2.1cvs
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: dgu at stanford.edu
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=1059)
 --> (http://llvm.org/bugs/attachment.cgi?id=1059)
source code

This bug only when running bytecode with lli version 2.1 from cvs (and not with
version 2.0).

The following error message is emitted:
lli: JITEmitter.cpp:111:
<unnamed>::FreeRangeHeader*<unnamed>::FreeRangeHeader::RemoveFromFreeList():
Assertion `Next->Prev == this && Prev->Next == this && "Freelist broken!"'
failed.
lli((anonymous namespace)::PrintStackTrace()+0x19)[0x84d3559]
/lib/libc.so.6(abort+0x103)[0xb7ccdea3]
/lib/libc.so.6(__assert_fail+0xfb)[0xb7cc601b]
lli((anonymous
namespace)::JITEmitter::startFunction(llvm::MachineFunction&)+0x70)[0x820f580]
Aborted


When I compile and run the following C code (llvm-gcc -c main.c --emit-llvm -o
main.bc && lli main.bc):

void bug();

int main() {
  bug();
}

void bug() {
  int zero = 0;
  while( zero < 1 )
    if( zero == 0 )
      break; 
}


Note: Very strangely, if bug is *defined* before main, the above error message
is not emitted.


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