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

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

[Octave-bug-tracker] [bug #53507] Sparse.h:491:57: runtime error: load o


From: Dmitri A. Sergatskov
Subject: [Octave-bug-tracker] [bug #53507] Sparse.h:491:57: runtime error: load of value 176, which is not a valid value for type 'bool'
Date: Wed, 28 Mar 2018 20:25:03 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:59.0) Gecko/20100101 Firefox/59.0

Follow-up Comment #2, bug #53507 (project octave):


octave:1> test ("libinterp/dldfcn/symbfact.cc-tst", "verbose")
>>>>> /home/dima/src/octave/gcc_usan/libinterp/dldfcn/symbfact.cc-tst
***** testif HAVE_CHOLMOD
 A = sparse (magic (3));
 [count, h, parent, post, r] = symbfact (A);
 assert (count, [3; 2; 1]);
 assert (h, 3);
 assert (parent, [2; 3; 0]);
 assert (r, sparse (triu (true (3))));
../liboctave/array/Sparse.h:491:57: runtime error: load of value 128, which is
not a valid value for type 'bool'
***** testif HAVE_CHOLMOD
 ## Test MODE "lower"
 A = sparse (magic (3));
 [~, ~, ~, ~, l] = symbfact (A, "sym", "lower");
 assert (l, sparse (tril (true (3))));
***** testif HAVE_CHOLMOD <*42587>
 ## singular matrix
 A = sparse ([1 0 8;0 1 8;8 8 1]);
 [count, h, parent, post, r] = symbfact (A);
***** testif HAVE_CHOLMOD
 fail ("symbfact ()");
 fail ("symbfact (1,2,3,4)");
 fail ("symbfact ({1})", "wrong type argument 'cell'");
 fail ("symbfact (sparse (1), {1})", "TYP must be a string");
 fail ("symbfact (sparse (1), 'foobar')", 'unrecognized TYP "foobar"');
 fail ("symbfact (sparse (1), 'sym', {'L'})", "MODE must be a string");
 fail ('symbfact (sparse (1), "sym", "foobar")', 'unrecognized MODE
"foobar"');
 fail ("symbfact (sparse ([1, 2; 3, 4; 5, 6]))", "S must be a square
matrix");
PASSES 4 out of 4 tests
octave:2> __octave_config_info__ ("hg_id")
ans = a4c687fec320



Interestingly, if I run it again (in the same octave session) -- there is no
error any more.


Dmitri.
-- 


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?53507>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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