Skip to content
Snippets Groups Projects
Forked from cmucl / cmucl
Source project has a limited visibility.
  • rtoy's avatar
    9283574a
    A fix for the error that causes di::handle-breakpoint to complain · 9283574a
    rtoy authored
    about an unknown breakpoint at offset 0 when handling a function-end
    breakpoint.
    
    See the comment for compute_offset for an explanation.
    
    Note that this seems to fix that issue, but there is still the issue
    where a segfault will happen during tracing.  It seems to happen if a
    GC occurs after the function end breakpoint has happened
    (compute_offset has already been called before GC happens), and trace
    has printed out the return value.  Then a segfault happens.
    
    Due to some issues, this fix only works when compiled with gcc.
    Compiling with Sun c produces some segfaults somewhere such that we
    can't build cmucl at all.  The bizarre part is that compute_offset is
    never called during a build because there are no breakpoints enabled
    during a normal build.
    9283574a
    History
    A fix for the error that causes di::handle-breakpoint to complain
    rtoy authored
    about an unknown breakpoint at offset 0 when handling a function-end
    breakpoint.
    
    See the comment for compute_offset for an explanation.
    
    Note that this seems to fix that issue, but there is still the issue
    where a segfault will happen during tracing.  It seems to happen if a
    GC occurs after the function end breakpoint has happened
    (compute_offset has already been called before GC happens), and trace
    has printed out the return value.  Then a segfault happens.
    
    Due to some issues, this fix only works when compiled with gcc.
    Compiling with Sun c produces some segfaults somewhere such that we
    can't build cmucl at all.  The bizarre part is that compute_offset is
    never called during a build because there are no breakpoints enabled
    during a normal build.