any(A,2) on sparse A causes segfault
John W. Eaton
jwe at bevo.che.wisc.edu
Mon Dec 17 13:02:02 CST 2007
On 17-Dec-2007, David Bateman wrote:
| > I can confirm that this bug exists. However, this is really hard to
| > debug as the issue is in the Sparse-op-defs.h (SPARSE_ANY_OP) macro,
| > and so the debug won't give valid line number to identify where the bug
| > is.
Wnen debugging problems like this in the past, I've usually expanded
the macro(s) by hand where they are used so that I can step through
them with gdb.
| Ok, I think I've found it, but have to do a recompile to check. In any
| case the attached is a bug and should be patched.. I'll send a mail
| confirming that this fixing the issue..
| 2007-12-15 David Bateman <dbateman at free.fr>
|
| * Sparse-op-defs.h (SPARSE_ANY_ALL_OP_ROW_CODE): Use ridx for row
| index.
I applied the patch and checked it in.
Thanks,
jwe
More information about the Bug-octave
mailing list