From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 5803 invoked from network); 4 Feb 2000 08:14:30 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 4 Feb 2000 08:14:30 -0000 Received: from jurassic.park.msu.ru (jurassic.park.msu.ru [195.208.223.243]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id DAA10243 for ; Fri, 4 Feb 2000 03:14:28 -0500 Received: (from ink@localhost) by jurassic.park.msu.ru (8.9.3/8.9.3) id LAA01297; Fri, 4 Feb 2000 11:14:22 +0300 Date: Fri, 4 Feb 2000 11:14:22 +0300 From: Ivan Kokshaysky To: axp-list@redhat.com, rth@twiddle.net Subject: Mysterious exec bug [Re: axp patch for 2.3.41] Message-ID: <20000204111422.A1286@jurassic.park.msu.ru> References: <20000201022827.A14679@twiddle.net> <3896E4E6.7DF40DB1@crc.dk> <20000201171949.A486@jurassic.park.msu.ru> <20000201160025.A1626@Marvin.DL8BCU.ampr.org> <20000201121646.B646@twiddle.net> <20000202001708.A393@Marvin.DL8BCU.ampr.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <20000202001708.A393@Marvin.DL8BCU.ampr.org>; from th@Marvin.DL8BCU.ampr.org on Wed, Feb 02, 2000 at 12:17:08AM +0000 On Wed, Feb 02, 2000 at 12:17:08AM +0000, Thorsten Kranzkowski wrote: > > > DU-netscape (stuck right after exec, with 100% cpu-time). > > > > Can you strace it? > > of course :-) : > [ lots of info deleted ] I've found that any ecoff executable with .text address = (any_address | 0x200000000) behaves exactly like Thorsten described (100% system time, not even jumping into the executable). But it's killable. Situation is much worse with elf binaries whose start address has this evil bit set, they cause hard lockup. The bug appeared somewhere between 2.3.23 and 2.3.30. [ink@jurassic tst]$ cat a.c int __start() { return 0; } [ink@jurassic tst]$ gcc -c -o a.o a.c [ink@jurassic tst]$ ld -oformat ecoff-littlealpha -o a a.o -Ttext 0x124000001c0 [ink@jurassic tst]$ ./a Segmentation fault (core dumped) ^ thats ok, return address is bogus [ink@jurassic tst]$ ld -oformat ecoff-littlealpha -o a a.o -Ttext 0x126000001c0 [ink@jurassic tst]$ ./a ^ stuck here... ^C [ink@jurassic tst]$ Any ideas? Ivan.