bugGNU Octave - Bugs: bug #32137, help command causes hang

 
 

bug #32137: help command causes hang

Submitter:  Michael Godfrey <godfrey>
Submitted:  Sun 16 Jan 2011 06:31:19 AM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Fixed Assigned to:  None
Originator Name:  godfrey Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Tue 18 Jan 2011 12:57:45 AM UTC, comment #6: 

Sorry to have duplicated #30477.

But, the problem really seems to be fixed now.

So, it appears that both reports can be closed.

Michael Godfrey <godfrey>
Group Member
Mon 17 Jan 2011 07:45:29 PM UTC, comment #5: 

I checked in the following change:

http://hg.savannah.gnu.org/hgweb/octave/rev/f359cfc6e24d

If this change fixes the problem for you, then I will close this report.

This problem was also reported previously here:

https://savannah.gnu.org/bugs/?30477

John W. Eaton <jwe>
Group administrator
Mon 17 Jan 2011 06:10:28 PM UTC, comment #4: 

John,

This doe appear to help.  I think (maybe optimistically)
that help is also quicker. There used to frequently be a
pause before any text appeared.

But, since this problem has "come and gone" there is a need
for more testing.  I ran tests from the build (./run-octave).
I will install this system and use it more.

So far, I would say that this patch could be committed.

Michael Godfrey <godfrey>
Group Member
Mon 17 Jan 2011 10:02:57 AM UTC, comment #3: 

Does the attached patch help?

(file #22424)

John W. Eaton <jwe>
Group administrator
Mon 17 Jan 2011 02:04:30 AM UTC, comment #2: 

Sorry, now with the clear ans in the
.octaverc I just got a hang as result
of:
octave
help whos
================

So, behavior seems pretty random.

Michael Godfrey <godfrey>
Group Member
Mon 17 Jan 2011 02:01:08 AM UTC, comment #1: 

I just found the following fact:
My ~/.octaverc file currently contains:
backend("fltk");
===================
With this .octaverc a help command as the
first command hangs.
I changed this to:
backend("fltk");
clear ans
===================
and the help command no longer hangs.
Also, the hang seems to be only for help whos.
help strcmp  and help logm did not hang.

The mystery continues.  Can anyone reproduce this?

Michael

Michael Godfrey <godfrey>
Group Member
Sun 16 Jan 2011 06:31:19 AM UTC, original submission:  

I sent the email below to the maintainer list on 7/28/2010, but
a similar hang happened to me using the current development system. This is a difficult problem to examine since it happens
randomly, and the exact sequence that triggers it seems to change.

In the text attached I was able to cause the failure while running under gdb.  I hope this helps someone to
find the problem.

It would be a worry if the coming release goes out with this problem.  When it happens all current work is lost since the
only recovery is to close the window, or kill -9 from another
window.
===================================

The original hang happened when I ssh'ed into another machine
and ran:
find('a')
find('a')
find('abca')
help find

>>hang here<<  requires kill -9


===================================
This sequence produced the attached gdb output.

The most recent hang was triggered by
help strcmp

so, the string following the find seems not to be the
problem.



Michael Godfrey <godfrey>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #22424:  diffs.txt added by jwe (2KiB - text/plain)
file #22419:  hang_help_find added by godfrey (8KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jwe (Updated the item)
  • -email is unavailable- added by godfrey (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-01-18 jwe StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2011-01-17 jwe Attached File- Added diffs.txt, #22424
        StatusNone Ready For Test
    2011-01-16 godfrey Attached File- Added hang_help_find, #22419

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code