public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: other/10284: mmap test configury - subtle breakage exposed by corner case
@ 2003-04-06  0:58 zack
  0 siblings, 0 replies; 2+ messages in thread
From: zack @ 2003-04-06  0:58 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, gschafer, nobody, zack

Synopsis: mmap test configury - subtle breakage exposed by corner case

Responsible-Changed-From-To: unassigned->zack
Responsible-Changed-By: zack
Responsible-Changed-When: Sun Apr  6 00:58:08 2003
Responsible-Changed-Why:
    Mine.
State-Changed-From-To: open->analyzed
State-Changed-By: zack
State-Changed-When: Sun Apr  6 00:58:08 2003
State-Changed-Why:
    Working on a fix.  (Thanks for the attempt to patch it,
    but I think this test is just too fragile to live; I plan
    to rip it out and substitute a system blacklist.)

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10284


^ permalink raw reply	[flat|nested] 2+ messages in thread

* other/10284: mmap test configury - subtle breakage exposed by corner case
@ 2003-04-01  4:46 gschafer
  0 siblings, 0 replies; 2+ messages in thread
From: gschafer @ 2003-04-01  4:46 UTC (permalink / raw)
  To: gcc-gnats


>Number:         10284
>Category:       other
>Synopsis:       mmap test configury - subtle breakage exposed by corner case
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 01 04:46:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Greg Schafer
>Release:        3.2.2, 3.3, 3.4
>Organization:
>Environment:
i686-pc-linux-gnu
>Description:
Under normal conditions gcc configure will report:-

checking for working mmap from /dev/zero... yes
checking for working mmap with MAP_ANON(YMOUS)... yes

But in the conditions described below it erroneously reports:-

checking for working mmap from /dev/zero... no
checking for working mmap with MAP_ANON(YMOUS)... no

Investigation has revealed that the problem happens only when the "/etc/ld.so.cache" file is less than 1 memory page in size. This can happen for example when building up a new system inside a chroot environment.

It appears to be a subtle timing issue as evidenced by the strace logs and analysis contained in the thread that starts here:-

http://archive.linuxfromscratch.org/mail-archives/lfs-dev/2003/03/0170.html
>How-To-Repeat:
Configure gcc in an environment where the "/etc/ld.so.cache" file is less than 1 memory page in size. NOTE - rm'ing the cache file does NOT reproduce the problem.
>Fix:
A patch has been worked up by:-

Donald Smith <dss-lfs@cfl.rr.com>

I've tested it thoroughly and it does the right thing on my platform and in the conditions described above. Patch is attached.
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/x-gunzip; name="gcc-3.2.2.mmap_test.patch.gz"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="gcc-3.2.2.mmap_test.patch.gz"

H4sICH0/dD4AA2djYy0zLjIuMi5tbWFwX3Rlc3QucGF0Y2gAfVJdb9MwFH1ufsVhL6R1k+aj66aG
Si1iSEiAeOC9ylwnNUviynbUZhP/netkZSBYHUV2fM+559x7s5NFgaD9qlFyHqRhQo/SspzR54yr
ppBlq8VL8O97LwiCi8RREkVpECVBNEccL+Ob5XwRRucFFsdR5DHGXhN45qdBvEASLeNoGaX/8Ndr
BPMkWkwXYP1+g/XagxXGblP4Yw9PHgC+zzUmpykmHb2PmccA2VjIzIOLn7BC3qimzg/wD+U4c5ey
gE+BFfyBPv6y+bb9uPn0+e7D+Fk4ng/C8fU0SXvlgda9RoNbB6G10ltxkhb+lfOKFLXTTq6miK+d
vMdmE2xg2ntbCeicC1BndtJK1UBx3mqD4140sHuBahcaFfKc07mQhJcGlTCGgjmhG+HqRS1qpTsc
8pIADYx8FCG+7wnL89YI06eiFPwBVqHIZTUoNErXeVV1ILtH1Va75q0N+4zvBRmkX4TgObdtDyqF
7RPZI13ufpBx6nMc9KpalGTfhMBk5jGXolAavqTuRxkk3uGWNsbGoOIrWZMgpb6F1ZLsOY5r39Ow
nTv9ZkXjY6CpeWxEsdEwzi7rj93LZIfBusuLI3KASzNKzzNio59nJ6Iyoifea5E/ZM5+qazr/G/X
hPX+5xlDSfizpJULB334F93oPzelAwAA


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-04-06  0:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-06  0:58 other/10284: mmap test configury - subtle breakage exposed by corner case zack
  -- strict thread matches above, loose matches on Subject: below --
2003-04-01  4:46 gschafer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).