octave-maintainers
[Top][All Lists]
Advanced

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

Re: gl-render.cc: framework OpenGL on MacOSX


From: John Swensen
Subject: Re: gl-render.cc: framework OpenGL on MacOSX
Date: Thu, 12 Feb 2009 12:31:04 -0500


On Feb 12, 2009, at 11:54 AM, John W. Eaton wrote:

On 12-Feb-2009, Jonathan Stickel wrote:

| I can use the fltk backend to make graphs.  However, I see segfault
| every time I exit octave if I have initialized fltk:
|
|
| $ octave-3.1.52+
| GNU Octave, version 3.1.52+
| Copyright (C) 2008 John W. Eaton and others.
| This is free software; see the source code for copying conditions.
| There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
| FITNESS FOR A PARTICULAR PURPOSE.  For details, type `warranty'.
|
| Octave was configured for "i386-apple-darwin8.11.1".
|
| Additional information about Octave is available at http://www.octave.org .
|
| Please contribute if you find this software useful.
| For more information, visit http://www.octave.org/help-wanted.html
|
| Report bugs to <address@hidden> (but first, please read
| http://www.octave.org/bugs.html to learn how to write a helpful report).
|
| For information about changes from previous versions, type `news'.
|
| octave-3.1.52+:1> backend ('fltk')
| octave-3.1.52+:2> exit
| panic: Segmentation fault -- stopping myself...
| attempting to save variables to `'...
|
| ^C^CPress Control-C again to abort.
| ^Cpanic: attempted clean up apparently failed -- aborting...
| Abort trap

Please try running Octave under a debugger and find out where this
crash is happening.

jwe

Along the lines of running Octave in a debugger, attached is a trivial patch so that people who are new to compiling octave know how to use run-octave. It may sound kindof dumb, but it was a long time before I even knew that run-octave could start an "un-installed" build of Octave in the debugger. Also, is there a logical place in documentation or a README to simply make mention of the run-octave script?

diff -r 5abe5ae55465 run-octave.in
--- a/run-octave.in     Thu Feb 12 10:00:43 2009 +0100
+++ b/run-octave.in     Thu Feb 12 12:27:04 2009 -0500
@@ -54,7 +54,18 @@
 INFOFILE="$builddir/doc/interpreter/octave.info"

 if [ $# -gt 0 ]; then
-  if [ "x$1" = "x-g" ]; then
+  if [ "x$1" = "x--help" ]; then
+    eval octave --version
+    echo ""
+    echo "Usage: run-octave [options]"
+    echo ""
+    echo "Options:"
+    echo ""
+    echo "  -g\t\tRun Octave in the GNU Debugger"
+ echo " -valgrind\t\tRun Octave with valgrind memory checking turned on" + echo " -strace\t\tRun Octave with strace for tracking system calls"
+    exit
+  elif [ "x$1" = "x-g" ]; then
     driver="gdb --args"
     shift
   elif [ "x$1" = "x-valgrind" ]; then


John Swensen


reply via email to

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