From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Mar 26 12:00:03 2008 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0007A1065677 for ; Wed, 26 Mar 2008 12:00:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id D6D7A8FC19 for ; Wed, 26 Mar 2008 12:00:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m2QC02Bb082203 for ; Wed, 26 Mar 2008 12:00:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m2QC02DN082202; Wed, 26 Mar 2008 12:00:02 GMT (envelope-from gnats) Resent-Date: Wed, 26 Mar 2008 12:00:02 GMT Resent-Message-Id: <200803261200.m2QC02DN082202@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Henry Hu Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A04E51065671 for ; Wed, 26 Mar 2008 11:59:32 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 94D088FC26 for ; Wed, 26 Mar 2008 11:59:32 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m2QBxILh050119 for ; Wed, 26 Mar 2008 11:59:18 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.2/8.14.1/Submit) id m2QBxIw3050118; Wed, 26 Mar 2008 11:59:18 GMT (envelope-from nobody) Message-Id: <200803261159.m2QBxIw3050118@www.freebsd.org> Date: Wed, 26 Mar 2008 11:59:18 GMT From: Henry Hu To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/122113: fail to start frozen bubble on 7-STABLE and fix X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Mar 2008 12:00:03 -0000 >Number: 122113 >Category: ports >Synopsis: fail to start frozen bubble on 7-STABLE and fix >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Mar 26 12:00:01 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Henry Hu >Release: FreeBSD 7.0-STABLE >Organization: Tsinghua University >Environment: FreeBSD laptop 7.0-STABLE FreeBSD 7.0-STABLE #35: Sun Mar 8 23:19:21 CST 2009 root@laptop:/usr/obj/usr/src/sys/MYKERNEL i386 >Description: After installing games/frozenbubble, I can't start it. It says that "Bad System Call". There's a fix in the pkg-message, but that's not suitable for FreeBSD 7. I found that the problem is the function sem_init in libc. I've written a very simple C program, just used sem_init, and it also says "Bad System Call". The last line of ktrace before SIGSYS said that "Function not implemented". It seems like that it's caused by syscall ksem_init, but I don't know more. But if I compile with -pthread, there's no problem at all. So I started frozen-bubble successedly with env LD_PRELOAD=/usr/lib/libpthread.so frozen-bubble So please add this into pkg-message. This workaround is in fact the same as the one in the pkg-message, but changed for FreeBSD 7. >How-To-Repeat: 1. Install frozenbubble on FreeBSD 7-STABLE 2. Start it >Fix: env LD_PRELOAD=/usr/lib/libpthread.so frozen-bubble >Release-Note: >Audit-Trail: >Unformatted: