From owner-freebsd-emulation Mon Dec 10 2:37:41 2001 Delivered-To: freebsd-emulation@freebsd.org Received: from fiinbeck.math.ntnu.no (fiinbeck.math.ntnu.no [129.241.15.140]) by hub.freebsd.org (Postfix) with SMTP id E12C637B417 for ; Mon, 10 Dec 2001 02:37:37 -0800 (PST) Received: (qmail 32988 invoked from network); 10 Dec 2001 10:37:36 -0000 Received: from localhost (127.0.0.1) by localhost with SMTP; 10 Dec 2001 10:37:36 -0000 To: emulation@freebsd.org Subject: Re: tarball vs. make world - differences ? In-Reply-To: References: X-Mailer: Mew version 1.94.2 on Emacs 20.7 / Mule 4.0 (HANANOEN) X-URL: http://www.math.ntnu.no/~hanche/ Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 8bit Message-Id: <20011210113736V.hanche@math.ntnu.no> Date: Mon, 10 Dec 2001 11:37:36 +0100 From: Harald Hanche-Olsen X-Dispatcher: imput version 20000228(IM140) Lines: 9 Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org + "Joesh Juphland" : | For instance, am I missing something or breaking something by not | havine a /proc in the jail ? Not likely. Some people run without procfs being enabled in the kernel (for security reasons), and have no problems with that. - Harald To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Mon Dec 10 2:52:14 2001 Delivered-To: freebsd-emulation@freebsd.org Received: from atlantis.homeip.net (a30032.upc-a.chello.nl [62.163.30.32]) by hub.freebsd.org (Postfix) with SMTP id 949A837B419 for ; Mon, 10 Dec 2001 02:52:09 -0800 (PST) Received: (qmail 78031 invoked from network); 10 Dec 2001 10:52:07 -0000 Received: from jeremy.ourhome.nl (192.168.1.4) by atlantis.ourhome.nl with SMTP; 10 Dec 2001 10:52:07 -0000 Date: Mon, 10 Dec 2001 11:52:04 +0100 From: Willem van Engen To: freebsd-emulation@freebsd.org Subject: flexlm: works with linux_base-6, fails with linux_base-7 Message-Id: <20011210115204.6ddde325.wvengen@stack.nl> X-Mailer: Sylpheed version 0.6.5 (GTK+ 1.2.10; i386--freebsd4.4) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, because of staroffice6, I installed linux_base-7. Staroffice works great, but now flexlm (both for maple and matlab) stops working. It claims that the vendor daemon cannot establish a lock. Looking at the ktrace dump, the semget fails. I have no idea why. Can anyone help me? Or do I really have to use linux_base-6 for this? Thanks, - Willem van Engen semaphore&system stats: $ uname -a FreeBSD jeremy 4.4-STABLE FreeBSD 4.4-STABLE #1: Fri Dec 7 11:48:56 CET 2001 wvengen@jeremy:/usr/src/sys/compile/JEREMY.debug i386 $ ipcs -S seminfo: semmap: 30 (# of entries in semaphore map) semmni: 10 (# of semaphore identifiers) semmns: 60 (# of semaphores in system) semmnu: 30 (# of undo structures in system) semmsl: 60 (max # of semaphores per id) semopm: 100 (max # of operations per semop call) semume: 10 (max # of undo entries per process) semusz: 92 (size in bytes of undo structure) semvmx: 32767 (semaphore maximum value) semaem: 16384 (adjust on exit max value) $ ipcs -s Semaphores: T ID KEY MODE OWNER GROUP linux_base-7: 492 maplelmg CALL open(0x80c3ee0,0x42,0x1b6) 492 maplelmg NAMI "/compat/linux/usr/tmp" 492 maplelmg NAMI "/usr/tmp/lockmaplelmg" 492 maplelmg RET open 5 492 maplelmg CALL semget(0x5,0x6,0xbfbff12c) 492 maplelmg RET semget -1 errno -22 Unknown error: -22 492 maplelmg CALL close(0x5) 492 maplelmg RET close 0 492 maplelmg CALL fchdir(0) 492 maplelmg RET fchdir 1007723002/0x3c10a1fa 492 maplelmg CALL write(0x1,0x280d6000,0x5d) 492 maplelmg GIO fd 1 wrote 93 bytes "12:03:22 (maplelmg) cannot establish lock - exiting (file: /usr/tmp/lo\ ckmaplelmg, errno: 22) " linux_base-6: 7162 maplelmg CALL open(0x80c3ee0,0x42,0x1b6) 7162 maplelmg NAMI "/compat/linux/usr/tmp" 7162 maplelmg NAMI "/compat/linux/usr/tmp/lockmaplelmg" 7162 maplelmg RET open 4 7162 maplelmg CALL reboot(0x4,0x6,0xbfbff164) 7162 maplelmg RET reboot 0 7162 maplelmg CALL pipe(0x80c6848) 7162 maplelmg RET pipe 0 7162 maplelmg CALL pipe(0x80c6850) 7162 maplelmg RET pipe 0 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Tue Dec 11 6:22:22 2001 Delivered-To: freebsd-emulation@freebsd.org Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by hub.freebsd.org (Postfix) with ESMTP id C433037B405 for ; Tue, 11 Dec 2001 06:22:15 -0800 (PST) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.9.3/8.9.3) with ESMTP id JAA25399; Tue, 11 Dec 2001 09:22:09 -0500 (EST) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.11.3/8.9.1) id fBBELil19242; Tue, 11 Dec 2001 09:21:44 -0500 (EST) (envelope-from gallatin@cs.duke.edu) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15382.5752.295875.987980@grasshopper.cs.duke.edu> Date: Tue, 11 Dec 2001 09:21:44 -0500 (EST) To: Willem van Engen Cc: freebsd-emulation@freebsd.org Subject: Re: flexlm: works with linux_base-6, fails with linux_base-7 In-Reply-To: <20011210115204.6ddde325.wvengen@stack.nl> References: <20011210115204.6ddde325.wvengen@stack.nl> X-Mailer: VM 6.75 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Willem van Engen writes: > 492 maplelmg CALL open(0x80c3ee0,0x42,0x1b6) > 492 maplelmg NAMI "/compat/linux/usr/tmp" > 492 maplelmg NAMI "/usr/tmp/lockmaplelmg" > 492 maplelmg RET open 5 > 492 maplelmg CALL semget(0x5,0x6,0xbfbff12c) > 492 maplelmg RET semget -1 errno -22 Unknown error: -22 When posting kdumps of linux binaries, make sure to use linux_kdump, not kdump. The system call numbers are different between FreeBSD & linux. If you use the wrong kdump, you get misleading output. The failing syscall there (semget == #221) is actually linux_fcntl64 Try enabling debugging for linux_fcntl64 in sys/compat/linux/linux_file.c Drew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Tue Dec 11 9:42:24 2001 Delivered-To: freebsd-emulation@freebsd.org Received: from atlantis.homeip.net (a30032.upc-a.chello.nl [62.163.30.32]) by hub.freebsd.org (Postfix) with SMTP id 65AAA37B434 for ; Tue, 11 Dec 2001 09:41:34 -0800 (PST) Received: (qmail 94582 invoked from network); 11 Dec 2001 17:41:32 -0000 Received: from jeremy.ourhome.nl (192.168.1.4) by atlantis.ourhome.nl with SMTP; 11 Dec 2001 17:41:32 -0000 Date: Tue, 11 Dec 2001 18:41:31 +0100 From: Willem van Engen To: "Andrew Gallatin" Cc: freebsd-emulation@freebsd.org Subject: Re: flexlm: works with linux_base-6, fails with linux_base-7 Message-Id: <20011211184131.0425b1fd.wvengen@stack.nl> In-Reply-To: <15382.5752.295875.987980@grasshopper.cs.duke.edu> References: <20011210115204.6ddde325.wvengen@stack.nl> <15382.5752.295875.987980@grasshopper.cs.duke.edu> X-Mailer: Sylpheed version 0.6.5 (GTK+ 1.2.10; i386--freebsd4.4) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Tue, 11 Dec 2001 09:21:44 -0500 (EST) "Andrew Gallatin" wrote: > > Willem van Engen writes: > > 492 maplelmg CALL open(0x80c3ee0,0x42,0x1b6) > > 492 maplelmg NAMI "/compat/linux/usr/tmp" > > 492 maplelmg NAMI "/usr/tmp/lockmaplelmg" > > 492 maplelmg RET open 5 > > 492 maplelmg CALL semget(0x5,0x6,0xbfbff12c) > > 492 maplelmg RET semget -1 errno -22 Unknown error: -22 > > When posting kdumps of linux binaries, make sure to use linux_kdump, > not kdump. The system call numbers are different between FreeBSD & > linux. If you use the wrong kdump, you get misleading output. I see, thanks! > The failing syscall there (semget == #221) is actually linux_fcntl64 > Try enabling debugging for linux_fcntl64 in > sys/compat/linux/linux_file.c Ok, I compiled a kernel module with DEBUG defined and added some extra printf's. The relevant output can be found below. So this is a fcntl64(fd, F_SETLK, {0,0,0,F_WRLCK,SEEK_CUR}). When I look at it with linux_base-6, the same arguments are used. At the moment I have no clue. - Willem Kernel messages: Dec 11 18:21:27 jeremy /kernel: linux(1960): fstat64(4, *) Dec 11 18:21:27 jeremy /kernel: linux(1960): mmap(0, 8192, 3, 0x00000022, -1, 0) Dec 11 18:21:27 jeremy /kernel: -> (0, 8192, 3, 0x00001002, -1, 0) Dec 11 18:21:27 jeremy /kernel: linux(1960): llseek(4, 0:0, 0) Dec 11 18:21:27 jeremy /kernel: linux(1960): open(/usr/tmp/lockmaplelmg, 0x42, 0x1b6) Dec 11 18:21:27 jeremy /kernel: linux(1960): open returns error 0 Dec 11 18:21:27 jeremy /kernel: linux(1960): fcntl64(4, 00000006, *) Dec 11 18:21:27 jeremy /kernel: > fcntl_bsd(4, F_SETLK, flock) Dec 11 18:21:27 jeremy /kernel: > bsd.l_start = 0, lin.l_start = 0 Dec 11 18:21:27 jeremy /kernel: > bsd.l_len = 0, lin.l_len = 0 Dec 11 18:21:27 jeremy /kernel: > bsd.l_pid= 0, lin.l_pid = 0 Dec 11 18:21:27 jeremy /kernel: > bsd.l_type= 3, lin.l_type = 1 Dec 11 18:21:27 jeremy /kernel: > bsd.l_whence= 1, lin.l_whence = 1 Dec 11 18:21:27 jeremy /kernel: linux(1960): time(*) Dec 11 18:21:27 jeremy /kernel: linux(1959): real select returns 4 Dec 11 18:21:27 jeremy /kernel: linux(1959): select_out -> 4 Dec 11 18:21:27 jeremy /kernel: linux(1959): sendsig(0x8050550, 20, 0xc9074f2c,0) linux_kdump with linux_base-7: 925 maplelmg CALL close(0x4) 925 maplelmg RET close 0 925 maplelmg CALL munmap(0x28203000,0x2000) 925 maplelmg RET munmap 0 925 maplelmg CALL linux_open(0x80c3ee0,0x42,0x1b6) 925 maplelmg NAMI "/compat/linux/usr/tmp" 925 maplelmg NAMI "/usr/tmp/lockmaplelmg" 925 maplelmg RET linux_open 4 925 maplelmg CALL linux_fcntl64(0x4,0x6,0xbfbff114) 925 maplelmg RET linux_fcntl64 -1 errno 22 Invalid argument 925 maplelmg CALL close(0x4) 925 maplelmg RET close 0 925 maplelmg CALL linux_time(0) 925 maplelmg RET linux_time 1008086436/0x3c162da4 925 maplelmg CALL write(0x1,0x280d6000,0x5d) 925 maplelmg GIO fd 1 wrote 93 bytes "17:00:36 (maplelmg) cannot establish lock - exiting (file: /usr/tmp/lo\ ckmaplelmg, errno: 22) " 925 maplelmg RET write 93/0x5d 925 maplelmg CALL close(0x1) 925 maplelmg RET close 0 925 maplelmg CALL munmap(0x280d6000,0x2000) 925 maplelmg RET munmap 0 925 maplelmg CALL exit(0x29) 924 lmgrd PSIG SIGCHLD caught handler=0x8050550 mask=0x0 code=0x0 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Tue Dec 11 11:24:11 2001 Delivered-To: freebsd-emulation@freebsd.org Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by hub.freebsd.org (Postfix) with ESMTP id 5439C37B405 for ; Tue, 11 Dec 2001 11:24:04 -0800 (PST) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.9.3/8.9.3) with ESMTP id OAA05296; Tue, 11 Dec 2001 14:23:58 -0500 (EST) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.11.3/8.9.1) id fBBJNXL20347; Tue, 11 Dec 2001 14:23:33 -0500 (EST) (envelope-from gallatin@cs.duke.edu) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15382.23861.710621.118157@grasshopper.cs.duke.edu> Date: Tue, 11 Dec 2001 14:23:33 -0500 (EST) To: Willem van Engen Cc: freebsd-emulation@freebsd.org Subject: Re: flexlm: works with linux_base-6, fails with linux_base-7 In-Reply-To: <20011211184131.0425b1fd.wvengen@stack.nl> References: <20011210115204.6ddde325.wvengen@stack.nl> <15382.5752.295875.987980@grasshopper.cs.duke.edu> <20011211184131.0425b1fd.wvengen@stack.nl> X-Mailer: VM 6.75 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Willem van Engen writes: > So this is a fcntl64(fd, F_SETLK, {0,0,0,F_WRLCK,SEEK_CUR}). > When I look at it with linux_base-6, the same arguments are used. > At the moment I have no clue. I don't see anything obvious either. Are you sure that the bsd_flock contains the same thing in the linux_base-6 case? If so, there might be some other difference that's causing the fnctl to fail. The next thing I'd do is to set a ddb breakpoint in linux_fcntl64 & step through its call to fcntl(). Or just instrument the F_SETLK path of fcntl, but that mgith lead to too many printfs. Cheers, Drew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Tue Dec 11 18:31:38 2001 Delivered-To: freebsd-emulation@freebsd.org Received: from miles.lambdawerks.org (miles.lambdawerks.org [207.115.75.96]) by hub.freebsd.org (Postfix) with ESMTP id B5A0437B405 for ; Tue, 11 Dec 2001 18:31:35 -0800 (PST) Received: from localhost (reggie@localhost) by miles.lambdawerks.org (8.11.6/8.11.6) with ESMTP id fBC2VT334286 for ; Tue, 11 Dec 2001 18:31:30 -0800 (PST) (envelope-from reggie@lambdawerks.org) Date: Tue, 11 Dec 2001 18:31:29 -0800 (PST) From: "Reginald S. Perry" To: freebsd-emulation@freebsd.org Subject: Control-C not being passed to process? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I am running LispWorks on a 4.4-STABLE built on Dec 3. On linux, when I send a Control-C it behaves like below: CL-USER 1 > Break. 1 (continue) Return from break. 2 (abort) Return to level 0. 3 Return to top loop level 0. Type :b for backtrace, :c