From mboxrd@z Thu Jan 1 00:00:00 1970 From: Don Dugger Date: Mon, 07 May 2001 20:00:46 +0000 Subject: Re: [Linux-ia64] IA32 process segfaults on exit Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-ia64@vger.kernel.org Michael- Um, I think I found your problem and I'm pretty sure it's program error. The test case you sent effectively does: fd_zero = open("/dev/zero", O_RDONLY); m = mmap(0x10000, 0x10000, ..., fd_zero, 0); This mapps zeros to loation 0x10000. What makes you think that the address 0x10000 is free? On an IA32 machine the Run Time LoaDer is loaded at 0x2aaab000 so this location, strictly by chance, is free. On Trillian the RTLD is loaded at 0x4000 (actually, it's the first page boundary) so you've mapped zero's on top of RTLD. I'm really curious, why do you think 0x10000 is free? On Fri, Apr 20, 2001 at 09:46:06AM -0700, Michael Madore wrote: > Hi, > > The attached 32 bit code will run without error on IA32, but the same binary > will generate the following errors when it returns on IA64. > > sizeof(elf_gregset_t) (1024) != sizeof(struct pt_regs) (400) > Segmentation fault (core dumped) > > Is this expected behavior? > > -- > Mike Madore > Software Engineer > TurboLinux, Inc. > > _______________________________________________ > Linux-IA64 mailing list > Linux-IA64@linuxia64.org > http://lists.linuxia64.org/lists/listinfo/linux-ia64 -- Don Dugger "Censeo Toto nos in Kansa esse decisse." - D. Gale n0ano@valinux.com Ph: 303/938-9838