Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Oct 2002 16:58:02 +0200 (CEST)
From:      Per Christian Henden <perchrh@stud.math.ntnu.no>
To:        openoffice@FreeBSD.ORG
Subject:   OpenOffice in ports: usage of /proc/
Message-ID:  <Pine.BSF.4.44.0210251645490.6607-100000@mona.math.ntnu.no>
In-Reply-To: <20021013165529.W15308-100000@levais.imp.ch>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

I'm using a FreeBSD system with no /proc filesystem, and because of this
(I think) openoffice from ports segfaults.

ktrace /usr/local/OpenOffice.org1.0/setup and kdump reveals:

  6587 setup.bin CALL  getpid
  6587 setup.bin RET   getpid 6587/0x19bb
  6587 setup.bin CALL  open(0xbfbfd400,0,0)
  6587 setup.bin NAMI  "/proc/6587/cmdline"
  6587 setup.bin RET   open -1 errno 2 No such file or directory
  6587 setup.bin CALL  getpid
  6587 setup.bin RET   getpid 6587/0x19bb
  6587 setup.bin CALL  open(0xbfbfe080,0,0)
  6587 setup.bin NAMI  "/proc/6587/cmdline"
  6587 setup.bin RET   open -1 errno 2 No such file or directory
  6587 setup.bin PSIG  SIGSEGV SIG_DFL
  6587 setup.bin NAMI  "core"

The patch patch-sal+osl+unx+system.h in (todays)
ports-stable and ports-current editors/openoffice/files/

contains the line
+#      define  CMD_ARG_PROC_NAME                       "/proc/%u/cmdline"

This is the reason for the segfault as far as I can see.

Is it possible to do without the use of /proc? If not there should be a
check to see if /proc is mounted/is enabled in the kernel/has some files
inside of it before the program assumes it is.

I should fix this myself, I know, but I don't know C/C++ :(

-- 
Per Christian Henden, perchrh@stud.ntnu.no
---------------------
Why don't elephants eat penguins ?

Because they can't get the wrappers off ...


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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.44.0210251645490.6607-100000>