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

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

[Octave-bug-tracker] [bug #59228] embedded.cc example crashes with segfa


From: Rik
Subject: [Octave-bug-tracker] [bug #59228] embedded.cc example crashes with segfault
Date: Wed, 7 Oct 2020 17:58:15 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko

Follow-up Comment #6, bug #59228 (project octave):

For dev version, you need to make sure that you do 'make install' so that the
mkoctfile version that you get on the command line matches the libraries that
are installed.

Also,


mkoctfile embedded.cc


produces file "embedded.oct" so any "a.out" that you ran was from some
previous compilation.

However, having done the steps above and set my LD_LIBRARY_PATH to guarantee I
am picking up the right libraries, I get a segfault too.

I used


mkoctfile -g -v --link-stand-alone embedded.cc


and then ran under gdb.  The backtrace is totally useless.


Program received signal SIGSEGV, Segmentation fault.
main () at embedded.cc:9
9       {
(gdb) bt
#0  main () at embedded.cc:9





    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?59228>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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