From: Michal Jaegermann <michal@ellpspace.math.ualberta.ca>
Subject: Good news - tcl at last really works - and bad news
Date: Wed, 18 Feb 1998 16:23:58 -0700 (MST) [thread overview]
Message-ID: <199802182324.QAA13181@ellpspace.math.ualberta.ca> (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
reply other threads:[~1998-02-18 23:23 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox