Netscape 2.0 breaks RedHat 2.0 Linux

Netscape 2.0 breaks RedHat 2.0 Linux

Post by James Nje » Mon, 27 Nov 1995 04:00:00



Hi:

I recently installed RedHat 2.0 ELF with a.out support (using defaults
all the way). The libc is libc 5.0.9 shared. The ld.so is
ld.so.1.7.5.

All looked fine for all until I run netscape 2.0x.

I started running Netscape 2.0b2 or 2.0b3 (same results
either way).

After I start netscape, I am unable to run any other command
(eg "ls" or "who" or "free") on my system until I quit
netscape! The message I get when I try an "ls" in any window while
netscape is up is:

        > ls
        ls: can't map '/dev/zero'
        ls: can't map '/dev/zero'
        ls: can't load library 'libc.so.5'

Is there a problem with ELF or a.out support for the 2.0 RedHat
disributions? I could not see anything at the RedHat WEB site. I used to run
Slackware with no such problems.

Has anyone had this problem?


-James

 
 
 

Netscape 2.0 breaks RedHat 2.0 Linux

Post by Michael Breue » Thu, 30 Nov 1995 04:00:00


It would seem that netscape takes whatever memory it can get.  If you
run as root, this is ALL your memory.

Solution: Don't run netscape as root.


[snip]
> After I start netscape, I am unable to run any other command
> (eg "ls" or "who" or "free") on my system until I quit
> netscape! The message I get when I try an "ls" in any window while
> netscape is up is:

>         > ls
>         ls: can't map '/dev/zero'
>         ls: can't map '/dev/zero'
>         ls: can't load library 'libc.so.5'

[snip]

> -James

--
Michael Breuer
Securities Industry Automation Corporation
Two MetroTech Center 6FL; Brooklyn, NY 11201


 
 
 

Netscape 2.0 breaks RedHat 2.0 Linux

Post by Alex Martel » Sat, 02 Dec 1995 04:00:00


        ...

Quote:>It would seem that netscape takes whatever memory it can get.  If you
>run as root, this is ALL your memory.
>Solution: Don't run netscape as root.
        ...
>>         ls: can't map '/dev/zero'
>>         ls: can't map '/dev/zero'
>>         ls: can't load library 'libc.so.5'

Another possible solution is either to upgrade to a very recent kernel
(I think anything over 1.3.40 should work, though I only tried 1.3.45),
or, if you're a 1.2.13 aficionado like me, to fix your 1.2.13 kernel
source by applying this one-line patch to mm/mmap.c which Linus himself
suggested...:

*** mmap.c.save Tue Nov 28 23:23:03 1995
--- mmap.c      Tue Nov 28 23:23:21 1995
***************
*** 199,204 ****
--- 199,205 ----
                if (fd >= NR_OPEN || !(file = current->files->fd[fd]))
                        return -EBADF;
        }
+         flags &= ~(MAP_EXECUTABLE | MAP_DENYWRITE);
        return do_mmap(file, get_fs_long(buffer), get_fs_long(buffer+1),
                get_fs_long(buffer+2), flags, get_fs_long(buffer+5));
  }

This worked for me (as did uprading to 1.3.45, but I'd rather be
running a "production" kernel).  Incidentally, rebuilding the
kernel with this patch is of course very fast, since (assuming
you've ever recompiled your kernel at all, of course!) you only need
to redo the "make zImage" and it will only compile one file and
relink -- no need to redo the make config/dep/clean rigmarole.

Others reported success with upgrading to a recent ld.so (but I
tried the very latest, ld.so.1.7.11, and it did nothing for me),
or even more obscure "fixes".  

Alex
--
Alex Martelli, Bologna, Italia -- DISCLAIMER: these are only MY opinions...!
 __   Man has no Body distinct from his Soul...         |  William Blake
 \/   Energy is the only life, and is from the Body...  |     DID know
      Energy is Eternal Delight.                        |  where it's at...

 
 
 

Netscape 2.0 breaks RedHat 2.0 Linux

Post by James Mcphers » Fri, 08 Dec 1995 04:00:00


: It would seem that netscape takes whatever memory it can get.  If you
: run as root, this is ALL your memory.

: Solution: Don't run netscape as root.

What I did was somewhat different, since running netscape 2.0b3 as root
produced the same problem. I fired up emacs and edited netscape, changed
/dev/zero to /dev/zerp -- it works now, it's a no-brainer of a kludge, and
I'd much prefer to not have to do it again. But then again, if I had the
source, (or I could figure out why mosaic 2.7b3 won't compile for me using
motif 2.0) then I wouldn't have to, would I ;)

cheers,
jcm
--

Historian/Inter Library Loans


        Anglican Youth Ministries, Diocese of Brisbane
        http://www.uq.oz.au/~mljmcphe

 
 
 

1. Netscape 2.0 breaks RedHat 2.0 Linux

How much RAM do you have?  How much swap?  Is your swap enabled?
Netscape is a large program and, since it's statically linked,
consumes lots of memory (it doesn't re-use your shared X libraries
but uses its own statically linked copy).

The only thing I can think of is that all your memory and swap is
consumed, an an mmap() call is failing when the dynamic linker tries
to run (to link ls with libc).
--

Anagrams for "information superhighway":      Enormous hairy pig with fan
                                                A rough whimper of insanity

2. Linux window manager adds border to a borderless Java JWindow

3. linux-2.2.0 + broken scsi tape -> linux-2.2.0 crashes

4. HELP: mkdev tape - can't remove QIC Cartridge?

5. RedHat and Linux 2.0 -- upgrade broke, need help

6. LILO - boot.b

7. RedHat 3.0.3 upgrade to 2.0 kernel is 2.0.?

8. Problem with CD-ROM

9. Linux 2.0 or Linux 2.0 (glibc)?

10. To Linux 2.0 or Not to Linux 2.0??

11. net-tools-1.2.0 under linux 2.0.x

12. BCM 4210 - HomePNA 2.0 Driver for Linux (works with all HomePNA 2.0 cards)

13. 3c59x broken in (vortex) driver broken in higher 2.0.x?