* Good news - tcl at last really works - and bad news
@ 1998-02-18 23:23 Michal Jaegermann
0 siblings, 0 replies; only message in thread
From: Michal Jaegermann @ 1998-02-18 23:23 UTC (permalink / raw)
I have good news and bad news. Good news is that for the first
time ever I got Tcl running through it entire test suite on Alpha
without any complaints. Tk also passes with what you can term,
I hope, "a reasonable flak". I am not Tk expert, but I think
that one see results of a different window manager and configuration
than one on an original development machine.
Bad news is that libg++ from RH 5.0 distribution is even more broken
than I suspected. I spent a long time tracing a bug which was
causing 'ical' (as delivered on 5.0) and other X-windows programs
to die with a "Segmentation violation" without even attempting
to do anything on a display.
I tracked eventually that bug down to code roughly like that
fd = fopen("some file", "r");
read_a_stuff_from_some_file;
fclose(fd); <- bomb occures here!
deep into bowels of libX11. Does not seem like very much and small
test programs do not show such behaviour.
The catch is that if g++ was used as linker then these functions
are coming from libg++ library. FILE structures have jump tables
attached with various pointer to "helper" functions and, in case
of libg++ from the distribution, these tables are interpreted
differently in fopen and fclose. As a result when closing a file
we try to execute a function through a NULL pointer. Ouch!
A workaround is try to avoid linking with libg++ whenever possible.
Once I linked 'ical' using 'gcc' instead of 'g++' different fopen()
and fclose() were used and it started to work immediately.
Fixes to tcl/tk, ical and xpdf in the following messages.
Michal
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1998-02-18 23:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-02-18 23:23 Good news - tcl at last really works - and bad news Michal Jaegermann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox