This is the mail archive of the libc-alpha@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Fwd: mmap broken for sparc32 in 2.1.2pre3


Ben Collins has asked me to forward this, as he is presently unable 
to post to libc-alpha.

>Envelope-to: jk@espy.org
>Delivered-To: espy@debian.org
>Date: Fri, 27 Aug 1999 21:10:59 -0400
>From: Ben Collins <bcollins@debian.org>
>To: espy@debian.org
>Subject: mmap broken for sparc32 in 2.1.2pre3
>User-Agent: Mutt/0.95.7i
>User-Agent: Mutt/0.95.7i
>Sender: Ben Collins <bmc@djj.state.va.us>
>Status:
>
>On Thu, Aug 26, 1999 at 07:21:17AM -0400, Ben Collins wrote:
>> On Wed, Aug 25, 1999 at 08:43:39PM -0700, Ulrich Drepper wrote:
>> > Ben Collins <bcollins@debian.org> writes:
>> >
>> > > I still have the same sparc32 problem. I've narrowed it down to
>> > > something screwy in lxstat64(), but haven't been able to get any further
>> > > than that with it.
>> >
>> > Please try the appended patch.
>>
>> Yes, this works in the test case as well as other apps such as `ls'.
>
>Now on to a new problem :)
>
>mmap appears to fail in certain circumstances. This particular example
>comes from a grep during a gcc build (just the tail of the strace):
>
>open("/usr/src/scratch/gcc-2.95.1/src/configure.in", O_RDONLY) = 4
>brk(0x40000)                            = 0x40000
>fstat(4, {st_dev=makedev(3, 1), st_ino=65761, st_mode=S_IFREG|0644, 
>st_nlink=1,
>st_uid=1000, st_gid=40, st_blksize=8192, st_blocks=76, st_size=37354,
>st_atime=99/08/27-22:56:26, st_mtime=99/08/27-22:53:01, 
>st_ctime=99/08/27-22:53:01}) = 0
>mmap(NULL, 0, PROT_NONE, MAP_FILE, 0, 0) = -1 EINVAL (Invalid argument)
>read(4, 0x34000, 32768)                 = -1 EFAULT (Bad address)
>write(2, "grep: /usr/src/scratch/gcc-2.95."..., 64) = 64
>close(4)                                = 0
>close(1)                                = 0
>
>This returns "Bad address". The args to the mmap are the same with 
>2.1.1 and 2.1.2,
>so it seems to be something (else) internal to the glibc call.
>
>BTW: anyone have ltrace compiled for sparc, or care to help me with 
>porting it?
>
>Thanks,
>  Ben
>
-- 
Joel Klecker (aka Espy)                    Debian GNU/Linux Developer
<URL:mailto:jk@espy.org>                 <URL:mailto:espy@debian.org>
<URL:http://web.espy.org/>               <URL:http://www.debian.org/>

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]