From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Sep 2 12:40:07 2009 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 4324F10656A7 for ; Wed, 2 Sep 2009 12:40:07 +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 07F0E8FC24 for ; Wed, 2 Sep 2009 12:40:07 +0000 (UTC) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n82Ce6ud045574 for ; Wed, 2 Sep 2009 12:40:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n82Ce6gV045573; Wed, 2 Sep 2009 12:40:06 GMT (envelope-from gnats) Resent-Date: Wed, 2 Sep 2009 12:40:06 GMT Resent-Message-Id: <200909021240.n82Ce6gV045573@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, gonebsd Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AAC301065670 for ; Wed, 2 Sep 2009 12:33:26 +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 9A6648FC0A for ; Wed, 2 Sep 2009 12:33:26 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n82CXQ18081094 for ; Wed, 2 Sep 2009 12:33:26 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n82CXQl1081093; Wed, 2 Sep 2009 12:33:26 GMT (envelope-from nobody) Message-Id: <200909021233.n82CXQl1081093@www.freebsd.org> Date: Wed, 2 Sep 2009 12:33:26 GMT From: gonebsd To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/138481: lang/tcc: tcc compiled executables segfault 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, 02 Sep 2009 12:40:07 -0000 >Number: 138481 >Category: ports >Synopsis: lang/tcc: tcc compiled executables segfault >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Sep 02 12:40:06 UTC 2009 >Closed-Date: >Last-Modified: >Originator: gonebsd >Release: FreeBSD 7.2-RELEASE-p3 i386 >Organization: >Environment: >Description: Every executable compiled using tcc segfaults. Interestingly, if the "-run" is used, the program executes as expected. See the "how to repeat the problem" below. I tried tcc version 0.9.24 (via pkg_add) and 0.9.25 (via ports, using gcc 4.2.1) with the same results. This seems to be FreeBSD specific since I cannot reproduce this on Linux (Arch, with gcc 4.4.1) at all. >How-To-Repeat: echo 'main(){puts("hello");}' | tcc -o output - && ./output Segmentation fault (core dumped) And with "-run": echo 'main(){puts("hello");}' | tcc -run - hello >Fix: >Release-Note: >Audit-Trail: >Unformatted: