octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #41163] Octave crashes when compiled with 64 b


From: Lasse Schuirmann
Subject: [Octave-bug-tracker] [bug #41163] Octave crashes when compiled with 64 bit indexing and jit enabled
Date: Thu, 09 Jan 2014 12:09:21 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:26.0) Gecko/20100101 Firefox/26.0

URL:
  <http://savannah.gnu.org/bugs/?41163>

                 Summary: Octave crashes when compiled with 64 bit indexing
and jit enabled
                 Project: GNU Octave
            Submitted by: sils1297
            Submitted on: Thu 09 Jan 2014 12:09:20 PM GMT
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Crash
                  Status: None
             Assigned to: None
         Originator Name: Lasse Schuirmann
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: GNU/Linux

    _______________________________________________________

Details:

When compiling with 64 bit indexing and jit octave crashes at runtime
(compilation succeded with the patch from
https://savannah.gnu.org/bugs/?41145):


/usr/include/llvm/IR/Instructions.h:972:
llvm::ICmpInst::ICmpInst(llvm::CmpInst::Predicate, llvm::Value*, llvm::Value*,
const llvm::Twine&): Assertion `getOperand(0)->getType() ==
getOperand(1)->getType() && "Both operands to ICmp instruction are not of the
same type!"' failed.
octave exited with signal 6


I found that the bug was in libinterp/corefcn/jit-typeinfo.cc:

cond1 = builder.CreateICmpSGT (rcount, one);

while one->getType() returns "i64" and rcount->getType() returns "i32".
Therefore I created an ione in this scope (as above in line 1613) to match the
type of rcond.

Best,

Lasse



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Thu 09 Jan 2014 12:09:20 PM GMT  Name: jit_64index.patch  Size: 1kB  
By: sils1297

<http://savannah.gnu.org/bugs/download.php?file_id=30233>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?41163>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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