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

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

[Octave-bug-tracker] [bug #58957] [octave forge] (sparsersb) Failure to


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #58957] [octave forge] (sparsersb) Failure to install and crash in function
Date: Sun, 13 Sep 2020 08:33:51 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36 Edg/85.0.564.51

Follow-up Comment #33, bug #58957 (project octave):

Thanks.

Tried with a Windows 32bit build with the new versions changes (Octave hg id
08049eff8733 and MXE Octave hg id b982f2df58cf).
That means the tests are done with of-sparsersb-1.0.8 and librsb-1.2.0.9:

The code from comment #0 doesn't crash Octave. Not even if I call it 1000
times in a loop.

"pkg test sparsersb" crashes Octave without gdb being able to catch anything.
That might be bug #58790 striking again.

So I tried again with the same sources but a Windows 64bit build.
Running "pkg test sparsersb" still crashes Octave. But ´gdb´ is able to
catch the error.
Part of the gdb session with top of the backtrace:

warning: Critical error detected c0000374

Thread 25 received signal SIGTRAP, Trace/breakpoint trap.
[Switching to Thread 17608.0xcb4]
0x00007ff806cced03 in ntdll!RtlIsZeroMemory ()
   from C:\WINDOWS\SYSTEM32\ntdll.dll
(gdb) bt
#0  0x00007ff806cced03 in ntdll!RtlIsZeroMemory ()
   from C:\WINDOWS\SYSTEM32\ntdll.dll
#1  0x00007ff806cd7ae2 in ntdll!RtlpNtSetValueKey ()
   from C:\WINDOWS\SYSTEM32\ntdll.dll
#2  0x00007ff806cd7dca in ntdll!RtlpNtSetValueKey ()
   from C:\WINDOWS\SYSTEM32\ntdll.dll
#3  0x00007ff806cdd7f1 in ntdll!RtlpNtSetValueKey ()
   from C:\WINDOWS\SYSTEM32\ntdll.dll
#4  0x00007ff806be9640 in ntdll!RtlAllocateHeap ()
   from C:\WINDOWS\SYSTEM32\ntdll.dll
#5  0x00007ff806be5d21 in ntdll!RtlFreeHeap ()
   from C:\WINDOWS\SYSTEM32\ntdll.dll
#6  0x00007ff806b09c9c in msvcrt!free () from C:\WINDOWS\System32\msvcrt.dll
#7  0x0000000086516fae in rsb__free (p=0x593a2de0) at rsb_sys.c:389
#8  0x000000008623398b in rsb__destroy_coo_matrix_t (cmp=0x5ac56540)
    at rsb_internals.c:247
#9  0x0000000086516998 in rsb_dump_postscript_from_mtx_t (br=1, bc=1,
    all_nnz=1, height=512, width=1024, mtxAp=0x604027d0,
    fd=0x7ff806b7fb50 <msvcrt!_iob+336>) at rsb_eps.c:959
#10 rsb__do_mtx_render (filename=0x84a1e0a0 "sparsersb_temporary_render.eps",
    mtxAp=0x604027d0, pmWidth=1024, pmHeight=512, rflags=48) at
rsb_eps.c:1101
#11 0x0000000086227578 in Fsparsersb (args=..., nargout=0)
    at sparsersb.cc:2926
#12 0x000000000126aa77 in octave_builtin::execute (this=0x5770e010, tw=...,
--Type <RET> for more, q to quit, c to continue without paging--c
    nargout=0, args=...) at
/home/osboxes/Documents/Repositories/Octave/mxe-octave/tmp-default-octave/octave-7.0.0/libinterp/octave-value/ov-builtin.cc:59
#13 0x00000000012ab9c4 in octave_function::call (this=0x5770e010, tw=...,
nargout=0, args=...) at
/home/osboxes/Documents/Repositories/Octave/mxe-octave/tmp-default-octave/octave-7.0.0/libinterp/octave-value/ov-fcn.cc:57


Same again for the example in comment #0:

warning: Critical error detected c0000374

Thread 25 received signal SIGTRAP, Trace/breakpoint trap.
[Switching to Thread 16084.0x3ecc]
0x00007ff806cced03 in ntdll!RtlIsZeroMemory ()
   from C:\WINDOWS\SYSTEM32\ntdll.dll
(gdb) bt
#0  0x00007ff806cced03 in ntdll!RtlIsZeroMemory ()
   from C:\WINDOWS\SYSTEM32\ntdll.dll
#1  0x00007ff806cd7ae2 in ntdll!RtlpNtSetValueKey ()
   from C:\WINDOWS\SYSTEM32\ntdll.dll
#2  0x00007ff806cd7dca in ntdll!RtlpNtSetValueKey ()
   from C:\WINDOWS\SYSTEM32\ntdll.dll
#3  0x00007ff806cdd7f1 in ntdll!RtlpNtSetValueKey ()
   from C:\WINDOWS\SYSTEM32\ntdll.dll
#4  0x00007ff806be9640 in ntdll!RtlAllocateHeap ()
   from C:\WINDOWS\SYSTEM32\ntdll.dll
#5  0x00007ff806be5d21 in ntdll!RtlFreeHeap ()
   from C:\WINDOWS\SYSTEM32\ntdll.dll
#6  0x00007ff806b09c9c in msvcrt!free () from C:\WINDOWS\System32\msvcrt.dll
#7  0x00007ff806b49ef0 in ungetwc () from C:\WINDOWS\System32\msvcrt.dll
#8  0x00007ff806b3c9c9 in msvcrt!clearerr_s ()
   from C:\WINDOWS\System32\msvcrt.dll
#9  0x00007ff806b3ca70 in msvcrt!fclose () from
C:\WINDOWS\System32\msvcrt.dll
#10 0x0000000086516898 in rsb__do_mtx_render (
    filename=0x82240f90 "sparsersb_temporary_render.eps", mtxAp=0x60a7b010,
    pmWidth=1024, pmHeight=512, rflags=48) at rsb_eps.c:1111
#11 0x0000000086227578 in Fsparsersb (args=..., nargout=0)
    at sparsersb.cc:2926
#12 0x000000000119aa77 in octave_builtin::execute (this=0x57772a00, tw=...,
    nargout=0, args=...)
--Type <RET> for more, q to quit, c to continue without paging--c
    at
/home/osboxes/Documents/Repositories/Octave/mxe-octave/tmp-default-octave/octave-7.0.0/libinterp/octave-value/ov-builtin.cc:59
#13 0x00000000011db9c4 in octave_function::call (this=0x57772a00, tw=...,
nargout=0, args=...) at
/home/osboxes/Documents/Repositories/Octave/mxe-octave/tmp-default-octave/octave-7.0.0/libinterp/octave-value/ov-fcn.cc:57
#14 0x00000000012d7af1 in octave::tree_index_expression::evaluate_n
(this=0x5fb30550, tw=..., nargout=0) at
/home/osboxes/Documents/Repositories/Octave/mxe-octave/tmp-default-octave/octave-7.0.0/libinterp/parse-tree/pt-idx.cc:526
#15 0x0000000001c7ffdf in octave::tree_index_expression::evaluate
(this=<optimized out>, tw=..., nargout=<optimized out>) at
/home/osboxes/Documents/Repositories/Octave/mxe-octave/tmp-default-octave/octave-7.0.0/libinterp/parse-tree/pt-idx.h:109
#16 0x00000000012cc760 in octave::tree_evaluator::visit_statement
(this=0x5a7dc570, stmt=...) at
/home/osboxes/Documents/Repositories/Octave/mxe-octave/tmp-default-octave/octave-7.0.0/libinterp/parse-tree/pt-eval.cc:3239
#17 0x00000000012baf2c in octave::tree_statement::accept (tw=...,
this=0x822ef630) at
/home/osboxes/Documents/Repositories/Octave/mxe-octave/tmp-default-octave/octave-7.0.0/libinterp/parse-tree/pt-stmt.h:124
#18 octave::tree_evaluator::visit_statement_list (this=0x5a7dc570, lst=...) at
/home/osboxes/Documents/Repositories/Octave/mxe-octave/tmp-default-octave/octave-7.0.0/libinterp/parse-tree/pt-eval.cc:3298
#19 0x00000000012bb49a in octave::tree_statement_list::accept (tw=...,
this=<optimized out>) at
/home/osboxes/Documents/Repositories/Octave/mxe-octave/tmp-default-octave/octave-7.0.0/libinterp/parse-tree/pt-stmt.h:201
#20 octave::tree_evaluator::eval (this=0x5a7dc570, stmt_list=...,
interactive=<optimized out>) at
/home/osboxes/Documents/Repositories/Octave/mxe-octave/tmp-default-octave/octave-7.0.0/libinterp/parse-tree/pt-eval.cc:403
#21 0x00000000015f24f0 in octave::interpreter::main_loop
(this=this@entry=0x5a7db810) at
/home/osboxes/Documents/Repositories/Octave/mxe-octave/tmp-default-octave/octave-7.0.0/libinterp/corefcn/interpreter.cc:1278
#22 0x00000000015f6baa in octave::interpreter::execute
(this=this@entry=0x5a7db810) at
/home/osboxes/Documents/Repositories/Octave/mxe-octave/tmp-default-octave/octave-7.0.0/libinterp/corefcn/interpreter.cc:806
#23 0x000000003bc82c78 in octave::interpreter_qobject::execute
(this=0x575f9b00) at
/home/osboxes/Documents/Repositories/Octave/mxe-octave/tmp-default-octave/octave-7.0.0/libgui/src/interpreter-qobject.cc:87
#24 0x000000003bd2af5d in octave::interpreter_qobject::qt_static_metacall
(_o=0xb5869fedff1e0000, _id=<optimized out>, _a=0x8652860a
<__mingw_vfprintf+58>, _c=<optimized out>) at
libgui/src/moc-interpreter-qobject.cc:96
#25 0x0000000066945c16 in QObject::event(QEvent*) () from
D:\SVN\Octave\test\OC67B0~1\OCTAVE~1\mingw64\bin\Qt5Core.dll
#26 0x000000005d4e7953 in QApplicationPrivate::notify_helper(QObject*,
QEvent*) () from
D:\SVN\Octave\test\OC67B0~1\OCTAVE~1\mingw64\bin\Qt5Widgets.dll
#27 0x000000005d4f058e in QApplication::notify(QObject*, QEvent*) () from
D:\SVN\Octave\test\OC67B0~1\OCTAVE~1\mingw64\bin\Qt5Widgets.dll
#28 0x000000003bcd0d66 in octave::octave_qapplication::notify
(this=0x5760d370, receiver=<optimized out>, ev=<optimized out>) at
/home/osboxes/Documents/Repositories/Octave/mxe-octave/tmp-default-octave/octave-7.0.0/libgui/src/octave-qobject.cc:132
#29 0x000000006691ac8a in QCoreApplication::notifyInternal2(QObject*, QEvent*)
() from D:\SVN\Octave\test\OC67B0~1\OCTAVE~1\mingw64\bin\Qt5Core.dll
#30 0x0000000066921561 in QCoreApplicationPrivate::sendPostedEvents(QObject*,
int, QThreadData*) () from
D:\SVN\Octave\test\OC67B0~1\OCTAVE~1\mingw64\bin\Qt5Core.dll
#31 0x0000000066974d5f in
QEventDispatcherWin32::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
from D:\SVN\Octave\test\OC67B0~1\OCTAVE~1\mingw64\bin\Qt5Core.dll
#32 0x0000000066919963 in
QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from
D:\SVN\Octave\test\OC67B0~1\OCTAVE~1\mingw64\bin\Qt5Core.dll
#33 0x0000000066758ef0 in QThread::run() () from
D:\SVN\Octave\test\OC67B0~1\OCTAVE~1\mingw64\bin\Qt5Core.dll
#34 0x0000000066759ae3 in QThread::setTerminationEnabled(bool) () from
D:\SVN\Octave\test\OC67B0~1\OCTAVE~1\mingw64\bin\Qt5Core.dll
#35 0x00007ff804d36fd4 in KERNEL32!BaseThreadInitThunk () from
C:\WINDOWS\System32\kernel32.dll
#36 0x00007ff806c1cec1 in ntdll!RtlUserThreadStart () from
C:\WINDOWS\SYSTEM32\ntdll.dll
#37 0x0000000000000000 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)


So, it looks like the 32bit version might be ok. But the 64bit version
crashes.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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