From owner-freebsd-bugs Fri Jun 23 13:20: 7 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 5C70337B9B7 for ; Fri, 23 Jun 2000 13:20:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id NAA66667; Fri, 23 Jun 2000 13:20:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from cs94004.pp.htv.fi (cs94004.pp.htv.fi [212.90.94.4]) by hub.freebsd.org (Postfix) with ESMTP id 8B4C137C3EC for ; Fri, 23 Jun 2000 13:13:29 -0700 (PDT) (envelope-from jau@cs94004.pp.htv.fi) Received: (from jau@localhost) by cs94004.pp.htv.fi (8.9.3/8.9.3) id XAA67061; Fri, 23 Jun 2000 23:13:16 +0300 (EEST) (envelope-from jau) Message-Id: <200006232013.XAA67061@cs94004.pp.htv.fi> Date: Fri, 23 Jun 2000 23:13:16 +0300 (EEST) From: "Jukka A. Ukkonen" Reply-To: jau@iki.fi To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: i386/19477: linux_rt_sigprocmask() raises SIGSYS Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 19477 >Category: i386 >Synopsis: linux_rt_sigprocmask() raises SIGSYS >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jun 23 13:20:00 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Jukka A. Ukkonen >Release: FreeBSD 3.4-RELEASE i386 >Organization: Private person >Environment: FreeBSD 3.4-RELEASE on i386 with the Linux system calls emulation kernel module loaded >Description: Any Linux program that calls linux_rt_sigprocmask gets SIGSYS and dies on FreeBSD-3.4. Quite a number of Linux binaries seem to make such a call. When running FreeBSD-3.2 the same binaries worked just fine. >How-To-Repeat: Take e.g. the FrameMaker for Linux which is now distributed as a free beta test version. It is the latest Linux program I have had problems with. It can be downloaded from www.adobe.com. (You need to modify the start scripts a bit to make it start normally.) Once the start scripts are fixed to recognize FreeBSD as just another form of "Linux" add ktrace to the script which tries to start the real binary, and start the maker script. The binary crashes immediately at the beginning of the program. Run linux_kdump and look for a call to linux_rt_sigprogmask and SIGSYS at the end of the dump. Several, practically all Linux binaries, except some rather old ones, I have tried seem to produce the same result. Luckily I neither need nor use many Linux binaries though. I gave this report critical priority because this sort of problem could make the whole Linux emulation useless if many Linux programs are using the rt_sigprocmask() system call. As much as I know such a call could be part of the crt0.o for some or even all relatively new Linux versions. This seems to happen so early in the program that it might not have even reached the main() function yet. >Fix: I have not found a fix yet. In fact I guess there might have been a reason for someone changing the behaviour of linux system calls this way, but if there is such a reason I would sure like to know why. I tried to asking people for known reasons or known bugs for this odd behaviour, but apparently nobody has been able to give me any explanation. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message