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

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

[Octave-bug-tracker] [bug #36067] bug in exist() when checking for a fau


From: Kris Thielemans
Subject: [Octave-bug-tracker] [bug #36067] bug in exist() when checking for a faulty mex/oct file
Date: Mon, 02 Apr 2012 15:31:49 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20100101 Firefox/11.0

Follow-up Comment #2, bug #36067 (project octave):

ok. I can currently not cause a crash, but definitely cause strange
behaviour.

Here's a simple (non-sensical) mex file called existtest.c

#include <mex.h>
void mexFunction(int nlhs, mxArray *plhs[],int nrhs, const mxArray *prhs[])
{
    int dims[3]; /* I didn't bother to fill this in */        
    plhs[0] = mxCreateNumericArray(3,dims,mxSINGLE_CLASS, mxREAL);
}

Now start octave 3.4.3, and type

mex existtest.c

Now start octave 3.6.1. Let's see what happens there:

octave:1> exist('existtest.bla','file')
error: caught execution error in library function


This shows that exist() actually did try to do something with existtest, even
though I'm asking for existtest.bla.

FYI, the error that was caught is a shared library problem caused by compiling
a mex file with 3.4.3, but using it in 3.6.1.

octave:1> existtest
error: /home/kris/windows/Documents/devel/octave/test/existtest.mex: failed to
load: liboctinterp.so.0: cannot open shared object file: No such file or
directory





    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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