[Top][All Lists]

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

Re: [Gnucap-devel] Autotools build system

From: David Fang
Subject: Re: [Gnucap-devel] Autotools build system
Date: Sun, 21 Jun 2009 04:49:04 -0400 (EDT)

bad internal command: clear
terminate called after throwing an instance of 'Exception_Bad_Internal_Command'

Oh yeah, duh. is calling "quit" in a catch-clause which, as you said, is an invalid command, after removing all those translation units that define the commands. The invalid command at that point throws an uncaught exception -- hence, abort/terminate. The catch clause should probably be written to never throw, if possible. But this is a somewhat artificial scenario we've created...


Does that happen for you too? This might be independent of our build system. (This is tested on powerpc-apple-darwin8.)

Full info:
--------------------->8 snip 8<------------------
[fangism:gnucap-2009-06-11-patched/build/src] fang% ../libtool --mode=execute gdb ./gnucap GNU gdb 6.3.50-20050815 (Apple version gdb-696) (Sat Oct 20 18:20:28 GMT 2007)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "powerpc-apple-darwin"...
warning: --arch option not supported in this gdb.
Reading symbols for shared libraries .
warning: UUID mismatch detected between:


...... done

(gdb) run
Starting program: /Users/fang/local/src/gnucap-2009-06-11-patched/build/src/.libs/gnucap
Reading symbols for shared libraries .+ done
Gnucap 2009.06.11 RCS 26.111
The Gnu Circuit Analysis Package
Never trust any version less than 1.0
Copyright 1982-2007, Albert Davis
This is free software, and you are welcome
to redistribute it under the terms of
the GNU General Public License, version 3 or later.
See the file "COPYING" for details.
bad internal command: clear
terminate called after throwing an instance of 'Exception_Bad_Internal_Command'

Program received signal SIGABRT, Aborted.
0x90047dac in kill ()
(gdb) where
#0  0x90047dac in kill ()
#1  0x9012d7b4 in abort ()
#2  0x94c8c078 in __gnu_cxx::__verbose_terminate_handler ()
#3  0x94c89c08 in __gxx_personality_v0 ()
#4  0x94c89c6c in std::terminate ()
#5  0x94c89eac in __cxa_throw ()
#6 0x0104b238 in CMD::command (address@hidden, scope=0xc24bc195) at ../../src/
#7  0x00004d3c in main (argc=1, argv=0xbfffdcec) at ../../src/

--------------------->8 snip 8<------------------

I can look into this further after some sleep.  :)

What you are left with is a program with only one command, the
one to load plugins.  You will need to do control-D to quit,
because even the quit command isn't there.

If a module is loaded by default, and you want to replace it,
all you need to do is load the one you want.

You can always add such an executable to
if WIN32
bin_PROGRAMS += gnucap-win32-demo

and link it statically.

I thought was supposed to not require that stuff.

Nothing is required, it just gives you the ability to do such things.


David Fang

Gnucap-devel mailing list

David Fang

reply via email to

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