From nobody@FreeBSD.org  Tue Apr 19 10:17:05 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 9F29916A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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 <dave@fly.srk.fer.hr>
To: freebsd-gnats-submit@FreeBSD.org
Subject: ld-elf.so.1 crashes with executables produced by tinycc
X-Send-Pr-Version: www-2.3

>Number:         80095
>Category:       i386
>Synopsis:       ld-elf.so.1 crashes with executables produced by tinycc
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    brucec
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 19 10:20:09 GMT 2005
>Closed-Date:    Sun Nov 14 08:11:50 UTC 2010
>Last-Modified:  Sun Nov 14 08:11:50 UTC 2010
>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. <URL:http://fabrice.bellard.free.fr/tcc/>
      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:
Responsible-Changed-From-To: freebsd-i386->brucec  
Responsible-Changed-By: brucec 
Responsible-Changed-When: Sat Jun 12 20:52:37 UTC 2010 
Responsible-Changed-Why:  
Take. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=80095 

From: Bruce Cran <brucec@muon.cran.org.uk>
To: bug-followup@FreeBSD.org, dave@fly.srk.fer.hr
Cc:  
Subject: Re: i386/80095: ld-elf.so.1 crashes with executables produced by tinycc
Date: Sat, 12 Jun 2010 20:51:22 +0000

 Sorry it's taken so long to look at this bug report. I've tried to 
 replicate the problem by installing tcc from packages on 9-CURRENT 
 and running the ex5 example, but it appears to work correctly. 
 Are you still able to replicate this problem?
 
 -- 
 Bruce
State-Changed-From-To: open->feedback 
State-Changed-By: brucec 
State-Changed-When: Wed Jun 16 11:30:11 UTC 2010 
State-Changed-Why:  
Feedback was requested. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=80095 
State-Changed-From-To: feedback->closed 
State-Changed-By: brucec 
State-Changed-When: Sun Nov 14 08:11:34 UTC 2010 
State-Changed-Why:  
Feedback timeout. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=80095 
>Unformatted:
