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

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

[Octave-bug-tracker] [bug #61821] segfault using tree_parameter_list in


From: anonymous
Subject: [Octave-bug-tracker] [bug #61821] segfault using tree_parameter_list in oct file
Date: Wed, 23 Feb 2022 12:39:57 -0500 (EST)

Follow-up Comment #14, bug #61821 (project octave):

Thanks for the installation instructions! I understand the correct way of
installation is what you explained but I extracted the artifact to the
installation folder to get results faster!!! Sorry.

In the case of the offset I concentrate on Octave 7. I also used gdb to add
break-points line by line and as explained in comment #10 I found that instead
of  "m_ret_list" the memebr "m_end_location_line" is changed by
"octave_user_function::define_ret_list". The data member
octave_user_function::m_end_location_line is placed in higher offset than
octave_user_function::m_ret_list. Using some tricks I found the offset of
m_ret_list that is 0xc0 but the offset 0xd4 is somewhere between the offset of
m_end_location_line and the next member.

I used Process Monitor from Sysinternals[1] to inspect the compiler options
that are used when using ./configure & make.
The problematic option is -DHAVE_CONFIG_H .
I compiled ov-usr-fcn.cc with and without -DHAVE_CONFIG_H. Without
-DHAVE_CONFIG_H the offset ,correctly, is computed as 0xc0 and with
-DHAVE_CONFIG_H the offset ,wrongly, is computed as 0xd4.


[1] https://docs.microsoft.com/en-us/sysinternals/

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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