Skip site navigation (1)Skip section navigation (2)
From:      Walter Hafner <hafner@informatik.tu-muenchen.de>
To:        mark@dogma.freebsd-uk.eu.org
Cc:        questions@freebsd.org, hafner@informatik.tu-muenchen.de
Subject:   Re: Netscape 4.61 (Linux) broken since adding linux_base-5.2
Message-ID:  <srj7lktrm4l.fsf@hprbg5.informatik.tu-muenchen.de>
In-Reply-To: Mark Ovens's message of "Tue, 12 Oct 1999 02:28:22 %2B0100"
References:  <19991011232409.B3243@marder-1> <Pine.BSF.4.10.9910112036490.6347-100000@peloton.runet.edu> <19991012022821.B317@marder-1>

next in thread | previous in thread | raw e-mail | index | archive | help
Well, I've got exactly the same problems as Mark:

Linux programs (acroread, asWedit) ran ok up to FreeBSD 3.1 with the
supplied linux libs. As soon as I upgraded to 3.3, the whole thing
broke. Now, only staroffice still runs - with its own set of libraries.

Note: I didn't upgrade linux_base, I upgraded the base system!

In the meantime I did
- "make world" to 3.3-STABLE,
- pkg_delete'd all packages with linux dependencies and linux support
  itself
- make deinstall of all ports with linux dependencies
- deleted /usr/compat/linux as a whole!
- reinstalled linux_base 5.2
- built a kernel with "options LKM" and "options LINUX" - just in case.

Still no go. I get coredumps all over the place.

I friend of mine just installed a clean 3.3 from CD. I asked him to test 
acroread and it works beautyfully! So I suspect, that there's still
someting left from 3.1 in the system, that crashes Linux support.

Oh, just in case you're wondering:

w3proj2# linux
Linux driver already loaded
w3proj2# kldstat
Id Refs Address    Size     Name
 1    4 0xc0100000 1bb1c4   kernel
 2    2 0xc0c6d000 a000     ibcs2.ko
 3    1 0xc0c7a000 3000     ibcs2_coff.ko
 4    1 0xc0c7f000 f000     linux.ko


I did a "ktrace acroread", all the libs are found and ok. Quoting:


  8623 sh       CALL  execve(0x80a9258,0x80a92a4,0x80a92ac)
  8623 sh       NAMI  "/usr/local/Acrobat3/Reader/intellinux/bin/acroread"
  8623 sh       NAMI  "/compat/linux/lib/ld-linux.so.1"
  8623 acroread RET   execve 0
  ...
  8623 acroread NAMI  "/compat/linux/etc/ld.so.cache"
  8623 acroread RET   open 3
  ...
  8623 acroread NAMI  "/usr/local/Acrobat3/Reader/intellinux/lib/libreadcore.so"
  8623 acroread RET   open 3
  ...
  8623 acroread NAMI  "/usr/local/Acrobat3/Reader/intellinux/lib/libpfs.so"
  8623 acroread RET   open 3
  ...
  8623 acroread NAMI  "/usr/local/Acrobat3/Reader/intellinux/lib/libagm.so"
  8623 acroread RET   open 3
  ...
  8623 acroread NAMI  "/compat/linux/usr/X11R6/lib/libXt.so.6"
  8623 acroread RET   open 3
  ...
  8623 acroread NAMI  "/compat/linux/usr/X11R6/lib/libXext.so.6"
  8623 acroread RET   open 3
  ...
  8623 acroread NAMI  "/compat/linux/usr/X11R6/lib/libX11.so.6"
  8623 acroread RET   open 3
  ...
  8623 acroread NAMI  "/compat/linux/usr/i486-linux-libc5/lib/libm.so.5"
  8623 acroread RET   open 3
  ...
  8623 acroread NAMI  "/compat/linux/lib/libdl.so.1"
  8623 acroread RET   open 3
  ...
  8623 acroread NAMI  "/compat/linux/usr/i486-linux-libc5/lib/libc.so.5"
  8623 acroread RET   open 3
  ...
  8623 acroread NAMI  "/compat/linux/usr/X11R6/lib/libSM.so.6"
  8623 acroread RET   open 3
  ...
  8623 acroread NAMI  "/compat/linux/usr/X11R6/lib/libICE.so.6"
  8623 acroread RET   open 3
  ...
  8623 acroread NAMI  "/compat/linux/lib/libc.so.6"
  8623 acroread RET   open 3
  ...
  8623 acroread NAMI  "/compat/linux/lib/ld-linux.so.2"
  8623 acroread RET   open 3
  ...
  tons of "old.recvfrom" from the libs
  ...
  8623 acroread CALL  getlogin
  8623 acroread RET   getlogin 0
  8623 acroread CALL  getuid
  8623 acroread RET   getuid 0
  8623 acroread CALL  getgid
  8623 acroread RET   getgid 0
  8623 acroread CALL  setlogin
  8623 acroread RET   setlogin 0
  8623 acroread CALL  getpid
  8623 acroread RET   getpid 8623/0x21af
  8623 acroread PSIG  SIGSEGV SIG_DFL
  8623 acroread NAMI  "acroread.core"


and that's it.


w3proj2# pwd
/usr/compat/linux/lib
w3proj2# ll ld-*2*
-rwxr-xr-x  1 root  wheel  160241 13 Okt  1998 ld-2.0.7.so
lrwxr-xr-x  1 root  wheel      11 12 Okt 09:58 ld-linux.so.2 -> ld-2.0.7.so


Same for asWedit:

  8696 asWedit  CALL  setlogin
  8696 asWedit  RET   setlogin 0
  8696 asWedit  CALL  getpid
  8696 asWedit  RET   getpid 8696/0x21f8
  8696 asWedit  PSIG  SIGSEGV SIG_DFL
  8696 asWedit  NAMI  "asWedit.core"

Same with an ordinary user account (above was root):

  8700 asWedit  RET   getlogin 9376/0x24a0
  8700 asWedit  CALL  getuid
  8700 asWedit  RET   getuid 9376/0x24a0
  8700 asWedit  CALL  getgid
  8700 asWedit  RET   getgid 15/0xf
  8700 asWedit  CALL  setlogin
  8700 asWedit  RET   setlogin 15/0xf
  8700 asWedit  CALL  getpid
  8700 asWedit  RET   getpid 8700/0x21fc
  8700 asWedit  PSIG  SIGSEGV SIG_DFL
  8700 asWedit  NAMI  "asWedit.core"



Seems to be the Linux-loader to me. I don't think it's linux_base
dependant. But then - I have no idea of the FreeBSD Linux module. :-)


-Walter

-- 
Dr. Walter Hafner                         Tel: 089/289-28187
WWW-Beauftragter, TU Muenchen           Email: hafner@in.tum.de
                                          WWW: http://www.tum.de/~hafner/


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?srj7lktrm4l.fsf>