From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: X-Archive-Original-Message-ID: <199705132123.PAA01180@ellpspace.math.ualberta.ca> Date: Tue, 13 May 1997 15:23:54 -0600 (MDT) From: Michal Jaegermann Subject: Re: Python on Alpha broken (fwd) In-Reply-To: <9705121741.AA04047@cadosf.hlo.dec.com> > > There is a Grail fix for Linux/Alpha at: > > http://people.magnet.com/~amk/sigs/pipermail/1997q2.grail/feb508bf71c6.html > I tried this patch. As it is not very long, here it is in all its glory (with pieces of the original message - the whole thing to be found at the quoted URL; this bug affects DU as well): Conrad Huang conrad@cgl.ucsf.edu Tue, 6 May 97 11:16:38 -0700 The bug is in the tcl file handle implementation (I think). ... On 32-bit systems, the size is 2. On the Alpha, the size is 4 due to the 64-bit ClientData and padding. Tcl_GetFile initializes both fields of the structure but does not touch the padding memory, resulting in identical keys not matching occasionally. Explicitly zeroing the key structure seems to fix the Grail hanging problem. Context diffs are attached below. Conrad =================================================================== RCS file: RCS/tclFHandle.c,v retrieving revision 1.1 diff -c -r1.1 tclFHandle.c *** 1.1 1997/05/06 17:43:01 --- tclFHandle.c 1997/05/06 17:44:17 *************** *** 76,81 **** --- 76,82 ---- Tcl_CreateExitHandler(FileExitProc, 0); initialized = 1; } + memset((char *) &key, 0, sizeof key); key.osHandle = osHandle; key.type = type; entryPtr = Tcl_CreateHashEntry(&fileTable, (char *) &key, &new); _______________ Yes, indeed, with this patch Grail does seem to work again (at least the current version and only lightly tested, so all kind of surprises are possible). On the other hand glint does not really behave any better. Frankly, the workaround in this patch sounds extremely dodgy, but I did not analyzed what really happens. Problems with glint can be in Python, but they can be as well in tcl. Tcl sources, even in .rpm format - hence with all Red Hat patches - are full of "32/64" bugs with gcc **really** unhappy in files like tclUnixChan.c tclUnixFile.c, tclUnixPipe.c (this is not all). If you think that this can be disregarded then note that tcl compiled on Linux/alpha fails its own test suite. This applies equally to stuff from Red Hat (7.6pl0) and these sources updated to the current released patchlevel of tcl (7.6pl2). Here is a short summary of results. Note that the patch quoted above was already applied. ---- event-1.3 FAILED ---- event-2.1 FAILED ---- event-2.2 FAILED ---- event-4.1 FAILED ---- event-4.2 FAILED expr.test [ bombs with Error 136 ] ==== fcmd-6.23 CopyRenameOneFile: TclpCopyDirectory failed ==== fcmd-6.27 CopyRenameOneFile: TclpCopyDirectory failed ==== fcmd-6.28 CopyRenameOneFile: TclpCopyDirectory failed regexp.test [ bombs with Error 139 ] ---- scan-1.6 FAILED set.test [ bombs with Error 139 ] In the situation like that this is a small miracle than anything works at all (and ical, written in tcl/tk, seems to - at least initially until you will hit one of those spots). 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