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: Mon, 21 Sep 2020 11:46:09 -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 #35, bug #58957 (project octave):

With a 32bit build, the loop completed once without issues. Running it
multiple times crashed Octave (alongside the attached gdb). No backtrace for
that unfortunately.
But I'm starting to get the impression that something unrelated is off with
the 32bit Windows build anyway.

So maybe we should focus on the 64bit build first.
With it, Octave crashes on the first run of the loop.
Backtrace from gdb:

warning: Critical error detected c0000374

Thread 26 received signal SIGTRAP, Trace/breakpoint trap.
[Switching to Thread 6520.0x4d34]
0x00007ffb33b2ed03 in ntdll!RtlIsZeroMemory ()
   from C:\WINDOWS\SYSTEM32\ntdll.dll
(gdb) bt
#0  0x00007ffb33b2ed03 in ntdll!RtlIsZeroMemory ()
   from C:\WINDOWS\SYSTEM32\ntdll.dll
#1  0x00007ffb33b37ae2 in ntdll!RtlpNtSetValueKey ()
   from C:\WINDOWS\SYSTEM32\ntdll.dll
#2  0x00007ffb33b37dca in ntdll!RtlpNtSetValueKey ()
   from C:\WINDOWS\SYSTEM32\ntdll.dll
#3  0x00007ffb33b3d7f1 in ntdll!RtlpNtSetValueKey ()
   from C:\WINDOWS\SYSTEM32\ntdll.dll
#4  0x00007ffb33a49640 in ntdll!RtlAllocateHeap ()
   from C:\WINDOWS\SYSTEM32\ntdll.dll
#5  0x00007ffb33a45d21 in ntdll!RtlFreeHeap ()
   from C:\WINDOWS\SYSTEM32\ntdll.dll
#6  0x00007ffb31bc9c9c in msvcrt!free () from C:\WINDOWS\System32\msvcrt.dll
#7  0x0000000086d56fae in rsb__free (p=0x5ff76560) at rsb_sys.c:389
#8  0x0000000086a7398b in rsb__destroy_coo_matrix_t (cmp=0x5cd8b1d0)
    at rsb_internals.c:247
#9  0x0000000086d56998 in rsb_dump_postscript_from_mtx_t (br=1, bc=1,
    all_nnz=1, height=512, width=1024, mtxAp=0x5f8569c0,
    fd=0x7ffb31c3fb20 <msvcrt!_iob+288>) at rsb_eps.c:959
#10 rsb__do_mtx_render (filename=0x5cd8b3f0 "crash.eps", mtxAp=0x5f8569c0,
    pmWidth=1024, pmHeight=512, rflags=48) at rsb_eps.c:1101
#11 0x0000000086a67578 in Fsparsersb (args=..., nargout=0)
    at sparsersb.cc:2926
#12 0x000000000127aa77 in octave_builtin::execute (this=0x5e4a4e70, 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 0x00000000012bb9c4 in octave_function::call (this=0x5e4a4e70, 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 0x00000000013b7af1 in octave::tree_index_expression::evaluate_n
(this=0x840626f0, 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 0x0000000001d5ffdf 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 0x00000000013ac760 in octave::tree_evaluator::visit_statement
(this=0x5f4850c0, stmt=...) at
/home/osboxes/Documents/Repositories/Octave/mxe-octave/tmp-default-octave/octave-7.0.0/libinterp/parse-tree/pt-eval.cc:3239
#17 0x000000000139af2c in octave::tree_statement::accept (tw=...,
this=0x5c129fd0) 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=0x5f4850c0, lst=...) at
/home/osboxes/Documents/Repositories/Octave/mxe-octave/tmp-default-octave/octave-7.0.0/libinterp/parse-tree/pt-eval.cc:3298
#19 0x00000000013abcca in octave::tree_statement_list::accept (tw=...,
this=0x82011ad0) 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::execute_range_loop<double> (loop_body=0x82011ad0,
ult=..., line=1, rng=..., this=0x5f4850c0) at
/home/osboxes/Documents/Repositories/Octave/mxe-octave/tmp-default-octave/octave-7.0.0/libinterp/parse-tree/pt-eval.cc:2516
#21 octave::tree_evaluator::visit_simple_for_command (this=0x5f4850c0,
cmd=...) at
/home/osboxes/Documents/Repositories/Octave/mxe-octave/tmp-default-octave/octave-7.0.0/libinterp/parse-tree/pt-eval.cc:2566
#22 0x00000000013ac6b0 in octave::tree_evaluator::visit_statement
(this=0x5f4850c0, stmt=...) at
/home/osboxes/Documents/Repositories/Octave/mxe-octave/tmp-default-octave/octave-7.0.0/libinterp/parse-tree/pt-eval.cc:3216
#23 0x000000000139af2c in octave::tree_statement::accept (tw=...,
this=0x5c12a090) at
/home/osboxes/Documents/Repositories/Octave/mxe-octave/tmp-default-octave/octave-7.0.0/libinterp/parse-tree/pt-stmt.h:124
#24 octave::tree_evaluator::visit_statement_list (this=0x5f4850c0, lst=...) at
/home/osboxes/Documents/Repositories/Octave/mxe-octave/tmp-default-octave/octave-7.0.0/libinterp/parse-tree/pt-eval.cc:3298
#25 0x000000000139b49a 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
#26 octave::tree_evaluator::eval (this=0x5f4850c0, 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
#27 0x00000000016d24f0 in octave::interpreter::main_loop
(this=this@entry=0x5f484360) at
/home/osboxes/Documents/Repositories/Octave/mxe-octave/tmp-default-octave/octave-7.0.0/libinterp/corefcn/interpreter.cc:1278
#28 0x00000000016d6baa in octave::interpreter::execute
(this=this@entry=0x5f484360) at
/home/osboxes/Documents/Repositories/Octave/mxe-octave/tmp-default-octave/octave-7.0.0/libinterp/corefcn/interpreter.cc:806
#29 0x000000003a402c78 in octave::interpreter_qobject::execute
(this=0x59064af0) at
/home/osboxes/Documents/Repositories/Octave/mxe-octave/tmp-default-octave/octave-7.0.0/libgui/src/interpreter-qobject.cc:87
#30 0x000000003a4aaf5d in octave::interpreter_qobject::qt_static_metacall
(_o=0x137156804d730000, _id=<optimized out>, _a=0x5f8569c0, _c=<optimized
out>) at libgui/src/moc-interpreter-qobject.cc:96
#31 0x0000000066945c16 in QObject::event(QEvent*) () from
D:\SVN\Octave\test\OC67B0~1\OCTAVE~1\mingw64\bin\Qt5Core.dll
#32 0x00000000578b7953 in QApplicationPrivate::notify_helper(QObject*,
QEvent*) () from
D:\SVN\Octave\test\OC67B0~1\OCTAVE~1\mingw64\bin\Qt5Widgets.dll
#33 0x00000000578c058e in QApplication::notify(QObject*, QEvent*) () from
D:\SVN\Octave\test\OC67B0~1\OCTAVE~1\mingw64\bin\Qt5Widgets.dll
#34 0x000000003a450d66 in octave::octave_qapplication::notify
(this=0x59079ca0, 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
#35 0x000000006691ac8a in QCoreApplication::notifyInternal2(QObject*, QEvent*)
() from D:\SVN\Octave\test\OC67B0~1\OCTAVE~1\mingw64\bin\Qt5Core.dll
#36 0x0000000066921561 in QCoreApplicationPrivate::sendPostedEvents(QObject*,
int, QThreadData*) () from
D:\SVN\Octave\test\OC67B0~1\OCTAVE~1\mingw64\bin\Qt5Core.dll
#37 0x0000000066974d5f in
QEventDispatcherWin32::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
from D:\SVN\Octave\test\OC67B0~1\OCTAVE~1\mingw64\bin\Qt5Core.dll
#38 0x0000000066919963 in
QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from
D:\SVN\Octave\test\OC67B0~1\OCTAVE~1\mingw64\bin\Qt5Core.dll
#39 0x0000000066758ef0 in QThread::run() () from
D:\SVN\Octave\test\OC67B0~1\OCTAVE~1\mingw64\bin\Qt5Core.dll
#40 0x0000000066759ae3 in QThread::setTerminationEnabled(bool) () from
D:\SVN\Octave\test\OC67B0~1\OCTAVE~1\mingw64\bin\Qt5Core.dll
#41 0x00007ffb33116fd4 in KERNEL32!BaseThreadInitThunk () from
C:\WINDOWS\System32\kernel32.dll
#42 0x00007ffb33a7cec1 in ntdll!RtlUserThreadStart () from
C:\WINDOWS\SYSTEM32\ntdll.dll
#43 0x0000000000000000 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
(gdb)


librsb-1.2.0.9 was configured with:

autoreconf -fi && ./configure --host='x86_64-w64-mingw32'
--build='x86_64-pc-linux-gnu'
--prefix='/home/osboxes/Documents/Repositories/Octave/mxe-octave/usr/x86_64-w64-mingw32'
--enable-shared --disable-static
CPPFLAGS='-I/home/osboxes/Documents/Repositories/Octave/mxe-octave/usr/x86_64-w64-mingw32/include'
LDFLAGS='-L/home/osboxes/Documents/Repositories/Octave/mxe-octave/usr/x86_64-w64-mingw32/lib'
--disable-c-examples --disable-fortran-examples
--disable-sparse-blas-interface --disable-octave-testing


The full configure and build log of librsb is attached in case that helps.

(file #49830)
    _______________________________________________________

Additional Item Attachment:

File name: librsb                         Size:215 KB
    <https://file.savannah.gnu.org/file/librsb?file_id=49830>



    _______________________________________________________

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]