Date: Tue, 19 Apr 2005 10:17:02 GMT From: Drazen Kacar <dave@fly.srk.fer.hr> To: freebsd-gnats-submit@FreeBSD.org Subject: i386/80095: ld-elf.so.1 crashes with executables produced by tinycc Message-ID: <200504191017.j3JAH218084480@www.freebsd.org> Resent-Message-ID: <200504191020.j3JAK9uC025370@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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. <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: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200504191017.j3JAH218084480>