From owner-freebsd-i386@FreeBSD.ORG Tue Apr 19 10:20:10 2005 Return-Path: Delivered-To: freebsd-i386@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 56B0116A4CE for ; Tue, 19 Apr 2005 10:20:10 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D737343D45 for ; Tue, 19 Apr 2005 10:20:09 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j3JAK9Ae025371 for ; Tue, 19 Apr 2005 10:20:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j3JAK9uC025370; Tue, 19 Apr 2005 10:20:09 GMT (envelope-from gnats) Resent-Date: Tue, 19 Apr 2005 10:20:09 GMT Resent-Message-Id: <200504191020.j3JAK9uC025370@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-i386@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Drazen Kacar Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9F29916A4CE for ; Tue, 19 Apr 2005 10:17:05 +0000 (GMT) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7A2F643D1F for ; Tue, 19 Apr 2005 10:17:05 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j3JAH2E4084481 for ; Tue, 19 Apr 2005 10:17:02 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id j3JAH218084480; Tue, 19 Apr 2005 10:17:02 GMT (envelope-from nobody) Message-Id: <200504191017.j3JAH218084480@www.freebsd.org> Date: Tue, 19 Apr 2005 10:17:02 GMT From: Drazen Kacar To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: i386/80095: ld-elf.so.1 crashes with executables produced by tinycc X-BeenThere: freebsd-i386@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: I386-specific issues for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Apr 2005 10:20:10 -0000 >Number: 80095 >Category: i386 >Synopsis: ld-elf.so.1 crashes with executables produced by tinycc >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-i386 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Apr 19 10:20:09 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Drazen Kacar >Release: FreeBSD 5.3-RELEASE-p2 i386 >Organization: >Environment: System: FreeBSD vertigo.globalnet.hr 5.3-RELEASE-p2 FreeBSD 5.3-RELEASE-p2 #0 >Description: /usr/libexec/ld-elf.so.1 crashes when trying to execute programs created by tiny cc. tested with tcc version 0.9.22. The tcc web page mentions only Linux, but tcc compiles on FreeBSD and creates executables. file(1) and readelf(1) commands don't have problems with them. Even if the executable cannot work on FreeBSD, ld-elf.so.1 should report an error instead of crashing with SIGSEGV. Besides, having tcc available on FreeBSD would be nice. >How-To-Repeat: Download tcc from the above web page, compile and install it. Compile "hello world" program (ex5.c in tcc distribution, for example). Run the resulting a.out and it will crash. strace(1) and truss(1) will show that the crash is in ld-elf.so.1. "ldd ./a.out" will also crash with SIGSEGV, but that's ld-elf.so.1 problem again. >Fix: Unknown. If somebody could tell me what's the easiest way to debug dynamic loader, I'd be grateful. >Release-Note: >Audit-Trail: >Unformatted: