From owner-freebsd-hackers Wed May 10 10:09:35 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id KAA26505 for hackers-outgoing; Wed, 10 May 1995 10:09:35 -0700 Received: from romulus.worldbank.org (romulus.worldbank.org [138.220.104.9]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id KAA26496 for ; Wed, 10 May 1995 10:09:32 -0700 Received: by romulus.worldbank.org; id AA29887; Wed, 10 May 1995 13:12:25 -0400 Date: Wed, 10 May 1995 13:12:25 -0400 From: "Alok K. Dhir" Message-Id: <9505101712.AA29887@romulus.worldbank.org> To: hackers@FreeBSD.org Subject: (fwd) mmap() problem [940412-SNAP, pdksh] Newsgroups: comp.unix.bsd.freebsd.misc Sender: hackers-owner@FreeBSD.org Precedence: bulk Not sure - but this looks like a possible bug? Has this been addressed already? Thanks... (this is from the newsgroup...) Path: minerva.worldbank.org!uunet!gatech!howland.reston.ans.net!agate!nntp-ucb.barrnet.net!nntp-hub2.barrnet.net!news1.digital.com!pa.dec.com!erandall From: erandall@reo.dec.com (Ed Randall) Newsgroups: comp.unix.bsd.freebsd.misc Subject: mmap() problem [940412-SNAP, pdksh] Date: 9 May 1995 11:11:59 GMT Organization: Digital Equipment Corporation, Palo Alto, CA, USA Lines: 37 Message-ID: <3onilv$5jb$1@usenet.pa.dec.com> NNTP-Posting-Host: cics03.reo.dec.com X-Newsreader: TIN [version 1.2 PL2] Over the weekend I finally erased Linux and began installing FreeBSD from the 950412-SNAP distribution. Having struggled through a few initial partitioning problems (don't do too many things in "disklabel", it crashes !) I finally got it all up & running. Problem #1 - all my old scripts don't work, 'cos I always write 'em in ksh; So I got the pdksh-??.13 (the latest anyway) distribution, and started to build it. Problem #2 - During the "configure" script, it hangs when scanning for "mmap()". A "kill -9" of the parent shell of the "configure" process will bring back a prompt ... but the "configure" process is still there. Any attempt to "ls" the directory it was in, or "cat" any files in that directory, result in another hang. Oh dear ! I investigated this in more depth (adding printf's to the .c file used by "configure" for testing "mmap()") and it seems that the hang occurs in the read() performed just after the call to "mmap()". "Oh well, it's obviously broken" I thought, and hacked "configure" so that "HAVE_MMAP" doesn't get defined, and the problematical test is skipped. I now have a working "ksh", all seems well. But what of the miscreant "mmap()" ? Is this a known bug, or should it work ? Has anybody else had similar problems when running the "configure" scripts provided with most ports ? Any help / pointers / ideas gratefully accepted ! Ed ---------------------------------------------------------------------- Ed Randall Digital Equipment Co.Ltd., Worton Grange, Reading DECnet : RDGENG::RANDALL Internal phone : 7-830-4712 Internet : erandall@muffit.reo.dec.com Telephone: (01734) 204712 ----------------------------------------------------------------------