From owner-freebsd-bugs@FreeBSD.ORG Mon Jul 15 06:20:00 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id ACAAA446 for ; Mon, 15 Jul 2013 06:20:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 799F0AE2 for ; Mon, 15 Jul 2013 06:20:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r6F6K0G6012460 for ; Mon, 15 Jul 2013 06:20:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r6F6K0TO012459; Mon, 15 Jul 2013 06:20:00 GMT (envelope-from gnats) Resent-Date: Mon, 15 Jul 2013 06:20:00 GMT Resent-Message-Id: <201307150620.r6F6K0TO012459@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Taku YAMAMOTO Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 649D943C for ; Mon, 15 Jul 2013 06:19:28 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) by mx1.freebsd.org (Postfix) with ESMTP id 56253ADB for ; Mon, 15 Jul 2013 06:19:28 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r6F6JRqJ077582 for ; Mon, 15 Jul 2013 06:19:27 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r6F6JRIJ077578; Mon, 15 Jul 2013 06:19:27 GMT (envelope-from nobody) Message-Id: <201307150619.r6F6JRIJ077578@oldred.freebsd.org> Date: Mon, 15 Jul 2013 06:19:27 GMT From: Taku YAMAMOTO To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: misc/180568: r251672 breaks applications which depends on dlopen("libc.so") X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Jul 2013 06:20:00 -0000 >Number: 180568 >Category: misc >Synopsis: r251672 breaks applications which depends on dlopen("libc.so") >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jul 15 06:20:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Taku YAMAMOTO >Release: 10-current as of r252907 >Organization: Unique Vision Company, Japan >Environment: FreeBSD biotite.tackymt.homeip.net 10.0-CURRENT FreeBSD 10.0-CURRENT #274 r+410f38ed-dirty: Sun Jul 14 10:53:03 JST 2013 taku@biotite.tackymt.homeip.net:/home/taku/work/build/biotite/usr/src/sys/BIOTITE i386 >Description: After r251672 /usr/lib/libc.so becomes a plain ASCII text file which contains a linker script. Unfortunately, now dlopen("libc.so") fails because it's not an ELF file, resulting applications which depend on dlopen("libc.so") get broken. Applications which are broken by r251672 currently I know includes, but potentially not limited to: - Firefox (it boots, but exhibits broken behaviour) - Mono applications which P/Invoke libc functions (ends up with System.DllNotFoundException: libc.so) >How-To-Repeat: Firefox case: Launch Firefox with libmap.conf empty. Firefox boots, but it won't load the previous session, URL bar won't navigate us anywhere, etc. Mono applications which use libgdiplus, or anything which P/Invoke's libc's functions: Launch such applications with libmap.conf empty. They ends up with: System.DllNotFoundException: libc.so >Fix: Note this is only a workaround! Put the following line into libmap.conf: libc.so libc.so.7 >Release-Note: >Audit-Trail: >Unformatted: