noeckel wrote:
[]
OK, I managed to update gcc4 on another G4 without problems; the installation failure on my G4 laptop reported above still puzzles me, especially since nothing else on that machine is malfunctioning. Maybe I should have stopped bouncing that laptop around in my backpack after they replaced the crashed hard disk a while ago...

Since unfortunately your crash log didn't give me any idea, here is s little story instead:

I have an iMac G3 (from Apple's blue period) that still runs very well, now under 10.4.5. But shortly after installing 10.4, I started getting weird crashes from basic commands like /usr/bin/wc and /usr/bin/install, with nondescript crash logs like yours (this is from my wc.crash.log)

Thread 0 Crashed:
0   wc  0x000026d4 0x1000 + 5844
1   wc  0x00001cbc 0x1000 + 3260
2   wc  0x00001b5c 0x1000 + 2908

Since this prevented basically any installation of Fink packages, I spent some time on it and recompiled these commands from Apple's sources with debugging turned on, so that I could see where the crash happened.
This gave me a crash log as follows:

Thread 0 Crashed:
0   wc  0x0000223c cnt + 20 (wc.c:124)
1   wc  0x00002138 main + 416 (wc.c:102)
2   wc  0x000017f4 _start + 344 (crt.c:272)
3   wc  0x00001698 start + 60

Staring at the sources, I found that the crash disappeared when I modified the sources as follows:

--- wc_ori.c   2005-11-20 14:13:43.000000000 +0100
+++ wc.c   2005-11-20 14:59:13.000000000 +0100
@@ -129,3 +129,3 @@
        int clen, fd, len, warned;
        short gotsp;
        u_char *p;
-       u_char buf[MAXBSIZE];
+       static u_char buf[MAXBSIZE];
        wchar_t wch;

For /usr/bin/install it was something similar. The original wc and install commands crash reliably on the G3 and the recompiled ones do not.

So it seems that some rather basic parts of Apple's Unix tools do not work on all CPUs. Since you have a rather early G4, one could suspect something similar; but without spending time on recompiling /bin/sh with debugging turned on and hunting through the sources, there is not much you can do to find out.

You had the same crash twice, so I doubt if this can be a hardware problem (RAM or disk), but you could try replacing your /bin/sh binary by some other version, even by /bin/zsh and look if this changes anything.

--
Martin





-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Fink-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to