octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: loop containing x/0 gives LLVM error (with jit)


From: Max Brister
Subject: Re: loop containing x/0 gives LLVM error (with jit)
Date: Mon, 6 Aug 2012 14:00:12 -0500

On Sun, Aug 5, 2012 at 12:24 PM, Muhali <address@hidden> wrote:
>>> octave: jit-typeinfo.cc:505: llvm::Value*
>>> jit_function::call(llvm::IRBuilderD&, const std::vector<jit_value*>&)
>>> const:
>>> Assertion `in_args.size () == args.size ()' failed.
>>> Aborted
>> ...
>> It looks like I was checking to see if the first argument was zero
>> instead of the second argument. I have fixed this on the default
>> branch (9df70a18aa27). Are you using an old version of the default
>> branch? I can't reproduce the assertion failure. Also, in the latest
>> version code is not compiled unless there is at least 1000 iterations.
>
> same thing happens with the current default tip (5dd599df36de).
>
> M.

Very odd. Do the tests still pass? I added a test for division by zero.

When you run this test
> for k=1:2
>    x = k / 0 ;
> endfor

Does the error cause the interpreter to crash? If so, could I get a stack track?

Thanks,
Max Brister


reply via email to

[Prev in Thread] Current Thread [Next in Thread]