Thomas Weber wrote:
> Am Donnerstag, den 12.06.2008, 12:44 +0200 schrieb Thomas Weber:
>
>> Hi,
>>
>> starting an octave-inferior process within Emacs and then using the
>> waitbar function from miscellaneous crashes octave:
>>
>> octave> waitbar(0)
>> panic: Segmentation fault -- stopping myself...
>> attempting to save variables to `octave-core'...
>> save to `octave-core' complete
>>
>> Process Inferior Octave segmentation fault
>>
>>
>> The crash happens in line 150 where buf_ptr is a null pointer. The
>> problematic part is however in line 147 already, where tgetstr() returns
>> 0. Excerpt from tgetstr()'s man page:
>>
>> "The tgetstr routine returns the string entry for id, or zero if it is
>> not available."
>>
>> I don't know if it's possible to change waitbar() to work from within
>> Emacs.
>>
>> Thomas
>>
It has been a long time since I wrote this. If I recall correctly, the
purpose of this was to get the width of the terminal, which apparently
does not work inside emacs. The fix is probably to deal with zero output
correctly, probably just forcing it to use the parts of the code where
it defaults to some fixed width if it can't figure out how wide it
should be.
Quentin
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php_______________________________________________
Octave-dev mailing list
Octave-dev@...
https://lists.sourceforge.net/lists/listinfo/octave-dev