Weird behavior with mislocked: oct-file is unloaded while checking lock state...
Michael Goffioul
michael.goffioul at gmail.com
Thu Sep 4 03:44:10 CDT 2008
On Wed, Sep 3, 2008 at 5:23 PM, John W. Eaton <jwe at bevo.che.wisc.edu> wrote:
> The function shouldn't be invalidated unless the time stamp changes or
> it is no longer visible. Does the following change fix that problem?
> I'm still not sure this is completely the correct thing to do, but I
> think it will avoid the problem you are seeing.
This does not help (Note: after backend('fltk') call, __init_fltk__ is now
correctly locked). When I trace code execution on
backend('fltk')
mislocked('__init_fltk__')
I can see that on the "backend" call, fltk_backend.oct is mapped into
memory. Then on "mislocked" call, I see that it is unmapped then
remapped. If the new mapping occurs at the same address, everything
is OK. If not, I get a crash when readline tries to execute the event hook
on the next prompt (indeed, the function pointer stored in readline is
obviously wrong).
I'm willing to help debug it, but I don't know what to look for.
Michael.
More information about the Octave-maintainers
mailing list