gEDA-dev: gattrib file-save crash (if nothing open) bug

Stuart Brorson sdb at cloud9.net
Fri Sep 1 13:53:46 EDT 2006


On Fri, 1 Sep 2006, Peter Clifton wrote:

> Hi,
>
> Working with CVS head gattrib, I've noticed that if you don't have any
> files open (Eg. click cancel when gattrib offers its initial file-open
> box), and then use "File -> Save", gattrib segfaults.

Thanks for the bug report.   I'll bet that this happens because
gattrib doesn't check to see if there are any items in its data
structures before trying to save.  THen it tries to write out
something which points to NULL.  Look at the stuff involved in teh
file->save callback.  I probably need to put a sanity check for
non-null in there, and tell the user that he can't save if he doesn't
have a design read in.

Another project to put on my "to do" list.

> Right now my paste buffer is bu??ered, probably since I had 12hours
> clock sqew (forwards) which I just reset. (And this is supposedly
> syncing with an NTP server!) Can't imagine it does any good for X-server
> timestamps.
>
> Will post the backtrace when I'm able!

Thx, but I think teh problem is that described above.

Stuart


More information about the geda-dev mailing list