help-octave
[Top][All Lists]
Advanced

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

Re: error: feval: function 'pkg.m' not found


From: ola
Subject: Re: error: feval: function 'pkg.m' not found
Date: Wed, 9 Jan 2019 12:10:38 -0600 (CST)

I have the same problem on Linux Ubuntu 18.04 and Octave 4.2.2.
The calling  feval("pkg", ovl("load", "optim"), 0); in c++ code gives the
executable, but it doesn't work. The error is related to memory dump. 
Is there other way to call pkg (for functions in other packages) from c++
code than using feval function?
or
Is there a way to call Fpkg using #include <octave/builtin-defun-decls.h> ?
or
Is there a known way to #include other packages eg. like <octave/optim.h> ?

There is output from gdb with errors:

Thread 1 "SRR_HDX" received signal SIGSEGV, Segmentation fault.
0x00007ffff6e570ea in octave::application::interactive() () from
/usr/lib/x86_64-linux-gnu/liboctinterp.so.4
(gdb) f 0
#0  0x00007ffff6e570ea in octave::application::interactive() () from
/usr/lib/x86_64-linux-gnu/liboctinterp.so.4
(gdb) f 1
#1  0x00007ffff7824806 in octave_pager_buf::sync() () from
/usr/lib/x86_64-linux-gnu/liboctinterp.so.4
(gdb) f 2
#2  0x00007ffff5703f5e in std::ostream::flush() () from
/usr/lib/x86_64-linux-gnu/libstdc++.so.6
(gdb) f 3
#3  0x00007ffff78250e1 in flush_octave_stdout() () from
/usr/lib/x86_64-linux-gnu/liboctinterp.so.4
(gdb) f 4
#4  0x00007ffff7576525 in ?? () from
/usr/lib/x86_64-linux-gnu/liboctinterp.so.4
(gdb) f 5
#5  0x00007ffff7574393 in ?? () from
/usr/lib/x86_64-linux-gnu/liboctinterp.so.4
(gdb) f 6
#6  0x00007ffff757446e in ?? () from
/usr/lib/x86_64-linux-gnu/liboctinterp.so.4
(gdb) f 7
#7  0x00007ffff75744c7 in verror(char const*, __va_list_tag*) () from
/usr/lib/x86_64-linux-gnu/liboctinterp.so.4
(gdb) f 8
#8  0x00007ffff7574569 in error(char const*, ...) () from
/usr/lib/x86_64-linux-gnu/liboctinterp.so.4
(gdb) f 9
#9  0x00007ffff73d5c50 in feval(std::__cxx11::basic_string<char,
std::char_traits&lt;char>, std::allocator<char> > const&, octave_value_list
const&, int) () from /usr/lib/x86_64-linux-gnu/liboctinterp.so.4
(gdb) f 10
#10 0x000055555555939d in main (argc=<optimized out>, argv=0x7fffffffdf08)
at my_code.cc:58
58        feval("pkg", ovl("load", "optim"), 0);
(gdb) f 11
#0  0x0000000000000000 in ?? ()

Can someone help me? 




--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html



reply via email to

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