Bug 481525 - ngspice crashes on closing help window
Summary: ngspice crashes on closing help window
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: ngspice
Version: 10
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Chitlesh GOORAH
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-01-26 00:47 UTC by Aanjhan Ranganathan
Modified: 2009-02-24 21:38 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-02-24 21:38:44 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Aanjhan Ranganathan 2009-01-26 00:47:20 UTC
Description of problem:

Run help from ngspice. The Help window opens. Now close the help window. Program crashes.

Version-Release number of selected component (if applicable):
ngspice compiled from ng-spice-rework revision 17


How reproducible:
Always 100%

Comment 1 Chitlesh GOORAH 2009-01-26 19:08:08 UTC
Why did you compiled ngspice-rework-17 ?

Do a yum install ngspice

The current ngspice release on the mirrors is 18-1.fc10

However if the X clone button is clicked on, I encountered the same error.

But there is also a "quit help" button.

Comment 2 Aanjhan Ranganathan 2009-01-26 19:20:06 UTC
Sorry. By mistake I entered the wrong version. The version is 18.1-fc10 and yes the error is reproduced if the X button is clicked.

Comment 3 Jon Dufresne 2009-02-16 19:43:38 UTC
I can confirm this bug. The program doesn't actually crash, but instead exits abruptly with a status code of "1". The only thing I did in the help window was close it by clicking on the "X" of the WM.

Below is the output reported by gdb. There is no backtrace because ngspice actually exits (with a status code of "1"). Marking as ASSIGNED as this is easily reproducable.

$ gdb ngspice 
GNU gdb Fedora (6.8-29.fc10)
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...
(gdb) run
Starting program: /usr/bin/ngspice 
******
** ngspice-18 : Circuit level simulation program
** The U. C. Berkeley CAD Group
** Copyright 1985-1994, Regents of the University of California.
** Please submit bug-reports to: ngspice-bugs.net
** Creation Date: Sun Jan 11 17:47:56 EST 2009
******
ngspice 1 -> help
ngspice 2 -> XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":0.0"
      after 166 requests (166 known processed) with 0 events remaining.

Program exited with code 01.


---
Fedora Bugzappers volunteer triage team
https://fedoraproject.org/wiki/BugZappers

Comment 4 Chitlesh GOORAH 2009-02-21 19:46:32 UTC
Can you test and confirm the fix please ?

http://chitlesh.fedorapeople.org/RPMS/ngspice-18-2.fc10.i386.rpm

FYI: The build system is down for maintenance this weekend.

Comment 5 Jon Dufresne 2009-02-23 19:47:15 UTC
(In reply to comment #4)
> Can you test and confirm the fix please ?
> 
> http://chitlesh.fedorapeople.org/RPMS/ngspice-18-2.fc10.i386.rpm

This works. With this new rpm the program now performs the expected behavior.

---
Fedora Bugzappers volunteer triage team
https://fedoraproject.org/wiki/BugZappers

Comment 6 Chitlesh GOORAH 2009-02-23 23:09:26 UTC
Nice, I have an upstream developer claiming some instabilities while characterising his standard cells. I will be investigating it with him and ngspice upstream. This bug is not that critical, so I hope you don't mind I wait one or two weeks.

Any bad results from ngspice are alarmingly disturbing (at least for me).


Note You need to log in before you can comment on or make changes to this bug.