[Xcircuit-dev] RE: XCircuit segmentation fault
R. Timothy Edwards
tim at stravinsky.jhuapl.edu
Tue Jun 1 07:19:15 PDT 2004
Dear Taiyo,
> Version 3.2.21 caused a segmentation fault when I clicked the "OK" button
> in the colour selection dialogue (as instructed in the tutorial)
>
> Sorry if this is the ten millionth email you've recieved regarding this,
> but it's a habit mine to report bugs...
No, as an open source developer, I depend on the bug reports. And I haven't
heard this one before, and it seems odd because it is apparently unrelated
to any code changes I've done recently. However, I recently tracked down
a bug from a different report which could be related. The error was that
routine "xc_alloccolor" (xcircuit.c, lines 2044 to 2056) supposedly returns
a value, but doesn't. The strange thing about it is that it has worked;
apparently, the last value computed (pixval) ends up on the accumulator
and is picked up by the calling routine. Still, it breaks on HP/UX and
may now be breaking on newer versions of gcc, and it needs to be fixed.
So I'll update the distribution, but for reference, the fix is to add
return pixval;
at line 2056 of xcircuit.c (last line of routine xc_alloccolor). If this
does *not* fix the problem, please let me know right away.
Regards,
Tim
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Xcircuit-dev mailing list
Xcircuit-dev at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xcircuit-dev
More information about the Xcircuit-dev
mailing list