ngspice, malloc: internal error can't allocate -8 bytes
You have a line with a single 'P' and nothing else in
  your circuit description.
This line is responsible for the ngspice crash.
You will have to search why your geda frontend
  has generated this line.

Of course ngspice should have emited a reasonable
   error message instead of crashing.
Thus you might consider filing a bug report on the
   ngpsice bug tracker too.