Re: ngspice core dump: tcap_init()

From: Ken Smith (kensmith_at_violet.rahul.net)
Date: 07/01/04


Date: Thu, 1 Jul 2004 02:51:44 +0000 (UTC)

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

Loading