From owner-freebsd-hackers@FreeBSD.ORG Mon May 5 01:57:36 2008 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A8D40106564A for ; Mon, 5 May 2008 01:57:36 +0000 (UTC) (envelope-from fgleiser@cactus.fi.uba.ar) Received: from cactus.fi.uba.ar (cactus.fi.uba.ar [157.92.49.108]) by mx1.freebsd.org (Postfix) with ESMTP id 034868FC13 for ; Mon, 5 May 2008 01:57:35 +0000 (UTC) (envelope-from fgleiser@cactus.fi.uba.ar) Received: from [192.168.150.25] (104-146-235-201.fibertel.com.ar [201.235.146.104]) (authenticated bits=0) by cactus.fi.uba.ar (8.14.2/8.14.2) with ESMTP id m451vXAD060299 for ; Sun, 4 May 2008 22:57:34 -0300 (ART) (envelope-from fgleiser@cactus.fi.uba.ar) Message-ID: <481E6988.10200@cactus.fi.uba.ar> Date: Sun, 04 May 2008 22:57:28 -0300 From: Fer Gleiser User-Agent: Thunderbird 1.5.0.12 (X11/20070719) MIME-Version: 1.0 To: hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.63 on 157.92.49.108 Cc: Subject: problems with CTF on -STABLE X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 May 2008 01:57:36 -0000 We're facing some problems with CTF on -STABLE. We need that so we can have DTrace runing on FreeBSD 7 The tools and the libs build fine, but I can't ctfconvert anything. In some cases get the following error: ctfconvert -L VERSION -g tdfx_linux.o ERROR: ctfconvert: die 37: base type without name and in some others ctfconvert just dies and dumps core. I all cases, xstrdup is the culprit: (gdb) where #0 0x281bbfa9 in strlen () from /lib/libc.so.7 #1 0x28147187 in strdup (str=0x0) at /usr/src/lib/libc/string/strdup.c:47 #2 0x08050f22 in xstrdup () #3 0x0804dfde in die_through_create () #4 0x0804d712 in die_create_one () #5 0x0804d769 in die_create () #6 0x0804ecb4 in dw_read () #7 0x0804c12b in main () now, if I copy both the .o and the ctfconvert executable to a -CURRENT box, it runs fine. From the error (base type without name) it seems that some info that ctfconvert needs is not available on -STABLE, or maybe it's on a different place or in a format ctfconvert doesn't understand. Maybe libdwarf is built on a different way, but so far I couln't find what the problem is. Any pointers/help would be greatly apreciated Fer