octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #58004] [octave forge] (io) xmlread.m makes Oc


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #58004] [octave forge] (io) xmlread.m makes Octave crash
Date: Fri, 12 Jun 2020 17:43:55 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0

Follow-up Comment #24, bug #58004 (project octave):

This is a weird one, for sure.

On my Debian system using a current build of the stable branch, I can generate
a segfault with the following script (no io package needed, so I doubt that is
the source of the problem):


usejava ("jvm");
javaaddpath ("/usr/share/java/xercesImpl.jar")
figure ();
line ();
print ('line.svg');

for i = 1:100000
  i
  parser = javaObject ("org.apache.xerces.parsers.DOMParser");
end


I usually see a crash for me well before 5,000 trips through the loop.

If I comment out the call to the print function, then it runs through all
100,000 trips through the loop.  Executing the script repeatedly also works.

Note that we don't even have to parse a file, just create the parse object!

And somehow it is interacting with the print function?  What?!

Can anyone else duplicate this result?

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?58004>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]