Re: dia SIGSEGV when I move Class object



On 29 Aug 2003, Dmitry Perfilyev wrote:
Of course the fact that GDB itself is broken by this point indicates
some runaway pointer bug earlier on.  I hate those things.  Maybe
valgrind or what's-it-called on Solaris would be the best to diagnose
this.

I've replaced standart Sun (from sunsolve) libexpat package to
self-compilled version expat-1.95.6 and GDB error disappeared.

And stack:

(gdb) where #0 0xfe50e71c in umlclass_update_data (umlclass=0x312640)
at class.c:564
[...]

Scary, that line reads:
umlclass->connections[0].pos = elem->corner;

In my gdb that line reads:
(gdb) f
#0  0xfe54e71c in umlclass_update_data (umlclass=0x2efa38) at class.c:564
564       pointspacing = elem->width / (pointswide + 1.0);
(gdb) list class.c:564
559     
560       /* there are four corner points and two side points, thus all
561        * remaining points are on the top/bottom width
562        */
563       pointswide = (UMLCLASS_CONNECTIONPOINTS - 6) / 2;
564       pointspacing = elem->width / (pointswide + 1.0);
565     
566       /* across the top connection points */
567       for (i=1;i<=pointswide;i++) {
568         umlclass->connections[i].pos.x = x + (pointspacing * i);


which is no different than what the other objects do.  Can you check
what the other objects involved are, to see which one is the core
dumper?  I.e. umlclass->connections, umlclass->connections[0], elem.
There is only one object "Class" in the page.  Sequence: New -> Place UML
Class object on the page -> try to move -> core

Well, unless you've set UMLCLASS_CONNECTIONPOINTS to 4, which would be a
strange thing to do, I guess the above expat thing could be to blame.  Ick!

I'd love to see Dia working on Solaris.  Hey, I'd even let Sun pay me to
work on it:)
And includes Dia in StarOffice ;)

That'd take some work, I think:)

-Lars

-- 
Lars Clausen (http://shasta.cs.uiuc.edu/~lrclause)| HÃrdgrim of Numenor
"I do not agree with a word that you say, but I   |----------------------------
will defend to the death your right to say it."   | Where are we going, and
    --Evelyn Beatrice Hall paraphrasing Voltaire  | what's with the handbasket?



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]