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

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

[Octave-bug-tracker] [bug #62207] segfault in bug-35881/bug-35881.tst in


From: Arun Giridhar
Subject: [Octave-bug-tracker] [bug #62207] segfault in bug-35881/bug-35881.tst in 32-bit ARM and MIPS
Date: Fri, 25 Mar 2022 09:01:55 -0400 (EDT)

Follow-up Comment #11, bug #62207 (project octave):

The sequence seems to be:

1. In the process of cleaning up, the function remove_all_breakpoints() is
called.

2. In the process of getting a list of breakpoints to clean up one by one, it
is going through a list of relevant lines and expressions.

3. Finding none, it is returning -1 for line number or expression number.

4. In certain circumstances (32 bit architecture etc), this causes a
segfault.

The location seems to be this in pt-bp.cc:


    117   void
    118   tree_breakpoint::visit_break_command (tree_break_command& cmd)
    119   {
    120     if (cmd.line () >= m_line)
    121       take_action (cmd);
    122   }


What happens here if cmd.line() is -1? Will the take_action() always be
skipped? Can m_line ever be -1?


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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