Another Java related Segmentation violation on WinXP

Tribo Laboy tribolaboy at gmail.com
Fri Jan 25 02:18:01 CST 2008


Hello Michael!

It seems that the problem is more serious than just Java. I
uninstalled the Octave 3.0 with all packages. Then re-installed
without JHandles and Java. The result is that the bug is still there
and Octave silently disappears. It is difficult to reproduce it. I
could observe it after repeatedly using the same name of the variable
to take the output and then changing to a new name like that:

d = readtext('data.txt')
d = readtext('data.txt')
d = readtext('data.txt')
d = readtext('data.txt')
d2 = readtext('data.txt')

The final line crashed it. Later tried without changing the variable
name and crashed it on the third attempt. The crashing occurs without
any message from Octave.
I noticed while modifying and debugging the 'readtext' function that
there was some problems with the assignment operator. When program was
stopped in debug mode only the first time a loop was run the
assignments were made. On repeated loops assignment obviously did not
work. But it worked while in debug mode. So the same command in the
body function didn't work but in debug mode worked... Very, very
strange indeed and I am not sure if this has anything to do with these
crashes, but ....

Regards,

TL.


On Jan 25, 2008 3:02 PM, Tribo Laboy <tribolaboy at gmail.com> wrote:
> Hello, Michael!
>
> Thanks for your quick reply and for making Octave on Windows possible.
> I have posted the data file on the page I mentioned before:
> tribolaboy.googlepages.com/octave_stuff
>
> Hope this provides some clue.
>
> Regards.
> TL
>
>
> On Jan 25, 2008 2:30 PM, Michael Goffioul <michael.goffioul at gmail.com> wrote:
> > Could you also provide a text file that shows the problem on
> > your system? I tried, but can't reproduce it.
> >
> > Michael.
> >
> >
> > On 1/25/08, Tribo Laboy <tribolaboy at gmail.com> wrote:
> > > Hi!
> > >
> > > I am having a hard time to troubleshoot Java-related segfault of
> > > Octave on Windows with JHandles backend.
> > > I am using a modified textread.m file from FileExchange, in which I
> > > have tried to remove all calls to graphic routines (it uses a
> > > waitbar).
> > > Sometimes the program runs just fine and imports the data into a cell
> > > array as it is supposed to do. Sometimes it fails miserably and
> > > complains about Java. I really can't understand where does this come
> > > from.
> > >
> > > I have uploaded my modified copy of textread.m here:
> > > tribolaboy.googlepages.com/octave_stuff
> > >
> > > The execution of the comands and the trace of the segfault are shown below.
> > >
> > > Anyone can help?
> > >
> > >
> > > octave-3.0.0.exe:7> dtdt = readtext('data.txt')
> > > octave-3.0.0.exe:8> dtdt2 = readtext('data.txt')
> > > panic: Segmentation violation -- stopping myself...
> > > attempting to save variables to `octave-core'...
> > > save to `octave-core' complete
> > > error: java_invoke: first argument must be a Java object or a string
> > > error: evaluating argument list element number 1
> > > error: evaluating assignment expression near line 27, column 23
> > > error: evaluating if command near line 26, column 7
> > > error: evaluating if command near line 25, column 5
> > > error: called from `__jhandles_get' in file `C:\4Apps\MATH\Octave\share\octave\p
> > > ackages\jhandles-0.3.1\__jhandles_get.m'
> > > error: evaluating assignment expression near line 74, column 25
> > > error: evaluating argument list element number 1
> > > error: evaluating prefix operator `!' near line 74, column 10
> > > error: while: error evaluating conditional expression
> > > error: called from `close:close_all_figures' in file `C:\4Apps\MATH\Octave\share
> > > \octave\3.0.0\m\plot\close.m'
> > > error: evaluating if command near line 46, column 5
> > > error: evaluating if command near line 38, column 3
> > > error: called from `close' in file `C:\4Apps\MATH\Octave\share\octave\3.0.0\m\pl
> > > ot\close.m'
> > > error: called from `__jhandles_exit' in file `C:\4Apps\MATH\Octave\share\octave\
> > > packages\jhandles-0.3.1\__jhandles_exit.m'
> > > _______________________________________________
> > > Bug-octave mailing list
> > > Bug-octave at octave.org
> > > https://www.cae.wisc.edu/mailman/listinfo/bug-octave
> > >
> >
>


More information about the Bug-octave mailing list