[LLVMdev] Advice on debugging?

Talin viridia at gmail.com
Tue Apr 1 21:00:54 PDT 2008


Duncan Sands wrote:
>> Ping? Still looking for advice in figuring out how and why my generated 
>> code is causing lli to crash...
>>     
>
> Did you run your code through the verifier?
>   
Yes I did. And llvm-dis has no problem printing out the disassembled code.
>>> So for example, when I run lli on my program:
>>> ----------------------------------------------------------
>>> Assertion failed: (V == V2 && "Didn't find key?"), function RemoveKey, 
>>> file StringMap.cpp, line 177.
>>>       
>
> This looks like either an lli bug, or invalid bitcode (see my remark on
> the verifier above).  If it passes the verifier, please reduce a testcase
> and open a bug report.  How were you running lli by the way - interpreter
> or jit?
>   
I get the same result with -force-interpreter and without.

I'll file a bug as suggested.
>>> But when I run bugpoint, I get:
>>>       
> ...
>   
>>> bugpoint can't help you with your problem!
>>> ----------------------------------------------------------
>>>
>>> To be honest, I am not sure what this all means.
>>>       
>
> It means that the problem is lli specific.  Try running bugpoint with
> -run-int or -run-jit (depending on whether you were using the JIT or
> the interpreter version of lli).
>
> Ciao,
>
> Duncan.
>   



More information about the llvm-dev mailing list