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

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

[Octave-bug-tracker] [bug #57353] crash signal 11 when using patch() wit


From: Rik
Subject: [Octave-bug-tracker] [bug #57353] crash signal 11 when using patch() with large stl file
Date: Thu, 5 Dec 2019 15:59:00 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko

Follow-up Comment #25, bug #57353 (project octave):

I'm not the original reporter, but I can verify that this now works for me.

In the original implementation, the variable vec_vn is a local variable in a
function, which means the memory for it comes from the stack.  I used gdb and
the sizeof() operator to find that the size of the variable was 9.6 MB.  In
the shell, I checked with "limit" and the stacksize was 8.192 MB.  Just to
verify, I changed the stacksize in the shell to 10 MB and then the code in
test_patch_v2.m passes.  Clearly, this is the root problem and I agree with
Markus' fix to shift this variable on to the heap.



    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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