From girgen@partitur.se Wed Jul 21 16:53:02 1999
Return-Path: <girgen@partitur.se>
Received: from bastuba.partitur.se (bastuba.partitur.se [193.219.246.194])
	by hub.freebsd.org (Postfix) with ESMTP
	id 1814214EC5; Wed, 21 Jul 1999 16:52:57 -0700 (PDT)
	(envelope-from girgen@partitur.se)
Received: from elbas.partitur.se (elbas.partitur.se [193.219.246.222])
	by bastuba.partitur.se (8.8.8/8.8.8) with ESMTP id BAA29534;
	Thu, 22 Jul 1999 01:52:56 +0200 (CEST)
	(envelope-from girgen@partitur.se)
Received: (from girgen@localhost)
	by elbas.partitur.se (8.9.3/8.9.3) id BAA18828;
	Thu, 22 Jul 1999 01:52:55 +0200 (CEST)
	(envelope-from girgen@partitur.se)
Message-Id: <199907212352.BAA18828@elbas.partitur.se>
Date: Thu, 22 Jul 1999 01:52:55 +0200 (CEST)
From: Palle Girgensohn <girgen@partitur.se>
Reply-To: girgen@partitur.se
To: FreeBSD-gnats-submit@freebsd.org
Cc: marcel@FreeBSD.org
Subject: emulators/linux_base-5.2 and /www/linux-netscape46-communicator problem
X-Send-Pr-Version: 3.2

>Number:         12748
>Category:       ports
>Synopsis:       linux_base-5.2 and linux communicator problem
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    marcel
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 21 17:00:01 PDT 1999
>Closed-Date:    Fri Sep 17 12:22:23 PDT 1999
>Last-Modified:  Fri Sep 17 12:23:32 PDT 1999
>Originator:     Palle Girgensohn
>Release:        FreeBSD 3.2-STABLE i386
>Organization:
Partitur
>Environment:
uname -a

FreeBSD elbas.partitur.se 3.2-STABLE FreeBSD 3.2-STABLE #0:
Wed Jul 21 21:38:03 CEST 1999
girgen@trumpet.partitur.se:/usr/src/sys/compile/WORKSTATION.palle i386

sysctl -n kern.osreldate
320001

>Description:
After installing the fresh linux_base-5.2, using the
linux-communicator-4.61 gives me trouble:

Everthing is smooth, but sending email eats memory at a speed of 3-4
megs/second, until everything is gone (in my case, 256 real + 314 swap!).

It happens when hitting the send button. removing linux_base-5.2 and
reinstalling linux_lib-2.6.1 makes eveything fine again.

When killing netscape, this appears in the /var/log/maillog:
Jul 22 00:55:41 elbas sendmail[18063]: AAA18063: collect: premature EOM: Undefined error: 0
Jul 22 00:55:41 elbas sendmail[18063]: AAA18063: collect: unexpected close on connection from localhost, sender=<girgen@partitur.se>: Undefined error: 0
Jul 22 00:55:41 elbas sendmail[18063]: AAA18063: from=<girgen@partitur.se>, size=0, class=0, pri=0, nrcpts=1, proto=ESMTP, relay=localhost [127.0.0.1]

nothing ever appears in the spool/mqueue

I had to use NEEDLOADLINK= true when installing. Kernel & userland
sources are from July 7:th. Are they too old?

sysctl -n kern.osreldate
320001

>How-To-Repeat:
- install emulators/linux_base-5.2 and www/linux-netscape46-communicator
- try to send an email

>Fix:
- Using the old linux_lib-2.6 fixes it.  

- Adding a LD_LIBRARY_PATH to something?

- Maybe altering the netscape port to use glibc? (don't have time for
  it right now, but this might be an option; not the best solution,
  though, IMHO).

- Apart from that, no idea :(

>Release-Note:
>Audit-Trail:

From: Marcel Moolenaar <marcel@scc.nl>
To: freebsd-gnats-submit@freebsd.org, girgen@partitur.se
Cc:  
Subject: Re: ports/12748: linux_base-5.2 and linux communicator problem
Date: Thu, 22 Jul 1999 08:52:35 +0000

 I wasn't able to trigger the problem by simply sending mail. Maybe the
 problem is also related to specific mails, such as mail with attachment. So
 far, NC4.61 works as expected (this mail was sent by it).
 
 -- 
 Marcel Moolenaar                                  mailto:marcel@scc.nl
 SCC Internetworking & Databases                     http://www.scc.nl/
 Amsterdam, The Netherlands                         tel: +31 20 4200655
 

From: Palle Girgensohn <girgen@partitur.se>
To: Marcel Moolenaar <marcel@scc.nl>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: ports/12748: linux_base-5.2 and linux communicator problem
Date: Fri, 23 Jul 1999 00:30:08 +0200

 Marcel Moolenaar wrote:
 > 
 > I wasn't able to trigger the problem by simply sending mail. Maybe the
 > problem is also related to specific mails, such as mail with attachment. So
 > far, NC4.61 works as expected (this mail was sent by it).
 > 
 
 OK. Sounds good; it's only me having problems. Maybe my system sources
 are too old? July 7th... I'll check it on a simpler environment (this
 was with the compat dir nfs mounted). I'll check this week-end, and get
 back to you.
 
 /Palle
 

From: Marcel Moolenaar <marcel@scc.nl>
To: Palle Girgensohn <girgen@partitur.se>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: ports/12748: linux_base-5.2 and linux communicator problem
Date: Fri, 23 Jul 1999 08:24:59 +0200

 Palle Girgensohn wrote:
 > 
 > Marcel Moolenaar wrote:
 > >
 > > I wasn't able to trigger the problem by simply sending mail. Maybe the
 > > problem is also related to specific mails, such as mail with attachment. So
 > > far, NC4.61 works as expected (this mail was sent by it).
 > 
 > OK. Sounds good; it's only me having problems. Maybe my system sources
 > are too old? July 7th... I'll check it on a simpler environment (this
 > was with the compat dir nfs mounted). I'll check this week-end, and get
 > back to you.
 
 I don't think your -stable version is too old. If it were, then NC4.61
 wouldn't also work with linux_lib. I'm more thinking in the line of
 LD_LIBRARY_PATH settings and/or linux_base installation issues (such as
 whether /compat/linux was empty or not). I know there can be problems when
 nfs behaves badly, so keep that in mind too. As a last remark, Having a
 RH5.2 installation mounted under /compat/linux is not exactly the same as
 installing linux_base. The conflicting set of libraries/binaries is much
 larger for a stock RH5.2 installation (maybe too large)...
 
 Anyway, I'll await your mail.
 
 -- 
 Marcel Moolenaar                                  mailto:marcel@scc.nl
 SCC Internetworking & Databases                     http://www.scc.nl/
 Amsterdam, The Netherlands                         tel: +31 20 4200655
 

From: Palle Girgensohn <girgen@partitur.se>
To: Marcel Moolenaar <marcel@scc.nl>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: ports/12748: linux_base-5.2 and linux communicator problem
Date: Mon, 26 Jul 1999 02:48:17 +0200

 Marcel Moolenaar wrote:
 > 
 ...
 > 
 > Anyway, I'll await your mail.
 > 
 
 Hello Marcel!
 
 I guess you can close the PR. It works fine for me at home. I'll try
 getting it going at the office next week or so; it'll probably work just
 fine; could have been an nfs glitch or something, I'm not sure. Now I
 know it works fine on a standalone machine.
 
 Keep up the good work ;-)
 
 /Palle
 
State-Changed-From-To: open->closed  
State-Changed-By: cpiazza 
State-Changed-When: Sat Jul 31 18:41:36 PDT 1999 
State-Changed-Why:  
Submitter asks that the PR be closed; the problem can't be reproduced. 

From: Palle Girgensohn <girgen@partitur.se>
To: freebsd-gnats-submit@freebsd.org, girgen@partitur.se,
	Marcel Moolenaar <marcel@scc.nl>
Cc:  
Subject: Re: ports/12748: linux_base-5.2 and linux communicator problem
Date: Wed, 04 Aug 1999 01:56:35 +0000

 Hello again,
 
 Unfortunately, the problem *can* be reproduced:
 
 Linux_base doesn't work with NIS/YP, at least not for sending mail with
 netscape. The problem described in PR-12748 happens only when the user
 running linux-netscape is in the NIS/YP database. Local users can send
 mails with no problem, but not when the passwd info is stored in a NIS
 database.
 
 I guess you'll have to reopen this PR? :-(
 
 I have tried the obvious nsswitch.conf, and modified it to use nis and
 files for everything, but to no avail.
 
 I also tried running the glibc version of netscape, but it gives me a
 bus error every time. (I had to install libXpm from an rpm, or it would
 complain about missing libs.)
 
 Maybe it's related to pam or the shadow password file?
 
 I someone could help me fix this, I'll be much obliged!
 
 Thanks!
 
 /Palle
 
 PS. There seems that the libc's are somewhat dirfferent, but may not
 mean anything? (/usr/local/compat is linux_lib-2.6 and /usr/compat is
 linux_base-5.2):
 
 ls -l /usr/compat/linux/usr/i486-linux-libc5/lib/libc.so.5.3.12 \
       /usr/local/compat/linux/lib/libc.so.5.3.12 
 -rwxr-xr-x  1 root  wheel  699776 Sep 10  1998
 /usr/compat/linux/usr/i486-linux-libc5/lib/libc.so.5.3.12*
 -rwxr-xr-x  1 root  569    705995 Oct 25  1996
 /usr/local/compat/linux/lib/libc.so.5.3.12*
 elbas:~$ file  /usr/compat/linux/usr/i486-linux-libc5/lib/libc.so.5.3.12
 \
                /usr/local/compat/linux/lib/libc.so.5.3.12 
 /usr/compat/linux/usr/i486-linux-libc5/lib/libc.so.5.3.12: ELF 32-bit
 LSB shared object, Intel 80386, version 1, not stripped
 /usr/local/compat/linux/lib/libc.so.5.3.12:                ELF 32-bit
 LSB shared object, Intel 80386, version 1, not stripped
 
 DS.
 
State-Changed-From-To: closed->open  
State-Changed-By: cpiazza 
State-Changed-When: Tue Aug 3 20:51:28 PDT 1999 
State-Changed-Why:  
The problem has been found to be reproducable 


Responsible-Changed-From-To: freebsd-ports->marcel  
Responsible-Changed-By: cpiazza 
Responsible-Changed-When: Tue Aug 3 20:51:28 PDT 1999 
Responsible-Changed-Why:  
Over to maintainer 

From: Michael Oski <onemo@jps.net>
To: freebsd-gnats-submit@freebsd.org, girgen@partitur.se
Cc:  
Subject: Re: ports/12748: linux_base-5.2 and linux communicator problem
Date: Sat, 14 Aug 1999 12:34:03 -0700

 I can verify this is a problem. On a freshly installed 3.2-Stable as of
 8/13/99, I can't run any of the Linux apps I've tried (Netscape,
 WordPerfect) if I'm logged in as a NIS+ user on my company's Solaris
 LAN. If I log in as root, everything is fine, haven't tried another
 local only user, will on Monday 8/16.
 
 
 
 

From: Palle Girgensohn <girgen@partitur.se>
To: Michael Oski <onemo@jps.net>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: ports/12748: linux_base-5.2 and linux communicator problem
Date: Sun, 15 Aug 1999 01:50:50 +0200

 Michael Oski wrote:
 > 
 > I can verify this is a problem. On a freshly installed 3.2-Stable as of
 > 8/13/99, I can't run any of the Linux apps I've tried (Netscape,
 > WordPerfect) if I'm logged in as a NIS+ user on my company's Solaris
 > LAN. If I log in as root, everything is fine, haven't tried another
 > local only user, will on Monday 8/16.
 
 I have, and it works with local users. Not with NIS ditto. 
 
 I have tried to set up nsswitch.conf to try to get the linux to
 understand that it should use NIS, but I can't get it to work. 
 
 I'm glad I'm not the only one... How shall we fix this?
 
 /Palle
 

From: Marcel Moolenaar <marcel@scc.nl>
To: freebsd-gnats-submit@freebsd.org, girgen@partitur.se,
	onemo@jps.net
Cc:  
Subject: Re: ports/12748: linux_base-5.2 and linux communicator problem
Date: Mon, 13 Sep 1999 14:47:48 +0200

 Nick Sayer <nsayer@FreeBSD.org> found a quick solution to this problem:
 
 	(cat /etc/passwd ; ypcat passwd ) | egrep -v '^+' >
 /compat/linux/etc/passwd
 
 But possibly only the user running Netscape needs to be in
 {/compat/linux}/etc/passwd.
 
 -- 
 Marcel Moolenaar                        mailto:marcel@scc.nl
 SCC Internetworking & Databases           http://www.scc.nl/
 The FreeBSD project                mailto:marcel@FreeBSD.org
 

From: Palle Girgensohn <girgen@partitur.se>
To: Marcel Moolenaar <marcel@scc.nl>
Cc: freebsd-gnats-submit@freebsd.org, onemo@jps.net,
	nsayer@freebsd.org
Subject: Re: ports/12748: linux_base-5.2 and linux communicator problem
Date: Fri, 17 Sep 1999 16:41:59 +0000

 OK! Thanks to Nick Sayer and Marcel Moolenar, we have a fix! NIS has to
 be configured for linux by creating an yp.conf file:
 
 $ cat /compat/linux/etc/yp.conf 
 # sample yp.conf file
 #
 # Legal entries are:
 #
 #       domainname <domain>             Override the default YP domain
 #                                       (If not set uses the one from
 #                                        the getdomainname() syscall)
 #
 #       ypserver <grape> [<domain>]     Define which host to contact
 #                                       for YP service. If the <domain>
 #                                       argument is included then this
 #                                       host service the specified YP
 #                                       domain.
 domainname freedom
 ypserver grape
 
 ------------
 
 
 There's no need for copying the passwd file. Once nis is configured for
 Linux, it will use the FreeBSD passwd file's "+-records" to get nis
 passwords. I think this file could be added to the distribution of
 linux_base? This way, people having problems might realize what to do to
 fix it. People not running NIS will not be affected, since the "+
 records" are what really activates NIS. Maybe the yp.conf file could
 created on the fly, using `ypwhich` and `domainname`? I'll see what I
 can hack...
 
 /Palle
 
 Marcel Moolenaar wrote:
 > 
 > Nick Sayer <nsayer@FreeBSD.org> found a quick solution to this problem:
 > 
 >         (cat /etc/passwd ; ypcat passwd ) | egrep -v '^+' >
 > /compat/linux/etc/passwd
 > 
 > But possibly only the user running Netscape needs to be in
 > {/compat/linux}/etc/passwd.
 > 
 > --
 > Marcel Moolenaar                        mailto:marcel@scc.nl
 > SCC Internetworking & Databases           http://www.scc.nl/
 > The FreeBSD project                mailto:marcel@FreeBSD.org
 

From: Palle Girgensohn <girgen@partitur.se>
To: nsayer@freebsd.org, freebsd-gnats-submit@freebsd.org
Cc: Marcel Moolenaar <marcel@scc.nl>, onemo@jps.net
Subject: Re: ports/12748: linux_base-5.2 and linux communicator problem
Date: Fri, 17 Sep 1999 20:05:33 +0200

 This is a multi-part message in MIME format.
 --------------F5AC2B431EA42B8B37C508A4
 Content-Type: text/plain; charset=us-ascii
 Content-Transfer-Encoding: 7bit
 
 Hi!
 
 I attach a patch that installs a proper yp.conf. What do you think?
 Maybe the comment only part should be in the rpm?
 
 /Palle
 
 
 Nick Sayer wrote:
 > 
 > This does work! Cool!
 > 
 > Perhaps putting a comment-only template yp.conf file in the Linux /etc/
 > directory
 > would be enough. That, and displaying a note at package installation time
 > suggesting
 > that folks visit /etc/ and configure stuff. I had trouble at first because
 > I had played
 > with nsswitch.conf and removed nis at one point. As soon as I restored the
 > original
 > package's /etc/ directory, though, all became well.
 > 
 > Palle Girgensohn wrote:
 > 
 > > OK! Thanks to Nick Sayer and Marcel Moolenar, we have a fix! NIS has to
 > > be configured for linux by creating an yp.conf file:
 > >
 > > $ cat /compat/linux/etc/yp.conf
 > > # sample yp.conf file
 > > #
 > > # Legal entries are:
 > > #
 > > #       domainname <domain>             Override the default YP domain
 > > #                                       (If not set uses the one from
 > > #                                        the getdomainname() syscall)
 > > #
 > > #       ypserver <grape> [<domain>]     Define which host to contact
 > > #                                       for YP service. If the <domain>
 > > #                                       argument is included then this
 > > #                                       host service the specified YP
 > > #                                       domain.
 > > domainname freedom
 > > ypserver grape
 > >
 > > ------------
 > >
 > > There's no need for copying the passwd file. Once nis is configured for
 > > Linux, it will use the FreeBSD passwd file's "+-records" to get nis
 > > passwords. I think this file could be added to the distribution of
 > > linux_base? This way, people having problems might realize what to do to
 > > fix it. People not running NIS will not be affected, since the "+
 > > records" are what really activates NIS. Maybe the yp.conf file could
 > > created on the fly, using `ypwhich` and `domainname`? I'll see what I
 > > can hack...
 > >
 > > /Palle
 > >
 > > Marcel Moolenaar wrote:
 > > >
 > > > Nick Sayer <nsayer@FreeBSD.org> found a quick solution to this problem:
 > > >
 > > >         (cat /etc/passwd ; ypcat passwd ) | egrep -v '^+' >
 > > > /compat/linux/etc/passwd
 > > >
 > > > But possibly only the user running Netscape needs to be in
 > > > {/compat/linux}/etc/passwd.
 > > >
 > > > --
 > > > Marcel Moolenaar                        mailto:marcel@scc.nl
 > > > SCC Internetworking & Databases           http://www.scc.nl/
 > > > The FreeBSD project                mailto:marcel@FreeBSD.org
 --------------F5AC2B431EA42B8B37C508A4
 Content-Type: text/plain; charset=us-ascii;
  name="linux_base.diff"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline;
  filename="linux_base.diff"
 
 diff -urN linux_base/Makefile linux_base.new/Makefile
 --- linux_base/Makefile	Mon Sep 13 14:28:31 1999
 +++ linux_base.new/Makefile	Fri Sep 17 19:55:35 1999
 @@ -169,6 +169,12 @@
  	done
  	@${LN} -s /var/tmp ${PREFIX}/usr/tmp
  
 +	if [ X`domainname` != X ]; then \
 +		${INSTALL_DATA} ${FILESDIR}/yp.conf ${PREFIX}/etc; \
 +		${ECHO} domainname `domainname` >> ${PREFIX}/etc/yp.conf; \
 +		${ECHO} ypserver `ypwhich` >> ${PREFIX}/etc/yp.conf; \
 +	fi
 +
  post-install:
  	@${ECHO} ''
  	@fmt ${PKGMESSAGE}
 diff -urN linux_base/files/yp.conf linux_base.new/files/yp.conf
 --- linux_base/files/yp.conf	Thu Jan  1 01:00:00 1970
 +++ linux_base.new/files/yp.conf	Fri Sep 17 19:41:12 1999
 @@ -0,0 +1,13 @@
 +# sample yp.conf file
 +#
 +# Legal entries are:
 +#
 +#       domainname <domain>             Override the default YP domain
 +#                                       (If not set uses the one from
 +#                                        the getdomainname() syscall)
 +#
 +#       ypserver <grape> [<domain>]     Define which host to contact
 +#                                       for YP service. If the <domain>
 +#                                       argument is included then this
 +#                                       host service the specified YP
 +#                                       domain.
 
 --------------F5AC2B431EA42B8B37C508A4--
 
 

From: Palle Girgensohn <girgen@partitur.se>
To: nsayer@freebsd.org, freebsd-gnats-submit@freebsd.org
Cc: Marcel Moolenaar <marcel@scc.nl>, onemo@jps.net
Subject: Re: ports/12748: linux_base-5.2 and linux communicator problem
Date: Fri, 17 Sep 1999 18:08:58 +0000

 Hmm.. I missed adding yp.conf to the pkg/PLIST.* files.
 
 Probably always including the comment only yp.conf file, and doing the
 echoes if domainname is set, is the best way.
 
 /Palle
 
 Nick Sayer wrote:
 > 
 > This does work! Cool!
 > 
 > Perhaps putting a comment-only template yp.conf file in the Linux /etc/
 > directory
 > would be enough. That, and displaying a note at package installation time
 > suggesting
 > that folks visit /etc/ and configure stuff. I had trouble at first because
 > I had played
 > with nsswitch.conf and removed nis at one point. As soon as I restored the
 > original
 > package's /etc/ directory, though, all became well.
 > 
 > Palle Girgensohn wrote:
 > 
 > > OK! Thanks to Nick Sayer and Marcel Moolenar, we have a fix! NIS has to
 > > be configured for linux by creating an yp.conf file:
 > >
 > > $ cat /compat/linux/etc/yp.conf
 > > # sample yp.conf file
 > > #
 > > # Legal entries are:
 > > #
 > > #       domainname <domain>             Override the default YP domain
 > > #                                       (If not set uses the one from
 > > #                                        the getdomainname() syscall)
 > > #
 > > #       ypserver <grape> [<domain>]     Define which host to contact
 > > #                                       for YP service. If the <domain>
 > > #                                       argument is included then this
 > > #                                       host service the specified YP
 > > #                                       domain.
 > > domainname freedom
 > > ypserver grape
 > >
 > > ------------
 > >
 > > There's no need for copying the passwd file. Once nis is configured for
 > > Linux, it will use the FreeBSD passwd file's "+-records" to get nis
 > > passwords. I think this file could be added to the distribution of
 > > linux_base? This way, people having problems might realize what to do to
 > > fix it. People not running NIS will not be affected, since the "+
 > > records" are what really activates NIS. Maybe the yp.conf file could
 > > created on the fly, using `ypwhich` and `domainname`? I'll see what I
 > > can hack...
 > >
 > > /Palle
 > >
 > > Marcel Moolenaar wrote:
 > > >
 > > > Nick Sayer <nsayer@FreeBSD.org> found a quick solution to this problem:
 > > >
 > > >         (cat /etc/passwd ; ypcat passwd ) | egrep -v '^+' >
 > > > /compat/linux/etc/passwd
 > > >
 > > > But possibly only the user running Netscape needs to be in
 > > > {/compat/linux}/etc/passwd.
 > > >
 > > > --
 > > > Marcel Moolenaar                        mailto:marcel@scc.nl
 > > > SCC Internetworking & Databases           http://www.scc.nl/
 > > > The FreeBSD project                mailto:marcel@FreeBSD.org
 

From: Marcel Moolenaar <marcel@scc.nl>
To: Palle Girgensohn <girgen@partitur.se>
Cc: nsayer@freebsd.org, freebsd-gnats-submit@freebsd.org,
	onemo@jps.net
Subject: Re: ports/12748: linux_base-5.2 and linux communicator problem
Date: Fri, 17 Sep 1999 20:58:50 +0200

 Palle Girgensohn wrote:
 > Hmm.. I missed adding yp.conf to the pkg/PLIST.* files.
 > 
 > Probably always including the comment only yp.conf file, and doing the
 > echoes if domainname is set, is the best way.
 
 Nick Sayer wrote:
 > Perhaps putting a comment-only template yp.conf file in the Linux /etc/
 > directory would be enough. That, and displaying a note at package
 > installation time suggesting that folks visit /etc/ and configure stuff.
 
 I'll go for the template only option (with a proper note) for now. Creating
 a proper yp.conf is simple for any user that previously installed and
 configured NIS. Setting up yp.conf on the fly is nice, but only if it works
 for both the port and the package. I'll look into that if time permits. In
 the mean time, I'll "fix" the port.
 
 -- 
 Marcel Moolenaar                        mailto:marcel@scc.nl
 SCC Internetworking & Databases           http://www.scc.nl/
 The FreeBSD project                mailto:marcel@FreeBSD.org
 
State-Changed-From-To: open->closed 
State-Changed-By: marcel 
State-Changed-When: Fri Sep 17 12:22:23 PDT 1999 
State-Changed-Why:  
Solution found. Port fixed. Thanks to Palle and Nick. 
>Unformatted:
