ngspice core dump: tcap_init()

E

Ethan

Guest
Hi,

My ngspice (rework-15) core dumped. gdb shows in cpitf.c, function call
tcap_init() causes the coredump.

When I comment //tcap_init() out, ngspice runs fine.

Anybody has any suggestions?

I use gcc 2.95.3

Thanks!
Bo
 
In article <40e35c7e$1@news.cadence.com>, Ethan <bowan2004@gmail.com> wrote:
Hi,

My ngspice (rework-15) core dumped. gdb shows in cpitf.c, function call
tcap_init() causes the coredump.

When I comment //tcap_init() out, ngspice runs fine.

Anybody has any suggestions?
Yes: Run LTspice under wine.

Some years back I had a copy of the source for Spice3F?. I spent some
time going through it and finding all of the dereferencing of unassigned
or null pointers. I found about 10 of them and sent the code back to the
person I got it from. The folks that wrote Berk Spice assumed that a
malloc always worked and didn't fully check syntax errors. With crafty
syntax errors, I could send the code through paths where it would
derefence an unassigned pointer. It could be you've found one of these.
Try a netlist with absolutely no errors in it to be sure.


--
--
kensmith@rahul.net forging knowledge
 
Hi Ethan --

: My ngspice (rework-15) core dumped. gdb shows in cpitf.c, function call
: tcap_init() causes the coredump.

: When I comment //tcap_init() out, ngspice runs fine.

: Anybody has any suggestions?

This fcn initializes the termcap library. I'm not an expert with
this, but I'll betcha that you are compiling on a non-Linux system,
and the termcap stuff works differently than under a pure-GNU system.

It's also possible your TERM environment variable is set to something
unsual.

I could be wrong, however . . . . .

: I use gcc 2.95.3

Please post more info about your system, i.e. operating system,
distribution, rev level, etc. Also, if you are feeling
adventurous, you can read up on the termcap library

http://www.delorie.com/gnu/docs/termcap/termcap_toc.html

and then root around the ngspice code looking to see what termcap is
used for.

Also, you may want to take your question over to the ngspice mailing
list: ngspice-users@lists.sourceforge.net. The folks who hack ngspice
code tend to hang out there, instead of here in
sci.electronics.LTSpice. :)

Stuart
 

Welcome to EDABoard.com

Sponsor

Back
Top