gEDA-dev: Crash updating embeded component

Peter Clifton pcjc2 at cam.ac.uk
Sun Dec 3 16:54:45 EST 2006


On Sun, 2006-12-03 at 20:54 +0000, Peter Clifton wrote:
> I've discovered a potential crash in gschem... (It does some times).
> 
> If you have a component, embed that component in the schematic (from
> edit menu), then go to Edit->Update component _twice_, the component
> gets replaced with a "can't find component warning, and valgrind notes
> some errors.

Talking to myself again...

Attached is a patch which fixes the issue, but it needs checking that it
is indeed the correct thing to do.

Previously we had that clib was allocated in the embeded component
state, and so we free'd it. Actually, it appears that clib comes from a
hash table owned by libgeda, and should NOT be free'd.

Patch attached.

Peter C.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: update_embeded_crash.patch
Type: text/x-patch
Size: 476 bytes
Desc: not available
Url : http://www.seul.org/pipermail/geda-dev/attachments/20061203/9451c109/update_embeded_crash.bin


More information about the geda-dev mailing list