[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: segfault during test
From: |
John W. Eaton |
Subject: |
Re: segfault during test |
Date: |
Thu, 2 Aug 2012 12:45:45 -0400 |
On 2-Aug-2012, Rik wrote:
| It looks like all the easy channels for debug are closed.
|
| I would start by configuring a debug build of Octave with CFLAGS '-g -O0'.
| When you have that built, run it under gdb with './run-octave -g'.
| This will put you at the gdb prompt. Type 'run' to start Octave.
| When Octave has started, type 'cd test' and then 'fntests'
| This will start the integrated test suite usually run by 'make check'. If
| you have separate build and src directories you will need to cd to the
| actual location of fntests.m to run it.
Maybe we should make something like the following change? Then we
could simplify these instructions to
run "make check RUN_OCTAVE_FLAGS=-g", then at the (gdb) prompt type "r"
jwe
diff --git a/test/Makefile.am b/test/Makefile.am
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -58,8 +58,11 @@
include fcn-handle-derived-resolution/module.mk
include nest/module.mk
+RUN_OCTAVE := $(top_builddir)/run-octave
+RUN_OCTAVE_FLAGS := --norc --silent --no-history
+
check: test_sparse.m test_bc_overloads.m
- $(top_builddir)/run-octave --norc --silent --no-history
$(srcdir)/fntests.m $(srcdir)
+ $(RUN_OCTAVE) $(RUN_OCTAVE_FLAGS) $(srcdir)/fntests.m $(srcdir)
test_sparse.m: build_sparse_tests.sh
$(srcdir)/build_sparse_tests.sh
- Re: segfault during test, Rik, 2012/08/01
- Re: segfault during test, JuanPi, 2012/08/01
- Re: segfault during test, Rik, 2012/08/01
- Re: segfault during test, JuanPi, 2012/08/02
- Re: segfault during test, Rik, 2012/08/02
- Re: segfault during test, Jordi GutiƩrrez Hermoso, 2012/08/02
- Re: segfault during test,
John W. Eaton <=
- Re: segfault during test, JuanPi, 2012/08/02
- Re: segfault during test, Max Brister, 2012/08/02
- Re: segfault during test, John W. Eaton, 2012/08/02